[clang] [clang-tools-extra] Move isLocal AST matcher to ASTMatchers (PR #117521)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 25 14:42:27 PST 2024
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 a0ef12c64284abf59bc092b2535cce1247d5f9a4 ee0c3b11c93dc8d95f521cda7c2ac9acc7c184f7 --extensions cpp,h -- clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp clang/include/clang/ASTMatchers/ASTMatchers.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/include/clang/ASTMatchers/ASTMatchers.h b/clang/include/clang/ASTMatchers/ASTMatchers.h
index f8388028d2..98993a19a0 100644
--- a/clang/include/clang/ASTMatchers/ASTMatchers.h
+++ b/clang/include/clang/ASTMatchers/ASTMatchers.h
@@ -740,9 +740,7 @@ AST_MATCHER(FunctionDecl, isMain) {
}
// Matches variable declarations that represent local variables.
-AST_MATCHER(VarDecl, isLocal) {
- return Node.isLocalVarDecl();
-}
+AST_MATCHER(VarDecl, isLocal) { return Node.isLocalVarDecl(); }
/// Matches the specialized template of a specialization declaration.
///
``````````
</details>
https://github.com/llvm/llvm-project/pull/117521
More information about the cfe-commits
mailing list