]> granicus.if.org Git - clang/commitdiff
Add 'getConditionType()' and 'getArrayIndexType()'
authorTed Kremenek <kremenek@apple.com>
Thu, 23 Dec 2010 02:42:34 +0000 (02:42 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 23 Dec 2010 02:42:34 +0000 (02:42 +0000)
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

include/clang/GR/PathSensitive/SValBuilder.h

index 2869a2ff5b86e8056fb8db13931f6072ae548e19..95780254e34041fc7871292cb8066dc8644a5480 100644 (file)
@@ -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; }