[all-commits] [llvm/llvm-project] e81e32: [SSAF][PointerFlow] Factor out and make the pointe...
Ziqing Luo via All-commits
all-commits at lists.llvm.org
Thu Sep 10 14:23:59 PDT 2026
Branch: refs/heads/users/ziqingluo/PR-187125348-1
Home: https://github.com/llvm/llvm-project
Commit: e81e32388d55985e7b17a119b05b6aca64706562
https://github.com/llvm/llvm-project/commit/e81e32388d55985e7b17a119b05b6aca64706562
Author: Ziqing Luo <ziqing_luo at apple.com>
Date: 2026-09-10 (Thu, 10 Sep 2026)
Changed paths:
A clang/include/clang/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowPairs.h
M clang/lib/ScalableStaticAnalysis/Analyses/CMakeLists.txt
M clang/lib/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowExtractor.cpp
A clang/lib/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowPairs.cpp
M clang/lib/ScalableStaticAnalysis/Analyses/SSAFAnalysesCommon.h
A clang/unittests/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowPairsTest.cpp
M clang/unittests/ScalableStaticAnalysis/CMakeLists.txt
M llvm/utils/gn/secondary/clang/lib/ScalableStaticAnalysis/Analyses/BUILD.gn
M llvm/utils/gn/secondary/clang/unittests/ScalableStaticAnalysis/BUILD.gn
Log Message:
-----------
[SSAF][PointerFlow] Factor out and make the pointer-flow matching reusable
The PointerFlowExtractor matches AST nodes representing pointer-flows
and converts them to entity-based data structures directly. This
commit divides this procedure into two steps: 1) match and represent
AST nodes as PointerFlowPairs; 2) convert PointerFlowPairs to
entity-based edges. Therefore, other SSAF tools may use
PointerFlowPairs.
The refactoring also improves coverage: it separates pointer-type
checking from structural matching, so structural matching alone now
discovers cases that were previously missed due to overly aggressive
type checking (e.g. a record-typed call argument or return value
initialized with a braced-init-list).
Along the way, this also fixes a bug for unnamed bit-fields.
First patch for
rdar://187125348
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