[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 17 07:22:40 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 18959c46e3ced1f7ad12a82e9f30bafe9d1f1733 b4113714159824b517779a3635f4d24d21dd338f -- clang-tools-extra/mlir-cast-refactor/MlirCastRefactor.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/mlir-cast-refactor/MlirCastRefactor.cpp b/clang-tools-extra/mlir-cast-refactor/MlirCastRefactor.cpp
index d6d8973e44..0ebb48b609 100644
--- a/clang-tools-extra/mlir-cast-refactor/MlirCastRefactor.cpp
+++ b/clang-tools-extra/mlir-cast-refactor/MlirCastRefactor.cpp
@@ -109,8 +109,7 @@ int main(int argc, const char **argv) {
callee(memberExpr().bind("member")),
callee(cxxMethodDecl(
ofClass(hasName(target_type)),
- hasAnyName("cast", "dyn_cast", "dyn_cast_or_null", "isa")
- )))
+ hasAnyName("cast", "dyn_cast", "dyn_cast_or_null", "isa"))))
.bind("memberCall");
MemberFunctionCallMatcher memCallExpr;
``````````
</details>
https://github.com/llvm/llvm-project/pull/75279
More information about the cfe-commits
mailing list