clang  10.0.0svn
SValBuilder.h
Go to the documentation of this file.
1 // SValBuilder.h - Construction of SVals from evaluating expressions -*- C++ -*-
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file defines SValBuilder, a class that defines the interface for
10 // "symbolical evaluators" which construct an SVal from an expression.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SVALBUILDER_H
15 #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SVALBUILDER_H
16 
17 #include "clang/AST/ASTContext.h"
19 #include "clang/AST/Expr.h"
20 #include "clang/AST/ExprObjC.h"
21 #include "clang/AST/Type.h"
22 #include "clang/Basic/LLVM.h"
30 #include "llvm/ADT/ImmutableList.h"
31 #include "llvm/ADT/Optional.h"
32 #include <cstdint>
33 
34 namespace clang {
35 
36 class BlockDecl;
37 class CXXBoolLiteralExpr;
38 class CXXMethodDecl;
39 class CXXRecordDecl;
40 class DeclaratorDecl;
41 class FunctionDecl;
42 class LocationContext;
43 class StackFrameContext;
44 class Stmt;
45 
46 namespace ento {
47 
48 class ConditionTruthVal;
49 class ProgramStateManager;
50 class StoreRef;
51 
52 class SValBuilder {
53  virtual void anchor();
54 
55 protected:
57 
58  /// Manager of APSInt values.
60 
61  /// Manages the creation of symbols.
63 
64  /// Manages the creation of memory regions.
66 
68 
69  /// The scalar type to use for array indices.
71 
72  /// The width of the scalar type used for array indices.
73  const unsigned ArrayIndexWidth;
74 
75  virtual SVal evalCastFromNonLoc(NonLoc val, QualType castTy) = 0;
76  virtual SVal evalCastFromLoc(Loc val, QualType castTy) = 0;
77 
78 public:
79  // FIXME: Make these protected again once RegionStoreManager correctly
80  // handles loads from different bound value types.
81  virtual SVal dispatchCast(SVal val, QualType castTy) = 0;
82 
83 public:
84  SValBuilder(llvm::BumpPtrAllocator &alloc, ASTContext &context,
85  ProgramStateManager &stateMgr)
86  : Context(context), BasicVals(context, alloc),
87  SymMgr(context, BasicVals, alloc), MemMgr(context, alloc),
88  StateMgr(stateMgr), ArrayIndexTy(context.LongLongTy),
89  ArrayIndexWidth(context.getTypeSize(ArrayIndexTy)) {}
90 
91  virtual ~SValBuilder() = default;
92 
93  bool haveSameType(const SymExpr *Sym1, const SymExpr *Sym2) {
94  return haveSameType(Sym1->getType(), Sym2->getType());
95  }
96 
97  bool haveSameType(QualType Ty1, QualType Ty2) {
98  // FIXME: Remove the second disjunct when we support symbolic
99  // truncation/extension.
100  return (Context.getCanonicalType(Ty1) == Context.getCanonicalType(Ty2) ||
101  (Ty1->isIntegralOrEnumerationType() &&
103  }
104 
105  SVal evalCast(SVal val, QualType castTy, QualType originalType);
106 
107  // Handles casts of type CK_IntegralCast.
109  QualType originalType);
110 
111  virtual SVal evalMinus(NonLoc val) = 0;
112 
113  virtual SVal evalComplement(NonLoc val) = 0;
114 
115  /// Create a new value which represents a binary expression with two non-
116  /// location operands.
118  NonLoc lhs, NonLoc rhs, QualType resultTy) = 0;
119 
120  /// Create a new value which represents a binary expression with two memory
121  /// location operands.
123  Loc lhs, Loc rhs, QualType resultTy) = 0;
124 
125  /// Create a new value which represents a binary expression with a memory
126  /// location and non-location operands. For example, this would be used to
127  /// evaluate a pointer arithmetic operation.
129  Loc lhs, NonLoc rhs, QualType resultTy) = 0;
130 
131  /// Evaluates a given SVal. If the SVal has only one possible (integer) value,
132  /// that value is returned. Otherwise, returns NULL.
133  virtual const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal val) = 0;
134 
135  /// Simplify symbolic expressions within a given SVal. Return an SVal
136  /// that represents the same value, but is hopefully easier to work with
137  /// than the original SVal.
138  virtual SVal simplifySVal(ProgramStateRef State, SVal Val) = 0;
139 
140  /// Constructs a symbolic expression for two non-location values.
142  NonLoc lhs, NonLoc rhs, QualType resultTy);
143 
145  SVal lhs, SVal rhs, QualType type);
146 
147  /// \return Whether values in \p lhs and \p rhs are equal at \p state.
149 
150  SVal evalEQ(ProgramStateRef state, SVal lhs, SVal rhs);
151 
154 
156  const ASTContext &getContext() const { return Context; }
157 
159 
161  return Context.getLangOpts().CPlusPlus ? Context.BoolTy : Context.IntTy;
162  }
163 
165  return ArrayIndexTy;
166  }
167 
170 
172  const SymbolManager &getSymbolManager() const { return SymMgr; }
173 
175  const MemRegionManager &getRegionManager() const { return MemMgr; }
176 
177  // Forwarding methods to SymbolManager.
178 
180  const LocationContext *LCtx,
181  QualType type,
182  unsigned visitCount,
183  const void *symbolTag = nullptr) {
184  return SymMgr.conjureSymbol(stmt, LCtx, type, visitCount, symbolTag);
185  }
186 
188  const LocationContext *LCtx,
189  unsigned visitCount,
190  const void *symbolTag = nullptr) {
191  return SymMgr.conjureSymbol(expr, LCtx, visitCount, symbolTag);
192  }
193 
194  /// Construct an SVal representing '0' for the specified type.
196 
197  /// Make a unique symbol for value of region.
199 
200  /// Create a new symbol with a unique 'name'.
201  ///
202  /// We resort to conjured symbols when we cannot construct a derived symbol.
203  /// The advantage of symbols derived/built from other symbols is that we
204  /// preserve the relation between related(or even equivalent) expressions, so
205  /// conjured symbols should be used sparingly.
206  DefinedOrUnknownSVal conjureSymbolVal(const void *symbolTag,
207  const Expr *expr,
208  const LocationContext *LCtx,
209  unsigned count);
210  DefinedOrUnknownSVal conjureSymbolVal(const void *symbolTag,
211  const Expr *expr,
212  const LocationContext *LCtx,
213  QualType type,
214  unsigned count);
216  const LocationContext *LCtx,
217  QualType type,
218  unsigned visitCount);
219 
220  /// Conjure a symbol representing heap allocated memory region.
221  ///
222  /// Note, the expression should represent a location.
224  const LocationContext *LCtx,
225  unsigned Count);
226 
228  SymbolRef parentSymbol, const TypedValueRegion *region);
229 
230  DefinedSVal getMetadataSymbolVal(const void *symbolTag,
231  const MemRegion *region,
232  const Expr *expr, QualType type,
233  const LocationContext *LCtx,
234  unsigned count);
235 
237 
239 
240  DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy,
241  const LocationContext *locContext,
242  unsigned blockCount);
243 
244  /// Returns the value of \p E, if it can be determined in a non-path-sensitive
245  /// manner.
246  ///
247  /// If \p E is not a constant or cannot be modeled, returns \c None.
249 
250  NonLoc makeCompoundVal(QualType type, llvm::ImmutableList<SVal> vals) {
251  return nonloc::CompoundVal(BasicVals.getCompoundValData(type, vals));
252  }
253 
255  const TypedValueRegion *region) {
257  BasicVals.getLazyCompoundValData(store, region));
258  }
259 
261  return nonloc::PointerToMember(DD);
262  }
263 
265  return nonloc::PointerToMember(PTMD);
266  }
267 
269  return nonloc::ConcreteInt(BasicVals.getValue(0, ArrayIndexTy));
270  }
271 
272  NonLoc makeArrayIndex(uint64_t idx) {
273  return nonloc::ConcreteInt(BasicVals.getValue(idx, ArrayIndexTy));
274  }
275 
277 
279  return nonloc::ConcreteInt(
280  BasicVals.getValue(integer->getValue(),
282  }
283 
285  return makeTruthVal(boolean->getValue(), boolean->getType());
286  }
287 
289 
291  return nonloc::ConcreteInt(BasicVals.getValue(integer));
292  }
293 
295  return loc::ConcreteInt(BasicVals.getValue(integer));
296  }
297 
298  NonLoc makeIntVal(const llvm::APInt& integer, bool isUnsigned) {
299  return nonloc::ConcreteInt(BasicVals.getValue(integer, isUnsigned));
300  }
301 
302  DefinedSVal makeIntVal(uint64_t integer, QualType type) {
303  if (Loc::isLocType(type))
304  return loc::ConcreteInt(BasicVals.getValue(integer, type));
305 
306  return nonloc::ConcreteInt(BasicVals.getValue(integer, type));
307  }
308 
309  NonLoc makeIntVal(uint64_t integer, bool isUnsigned) {
310  return nonloc::ConcreteInt(BasicVals.getIntValue(integer, isUnsigned));
311  }
312 
313  NonLoc makeIntValWithPtrWidth(uint64_t integer, bool isUnsigned) {
314  return nonloc::ConcreteInt(
315  BasicVals.getIntWithPtrWidth(integer, isUnsigned));
316  }
317 
318  NonLoc makeLocAsInteger(Loc loc, unsigned bits) {
319  return nonloc::LocAsInteger(BasicVals.getPersistentSValWithData(loc, bits));
320  }
321 
323  const llvm::APSInt& rhs, QualType type);
324 
326  const SymExpr *lhs, QualType type);
327 
329  const SymExpr *rhs, QualType type);
330 
331  /// Create a NonLoc value for cast.
332  NonLoc makeNonLoc(const SymExpr *operand, QualType fromTy, QualType toTy);
333 
335  return nonloc::ConcreteInt(BasicVals.getTruthValue(b, type));
336  }
337 
339  return nonloc::ConcreteInt(BasicVals.getTruthValue(b));
340  }
341 
342  /// Create NULL pointer, with proper pointer bit-width for given address
343  /// space.
344  /// \param type pointer type.
346  return loc::ConcreteInt(BasicVals.getZeroWithTypeSize(type));
347  }
348 
350  return loc::ConcreteInt(BasicVals.getZeroWithPtrWidth());
351  }
352 
354  return loc::MemRegionVal(MemMgr.getSymbolicRegion(sym));
355  }
356 
357  Loc makeLoc(const MemRegion* region) {
358  return loc::MemRegionVal(region);
359  }
360 
361  Loc makeLoc(const AddrLabelExpr *expr) {
362  return loc::GotoLabel(expr->getLabel());
363  }
364 
365  Loc makeLoc(const llvm::APSInt& integer) {
366  return loc::ConcreteInt(BasicVals.getValue(integer));
367  }
368 
369  /// Make an SVal that represents the given symbol. This follows the convention
370  /// of representing Loc-type symbols (symbolic pointers and references)
371  /// as Loc values wrapping the symbol rather than as plain symbol values.
373  if (Loc::isLocType(Sym->getType()))
374  return makeLoc(Sym);
375  return nonloc::SymbolVal(Sym);
376  }
377 
378  /// Return a memory region for the 'this' object reference.
380  const StackFrameContext *SFC);
381 
382  /// Return a memory region for the 'this' object reference.
384  const StackFrameContext *SFC);
385 };
386 
387 SValBuilder* createSimpleSValBuilder(llvm::BumpPtrAllocator &alloc,
388  ASTContext &context,
389  ProgramStateManager &stateMgr);
390 
391 } // namespace ento
392 
393 } // namespace clang
394 
395 #endif // LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SVALBUILDER_H
Defines the clang::ASTContext interface.
Represents a function declaration or definition.
Definition: Decl.h:1784
const SymbolConjured * conjureSymbol(const Stmt *E, const LocationContext *LCtx, QualType T, unsigned VisitCount, const void *SymbolTag=nullptr)
bool getValue() const
Definition: ExprObjC.h:97
TypedValueRegion - An abstract class representing regions having a typed value.
Definition: MemRegion.h:530
nonloc::ConcreteInt makeIntVal(const IntegerLiteral *integer)
Definition: SValBuilder.h:278
DefinedSVal getBlockPointer(const BlockDecl *block, CanQualType locTy, const LocationContext *locContext, unsigned blockCount)
SymbolManager & getSymbolManager()
Definition: SValBuilder.h:171
QualType getArrayIndexType() const
Definition: SValBuilder.h:164
A (possibly-)qualified type.
Definition: Type.h:643
MemRegion - The root abstract class for all memory regions.
Definition: MemRegion.h:94
bool isUnsignedIntegerOrEnumerationType() const
Determines whether this is an integer type that is unsigned or an enumeration types whose underlying ...
Definition: Type.cpp:1987
const internal::VariadicAllOfMatcher< Stmt > stmt
Matches statements.
const CompoundValData * getCompoundValData(QualType T, llvm::ImmutableList< SVal > Vals)
SValBuilder * createSimpleSValBuilder(llvm::BumpPtrAllocator &alloc, ASTContext &context, ProgramStateManager &stateMgr)
Stmt - This represents one statement.
Definition: Stmt.h:66
C Language Family Type Representation.
ProgramStateManager & StateMgr
Definition: SValBuilder.h:67
const llvm::APSInt & getZeroWithTypeSize(QualType T)
virtual SVal simplifySVal(ProgramStateRef State, SVal Val)=0
Simplify symbolic expressions within a given SVal.
SVal evalCast(SVal val, QualType castTy, QualType originalType)
Value representing integer constant.
Definition: SVals.h:379
MemRegionManager MemMgr
Manages the creation of memory regions.
Definition: SValBuilder.h:65
const llvm::APSInt & getTruthValue(bool b, QualType T)
const internal::VariadicDynCastAllOfMatcher< Stmt, Expr > expr
Matches expressions.
virtual SVal dispatchCast(SVal val, QualType castTy)=0
loc::MemRegionVal getCXXThis(const CXXMethodDecl *D, const StackFrameContext *SFC)
Return a memory region for the &#39;this&#39; object reference.
NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, const llvm::APSInt &rhs, QualType type)
Definition: SValBuilder.cpp:67
NonLoc makeArrayIndex(uint64_t idx)
Definition: SValBuilder.h:272
BasicValueFactory BasicVals
Manager of APSInt values.
Definition: SValBuilder.h:59
Symbolic value.
Definition: SymExpr.h:29
virtual SVal evalCastFromNonLoc(NonLoc val, QualType castTy)=0
virtual SVal evalBinOpLN(ProgramStateRef state, BinaryOperator::Opcode op, Loc lhs, NonLoc rhs, QualType resultTy)=0
Create a new value which represents a binary expression with a memory location and non-location opera...
MemRegionManager & getRegionManager()
Definition: SValBuilder.h:174
SVal makeSymbolVal(SymbolRef Sym)
Make an SVal that represents the given symbol.
Definition: SValBuilder.h:372
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Definition: ASTContext.h:160
LineState State
SVal evalIntegralCast(ProgramStateRef state, SVal val, QualType castTy, QualType originalType)
Loc makeNullWithType(QualType type)
Create NULL pointer, with proper pointer bit-width for given address space.
Definition: SValBuilder.h:345
DefinedOrUnknownSVal getDerivedRegionValueSymbolVal(SymbolRef parentSymbol, const TypedValueRegion *region)
i32 captured_struct **param SharedsTy A type which contains references the shared variables *param Shareds Context with the list of shared variables from the p *TaskFunction *param Data Additional data for task generation like final * state
bool isIntegralOrEnumerationType() const
Determine whether this type is an integral or enumeration type.
Definition: Type.h:6754
const SymbolicRegion * getSymbolicRegion(SymbolRef Sym)
Retrieve or create a "symbolic" memory region.
Definition: MemRegion.cpp:1023
static bool isLocType(QualType T)
Definition: SVals.h:329
BinaryOperatorKind
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
SVal makeSymExprValNN(BinaryOperator::Opcode op, NonLoc lhs, NonLoc rhs, QualType resultTy)
Constructs a symbolic expression for two non-location values.
NonLoc makePointerToMember(const DeclaratorDecl *DD)
Definition: SValBuilder.h:260
DefinedOrUnknownSVal getRegionValueSymbolVal(const TypedValueRegion *region)
Make a unique symbol for value of region.
Loc makeLoc(const MemRegion *region)
Definition: SValBuilder.h:357
Loc makeLoc(const AddrLabelExpr *expr)
Definition: SValBuilder.h:361
loc::ConcreteInt makeIntLocVal(const llvm::APSInt &integer)
Definition: SValBuilder.h:294
NonLoc makeCompoundVal(QualType type, llvm::ImmutableList< SVal > vals)
Definition: SValBuilder.h:250
DefinedSVal getFunctionPointer(const FunctionDecl *func)
NonLoc makeIntValWithPtrWidth(uint64_t integer, bool isUnsigned)
Definition: SValBuilder.h:313
bool haveSameType(QualType Ty1, QualType Ty2)
Definition: SValBuilder.h:97
const llvm::APSInt & getIntValue(uint64_t X, bool isUnsigned)
virtual QualType getType() const =0
Represents a ValueDecl that came out of a declarator.
Definition: Decl.h:696
nonloc::ConcreteInt makeBoolVal(const ObjCBoolLiteralExpr *boolean)
Definition: SValBuilder.h:284
ConditionTruthVal areEqual(ProgramStateRef state, SVal lhs, SVal rhs)
Loc makeLoc(SymbolRef sym)
Definition: SValBuilder.h:353
DefinedOrUnknownSVal makeZeroVal(QualType type)
Construct an SVal representing &#39;0&#39; for the specified type.
Definition: SValBuilder.cpp:52
Represents a block literal declaration, which is like an unnamed FunctionDecl.
Definition: Decl.h:3951
This represents one expression.
Definition: Expr.h:108
Defines the clang::LangOptions interface.
virtual SVal evalMinus(NonLoc val)=0
const llvm::APSInt & getIntWithPtrWidth(uint64_t X, bool isUnsigned)
nonloc::ConcreteInt makeTruthVal(bool b)
Definition: SValBuilder.h:338
const QualType ArrayIndexTy
The scalar type to use for array indices.
Definition: SValBuilder.h:70
QualType getConditionType() const
Definition: SValBuilder.h:160
QualType getType() const
Definition: Expr.h:137
virtual SVal evalBinOpLL(ProgramStateRef state, BinaryOperator::Opcode op, Loc lhs, Loc rhs, QualType resultTy)=0
Create a new value which represents a binary expression with two memory location operands.
SVal evalBinOp(ProgramStateRef state, BinaryOperator::Opcode op, SVal lhs, SVal rhs, QualType type)
const BasicValueFactory & getBasicValueFactory() const
Definition: SValBuilder.h:169
nonloc::ConcreteInt makeIntVal(const llvm::APSInt &integer)
Definition: SValBuilder.h:290
NonLoc makeIntVal(uint64_t integer, bool isUnsigned)
Definition: SValBuilder.h:309
DefinedOrUnknownSVal conjureSymbolVal(const void *symbolTag, const Expr *expr, const LocationContext *LCtx, unsigned count)
Create a new symbol with a unique &#39;name&#39;.
SymbolManager SymMgr
Manages the creation of symbols.
Definition: SValBuilder.h:62
llvm::APSInt APSInt
virtual SVal evalCastFromLoc(Loc val, QualType castTy)=0
Represents a static or instance method of a struct/union/class.
Definition: DeclCXX.h:1905
ASTContext & getContext()
Definition: SValBuilder.h:155
SVal - This represents a symbolic expression, which can be either an L-value or an R-value...
Definition: SVals.h:75
const llvm::APSInt & getZeroWithPtrWidth(bool isUnsigned=true)
llvm::APInt APInt
Definition: Integral.h:27
DefinedOrUnknownSVal getConjuredHeapSymbolVal(const Expr *E, const LocationContext *LCtx, unsigned Count)
Conjure a symbol representing heap allocated memory region.
A symbol representing the result of an expression in the case when we do not know anything about what...
Definition: SymbolManager.h:75
virtual SVal evalBinOpNN(ProgramStateRef state, BinaryOperator::Opcode op, NonLoc lhs, NonLoc rhs, QualType resultTy)=0
Create a new value which represents a binary expression with two non- location operands.
const unsigned ArrayIndexWidth
The width of the scalar type used for array indices.
Definition: SValBuilder.h:73
const MemRegionManager & getRegionManager() const
Definition: SValBuilder.h:175
AddrLabelExpr - The GNU address of label extension, representing &&label.
Definition: Expr.h:3882
Dataflow Directional Tag Classes.
NonLoc makeIntVal(const llvm::APInt &integer, bool isUnsigned)
Definition: SValBuilder.h:298
const SymbolConjured * conjureSymbol(const Stmt *stmt, const LocationContext *LCtx, QualType type, unsigned visitCount, const void *symbolTag=nullptr)
Definition: SValBuilder.h:179
NonLoc makeLocAsInteger(Loc loc, unsigned bits)
Definition: SValBuilder.h:318
ProgramStateManager & getStateManager()
Definition: SValBuilder.h:158
SVal evalEQ(ProgramStateRef state, SVal lhs, SVal rhs)
Represents symbolic expression that isn&#39;t a location.
Definition: SVals.h:349
SVal convertToArrayIndex(SVal val)
Definition: SValBuilder.cpp:99
DefinedSVal getMetadataSymbolVal(const void *symbolTag, const MemRegion *region, const Expr *expr, QualType type, const LocationContext *LCtx, unsigned count)
llvm::APInt getValue() const
Definition: Expr.h:1405
LabelDecl * getLabel() const
Definition: Expr.h:3904
BasicValueFactory & getBasicValueFactory()
Definition: SValBuilder.h:168
Loc makeLoc(const llvm::APSInt &integer)
Definition: SValBuilder.h:365
DefinedSVal getMemberPointer(const DeclaratorDecl *DD)
SValBuilder(llvm::BumpPtrAllocator &alloc, ASTContext &context, ProgramStateManager &stateMgr)
Definition: SValBuilder.h:84
const std::pair< SVal, uintptr_t > & getPersistentSValWithData(const SVal &V, uintptr_t Data)
CanQualType getCanonicalType(QualType T) const
Return the canonical (structural) type corresponding to the specified potentially non-canonical type ...
Definition: ASTContext.h:2289
bool haveSameType(const SymExpr *Sym1, const SymExpr *Sym2)
Definition: SValBuilder.h:93
const LazyCompoundValData * getLazyCompoundValData(const StoreRef &store, const TypedValueRegion *region)
Represents a C++ struct/union/class.
Definition: DeclCXX.h:255
virtual SVal evalComplement(NonLoc val)=0
Optional< SVal > getConstantVal(const Expr *E)
Returns the value of E, if it can be determined in a non-path-sensitive manner.
const SymbolConjured * conjureSymbol(const Expr *expr, const LocationContext *LCtx, unsigned visitCount, const void *symbolTag=nullptr)
Definition: SValBuilder.h:187
virtual ~SValBuilder()=default
virtual const llvm::APSInt * getKnownValue(ProgramStateRef state, SVal val)=0
Evaluates a given SVal.
CanQualType IntTy
Definition: ASTContext.h:1024
ObjCBoolLiteralExpr - Objective-C Boolean Literal.
Definition: ExprObjC.h:85
NonLoc makePointerToMember(const PointerToMemberData *PTMD)
Definition: SValBuilder.h:264
const ASTContext & getContext() const
Definition: SValBuilder.h:156
nonloc::ConcreteInt makeTruthVal(bool b, QualType type)
Definition: SValBuilder.h:334
DefinedSVal makeIntVal(uint64_t integer, QualType type)
Definition: SValBuilder.h:302
NonLoc makeLazyCompoundVal(const StoreRef &store, const TypedValueRegion *region)
Definition: SValBuilder.h:254
A boolean literal, per ([C++ lex.bool] Boolean literals).
Definition: ExprCXX.h:645
CanQualType BoolTy
Definition: ASTContext.h:1016
const SymbolManager & getSymbolManager() const
Definition: SValBuilder.h:172
const LangOptions & getLangOpts() const
Definition: ASTContext.h:723