[all-commits] [llvm/llvm-project] bb195b: [clang][StaticAnalyzer] Add support for variables ...

Ziqing Luo via All-commits all-commits at lists.llvm.org
Tue Aug 4 16:58:25 PDT 2026


  Branch: refs/heads/users/ziqingluo/PR-183700416
  Home:   https://github.com/llvm/llvm-project
  Commit: bb195b352ebd3ebad51069407441d46f93e408b7
      https://github.com/llvm/llvm-project/commit/bb195b352ebd3ebad51069407441d46f93e408b7
  Author: Ziqing Luo <ziqing_luo at apple.com>
  Date:   2026-08-04 (Tue, 04 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

Function `getIssueHash` relies on the name of the enclosing
declaration of the issue Decl for hashing. But the underlying
function `GetEnclosingDeclContextSignature` does not compute the
enclosing declaration for variables or fields, causing missing HTML
reports despite text warnings being printed.

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.

rdar://183700416



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