[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:45 PST 2025


================
@@ -101,8 +103,10 @@ class SymbolConjured : public SymbolData {
   }
 
 public:
-  /// It might return null.
-  const Stmt *getStmt() const { return S; }
----------------
Xazax-hun wrote:

Would it make sense to keep `getStmt`? It could still return null but some callers might find it useful. 

https://github.com/llvm/llvm-project/pull/128251


More information about the cfe-commits mailing list