[all-commits] [llvm/llvm-project] d18e4d: [clang][StaticAnalyzer] Add support for variables ...
Ziqing Luo via All-commits
all-commits at lists.llvm.org
Wed Aug 5 11:31:02 PDT 2026
Branch: refs/heads/users/ziqingluo/PR-183700416
Home: https://github.com/llvm/llvm-project
Commit: d18e4dc96f457d61186929aa77aacf6eff96cfc8
https://github.com/llvm/llvm-project/commit/d18e4dc96f457d61186929aa77aacf6eff96cfc8
Author: Ziqing Luo <ziqing_luo at apple.com>
Date: 2026-08-05 (Wed, 05 Aug 2026)
Changed paths:
M clang/lib/Analysis/IssueHash.cpp
M clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefLocalVarsChecker.cpp
M clang/lib/StaticAnalyzer/Checkers/WebKit/RawPtrRefMemberChecker.cpp
A clang/test/Analysis/Checkers/WebKit/html-diag-dedup-ivars.mm
A clang/test/Analysis/Checkers/WebKit/html-diag-dedup-local-vars.cpp
A clang/test/Analysis/Checkers/WebKit/html-diag-dedup-members.cpp
A clang/test/Analysis/Checkers/WebKit/html-diag-dedup-parameters.cpp
Log Message:
-----------
[clang][StaticAnalyzer] Add support for variables and fields in GetEnclosingDeclContextSignature
The `RawPtrRefLocalVarsChecker` and `RawPtrRefMemberChecker` forgot to
call `Report->setDeclWithIssue()` for some bug reports. Without the
call, the HTML reports miss the enclosing Decl and have hash collision
on distinct diagnostics.
The added
`clang/test/Analysis/Checkers/WebKit/html-diag-dedup-members.cpp`
example is a reproducer of this kind of issue we observed in WebKit.
In addition, extend `GetEnclosingDeclContextSignature` with support of
ObjC Decls.
rdar://183700416
Assisted-by: Claude sonnet
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list