[clang] [clang][ASTVisitor] Visit `HoldingVar` from `BindingDecl`. (PR #117858)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 12 06:55:47 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 67eb05b2928ea707761bb040e6eb824f4ca9ef3a bc26437343450a00c24aff45650bb67c7fc98ea5 --extensions cpp,h -- clang/include/clang/AST/RecursiveASTVisitor.h clang/unittests/AST/ASTContextParentMapTest.cpp clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp b/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
index 404324a17f..6ad0dd0efb 100644
--- a/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
+++ b/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
@@ -144,7 +144,7 @@ const Formula &getFormula(const ValueDecl &D, const Environment &Env) {
   return cast<BoolValue>(Env.getValue(D))->formula();
 }
 
-const BindingDecl *findBindingDecl(ASTContext& ASTCxt, std::string_view Name) {
+const BindingDecl *findBindingDecl(ASTContext &ASTCxt, std::string_view Name) {
   using ast_matchers::bindingDecl;
   using ast_matchers::hasName;
   auto TargetNodes =

``````````

</details>


https://github.com/llvm/llvm-project/pull/117858


More information about the cfe-commits mailing list