[cfe-commits] r59073 - /cfe/trunk/include/clang/Analysis/Support/ExprDeclBitVector.h

Ted Kremenek kremenek at apple.com
Tue Nov 11 11:39:47 PST 2008


Author: kremenek
Date: Tue Nov 11 13:39:47 2008
New Revision: 59073

URL: http://llvm.org/viewvc/llvm-project?rev=59073&view=rev
Log:
Add fine-grain methods for control which bits are set/reset in ExprDeclBitVector.

Modified:
    cfe/trunk/include/clang/Analysis/Support/ExprDeclBitVector.h

Modified: cfe/trunk/include/clang/Analysis/Support/ExprDeclBitVector.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Support/ExprDeclBitVector.h?rev=59073&r1=59072&r2=59073&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/Support/ExprDeclBitVector.h (original)
+++ cfe/trunk/include/clang/Analysis/Support/ExprDeclBitVector.h Tue Nov 11 13:39:47 2008
@@ -86,10 +86,19 @@
     llvm::BitVector DeclBV;
   public:
     
-    void resetValues(AnalysisDataTy& AD) {
+    void resetDeclValues(AnalysisDataTy& AD) {
       DeclBV.resize(AD.getNumDecls()); 
       DeclBV.reset();
     }
+
+    void setDeclValues(AnalysisDataTy& AD) {
+      DeclBV.resize(AD.getNumDecls()); 
+      DeclBV.set();
+    }
+    
+    void resetValues(AnalysisDataTy& AD) {
+      resetDeclValues(AD);
+    }    
     
     bool operator==(const ValTy& RHS) const { 
       assert (sizesEqual(RHS));
@@ -200,12 +209,22 @@
     
   public:
     
-    void resetValues(AnalysisDataTy& AD) {
-      ParentRef(*this).resetValues(AD);
+    
+    void resetExprValues(AnalysisDataTy& AD) {
       ExprBV.resize(AD.getNumExprs());
       ExprBV.reset();
     }
     
+    void setExprValues(AnalysisDataTy& AD) {
+      ExprBV.resize(AD.getNumExprs());
+      ExprBV.set();
+    }
+    
+    void resetValues(AnalysisDataTy& AD) {
+      resetDeclValues(AD);
+      resetExprValues(AD);
+    }
+    
     bool operator==(const ValTy& RHS) const { 
       return ParentRef(*this) == ParentRef(RHS) 
           && ExprBV == RHS.ExprBV;





More information about the cfe-commits mailing list