[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 26 08:03:33 PST 2025
================
@@ -695,6 +695,21 @@ class CFGBlock {
void dump() const {
dumpToStream(llvm::errs());
}
+
+ void Profile(llvm::FoldingSetNodeID &ID) const {
+ ID.AddPointer(Parent);
+ ID.AddInteger(Index);
+ }
+
+ int64_t getID() const {
----------------
isuckatcs wrote:
Why do we want to print the ID in the first place? It probably doesn't hold a value to our users anyway.
Either print a stament if there is any, or a source location, etc. The CFG is essentially the statements in the source file in execution order, so I imagine we always have a statement.
https://github.com/llvm/llvm-project/pull/128251
More information about the cfe-commits
mailing list