[clang] [Clang][analyzer] replace Stmt* with ConstCFGElementRef in SymbolConjured (PR #128251)
Gábor Horváth via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 24 04:44:44 PST 2025
================
@@ -171,19 +172,11 @@ class SValBuilder {
// Forwarding methods to SymbolManager.
- const SymbolConjured* conjureSymbol(const Stmt *stmt,
- const LocationContext *LCtx,
- QualType type,
- unsigned visitCount,
- const void *symbolTag = nullptr) {
- return SymMgr.conjureSymbol(stmt, LCtx, type, visitCount, symbolTag);
- }
-
- const SymbolConjured* conjureSymbol(const Expr *expr,
- const LocationContext *LCtx,
- unsigned visitCount,
- const void *symbolTag = nullptr) {
- return SymMgr.conjureSymbol(expr, LCtx, visitCount, symbolTag);
+ const SymbolConjured *
+ conjureSymbol(const CFGBlock::ConstCFGElementRef ElemRef,
----------------
Xazax-hun wrote:
Could we still extract a type from the `ElemRef` in the implementation? Does the caller have a reasonable type to pass in when `ElemRef` is not referring to an expression?
https://github.com/llvm/llvm-project/pull/128251
More information about the cfe-commits
mailing list