[cfe-commits] r135241 - /cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/GRStateTrait.h

Ted Kremenek kremenek at apple.com
Thu Jul 14 20:32:56 PDT 2011


Author: kremenek
Date: Thu Jul 14 22:32:56 2011
New Revision: 135241

URL: http://llvm.org/viewvc/llvm-project?rev=135241&view=rev
Log:
Add 'Contains()' method to GRStateTrait for ImmutableList.  Patch by Rui Paulo.

Modified:
    cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/GRStateTrait.h

Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/GRStateTrait.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/GRStateTrait.h?rev=135241&r1=135240&r2=135241&view=diff
==============================================================================
--- cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/GRStateTrait.h (original)
+++ cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/GRStateTrait.h Thu Jul 14 22:32:56 2011
@@ -124,6 +124,10 @@
       return F.add(K, L);
     }
 
+    static bool Contains(data_type L, key_type K) {
+      return L.contains(K);
+    }
+
     static inline data_type MakeData(void* const* p) {
       return p ? data_type((const llvm::ImmutableListImpl<T>*) *p)
                : data_type(0);





More information about the cfe-commits mailing list