From: Ted Kremenek Date: Thu, 23 Dec 2010 02:42:34 +0000 (+0000) Subject: Add 'getConditionType()' and 'getArrayIndexType()' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bd8124f53d6694ef0de1713f06325893c0ea2ca;p=clang Add 'getConditionType()' and 'getArrayIndexType()' to SValBuilder. These two query methods are useful for constructing SVals. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122467 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/GR/PathSensitive/SValBuilder.h b/include/clang/GR/PathSensitive/SValBuilder.h index 2869a2ff5b..95780254e3 100644 --- a/include/clang/GR/PathSensitive/SValBuilder.h +++ b/include/clang/GR/PathSensitive/SValBuilder.h @@ -95,6 +95,14 @@ public: const ASTContext &getContext() const { return Context; } GRStateManager &getStateManager() { return StateMgr; } + + QualType getConditionType() const { + return getContext().IntTy; + } + + QualType getArrayIndexType() const { + return ArrayIndexTy; + } BasicValueFactory &getBasicValueFactory() { return BasicVals; } const BasicValueFactory &getBasicValueFactory() const { return BasicVals; }