]> granicus.if.org Git - clang/commitdiff
Add 'Contains()' method to GRStateTrait for ImmutableList. Patch by Rui Paulo.
authorTed Kremenek <kremenek@apple.com>
Fri, 15 Jul 2011 03:32:56 +0000 (03:32 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 15 Jul 2011 03:32:56 +0000 (03:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135241 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/GRStateTrait.h

index 07cdbf523427d554d627ce68bf1ccc58ceae1784..de7b8684066fad7a4051499de2174afe9142128e 100644 (file)
@@ -124,6 +124,10 @@ namespace ento {
       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);