[llvm-branch-commits] [clang] [LifetimeSafety] Mark all DeclRefExpr as usages of the corresp. origin (PR #154316)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Sep 3 07:06:42 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- clang/lib/Analysis/LifetimeSafety.cpp clang/test/Sema/warn-lifetime-safety-dataflow.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Analysis/LifetimeSafety.cpp b/clang/lib/Analysis/LifetimeSafety.cpp
index 947645852..dbbf7f3cc 100644
--- a/clang/lib/Analysis/LifetimeSafety.cpp
+++ b/clang/lib/Analysis/LifetimeSafety.cpp
@@ -598,7 +598,7 @@ private:
   }
 
   FactManager &FactMgr;
-  AnalysisDeclContext& AC;
+  AnalysisDeclContext &AC;
   llvm::SmallVector<Fact *> CurrentBlockFacts;
   // To distinguish between reads and writes for use-after-free checks, this map
   // stores the `UseFact` for each `DeclRefExpr`. We initially identify all

``````````

</details>


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


More information about the llvm-branch-commits mailing list