[clang] [clang][StaticAnalyzer] Add enclosing Decl information to bug reports of RawPtrRef(LocalVars|Member)Checker (PR #214102)

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 6 16:47:55 PDT 2026


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 origin/main HEAD --extensions cpp -- clang/test/Analysis/Checkers/WebKit/html-diag-dedup.cpp clang/unittests/Analysis/IssueHashTest.cpp clang/lib/Analysis/IssueHash.cpp clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefLocalVarsChecker.cpp clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefMemberChecker.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/clang/unittests/Analysis/IssueHashTest.cpp b/clang/unittests/Analysis/IssueHashTest.cpp
index cd4d68ba5..8cf8fe904 100644
--- a/clang/unittests/Analysis/IssueHashTest.cpp
+++ b/clang/unittests/Analysis/IssueHashTest.cpp
@@ -19,7 +19,7 @@
 
 namespace {
 
-using namespace clang;  
+using namespace clang;
 using namespace ast_matchers;
 
 std::unique_ptr<ASTUnit> buildAST(llvm::StringRef Code,

``````````

</details>


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


More information about the cfe-commits mailing list