]> granicus.if.org Git - clang/commitdiff
Static Analyzer: Add a convinience API. Add comment.
authorAnna Zaks <ganna@apple.com>
Fri, 5 Aug 2011 23:47:13 +0000 (23:47 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 5 Aug 2011 23:47:13 +0000 (23:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137000 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h

index 4429c6b2a7ad9748f6c763f6449c1705bd34bbb7..27c52c3b12a66608bcbdf8bd0d996ebc4656792c 100644 (file)
@@ -90,6 +90,10 @@ public:
     return Eng.getSValBuilder();
   }
 
+  SymbolManager &getSymbolManager() {
+    return getSValBuilder().getSymbolManager();
+  }
+
   ExplodedNode *generateNode(bool autoTransition = true) {
     assert(statement && "Only transitions with statements currently supported");
     ExplodedNode *N = generateNodeImpl(statement, getState(), false,
index 66ecba7dcf35629d1c9ebcc3ac247ed806b4fc33..42113167a124a8c6e7800e3444bc47674f0d291d 100644 (file)
@@ -389,6 +389,9 @@ public:
 
   const SymbolExtent *getExtentSymbol(const SubRegion *R);
 
+  /// Creates a metadata symbol associated with a specific region.
+  /// VisitCount can be used to differentiate regions corresponding to
+  /// different loop iterations, thus, making the symbol path-dependent.
   const SymbolMetadata* getMetadataSymbol(const MemRegion* R, const Stmt* S,
                                           QualType T, unsigned VisitCount,
                                           const void* SymbolTag = 0);