[cfe-commits] r65424 - /cfe/trunk/include/clang/Analysis/PathSensitive/GRStateTrait.h

Ted Kremenek kremenek at apple.com
Tue Feb 24 18:54:01 PST 2009


Author: kremenek
Date: Tue Feb 24 20:54:00 2009
New Revision: 65424

URL: http://llvm.org/viewvc/llvm-project?rev=65424&view=rev
Log:
Implement 'Add' method for GRStatePartialTrait<ImmutableList<T>>.

Modified:
    cfe/trunk/include/clang/Analysis/PathSensitive/GRStateTrait.h

Modified: cfe/trunk/include/clang/Analysis/PathSensitive/GRStateTrait.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathSensitive/GRStateTrait.h?rev=65424&r1=65423&r2=65424&view=diff

==============================================================================
--- cfe/trunk/include/clang/Analysis/PathSensitive/GRStateTrait.h (original)
+++ cfe/trunk/include/clang/Analysis/PathSensitive/GRStateTrait.h Tue Feb 24 20:54:00 2009
@@ -115,8 +115,13 @@
   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);





More information about the cfe-commits mailing list