]> granicus.if.org Git - clang/commitdiff
Implement 'Add' method for GRStatePartialTrait<ImmutableList<T>>.
authorTed Kremenek <kremenek@apple.com>
Wed, 25 Feb 2009 02:54:00 +0000 (02:54 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 25 Feb 2009 02:54:00 +0000 (02:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65424 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/GRStateTrait.h

index d2d5c624f0babe2e5284764560f754680ec947c5..ce43cda31e9e54a44ea26ddcc2c731a0170a7318 100644 (file)
@@ -115,8 +115,13 @@ namespace clang {
   template <typename T>
   struct GRStatePartialTrait< llvm::ImmutableList<T> > {
     typedef llvm::ImmutableList<T>            data_type;
+    typedef T                                 key_type;
     typedef typename data_type::Factory&      context_type;  
     
+    static data_type Add(data_type L, key_type K, context_type F) {
+      return F.Add(K, L);
+    }
+    
     static inline data_type MakeData(void* const* p) {
       return p ? data_type((const llvm::ImmutableListImpl<T>*) *p) 
                : data_type(0);