Skip to content
  1. Oct 31, 2008
  2. Oct 30, 2008
  3. Oct 29, 2008
    • Zhongxing Xu's avatar
      Add notes for SCA. · 9c15820e
      Zhongxing Xu authored
      llvm-svn: 58373
      9c15820e
    • Ted Kremenek's avatar
      Patch by Nikita Zhuk: · 3f04949b
      Ted Kremenek authored
      The attached patch adds additional checks to -warn-objc-missing-dealloc. It checks that all ivars which are used in implementation of synthesized properties are either
      
      a) released in dealloc if the property has retain" or "copy" attribute OR
      b) not released in dealloc if the property has "assign" attribute
      
      llvm-svn: 58363
      3f04949b
    • Ted Kremenek's avatar
      IOServiceGetMatchingServices is a release function. · 3700b762
      Ted Kremenek authored
      llvm-svn: 58362
      3700b762
    • Zhongxing Xu's avatar
      Rename: AddDecl => BindDecl · 628ae879
      Zhongxing Xu authored
      BindDecl better describes what the function does:
        - Bind the VarDecl to its memory region
        - Bind the memory region to some initial value.
      
      llvm-svn: 58359
      628ae879
  4. Oct 28, 2008
  5. Oct 27, 2008
    • Ted Kremenek's avatar
      Added preliminary support for CompoundLiterals in the static analyzer: · bf263682
      Ted Kremenek authored
      - GRExprEngine::VisitCompoundLiteral...
         (1) visits the initializer list (generating ExplodedNodes)
         (2) creates a CompoundMemRegion for the literal
         (3) creates a new state with the bound literal values using
             GRStateManager::BindCompoundLiteral
      
      - GRStateManager::BindCompoundLiteral simply calls 
        StoreManager::BindCompoundLiteral to get a new store and returns a persistent
        GRState with that store.
      
      - BasicStore::BindCompoundLiteral simply returns the same store, as it
        doesn't handle field sensitivity
        
      - RegionStore::BindCompoundLiteral currently fires an assert (pending discussion
        of how to best implement mappings for CompoundLiteralRegion).
      
      llvm-svn: 58277
      bf263682
    • Ted Kremenek's avatar
      Pull determination of the super region for a VarRegion into a single... · eaf5e24c
      Ted Kremenek authored
      Pull determination of the super region for a VarRegion into a single getVarRegion() method.  This provides a common clean API for clients.
      
      llvm-svn: 58272
      eaf5e24c
    • Ted Kremenek's avatar
    • Douglas Gregor's avatar
      Refactor the expression class hierarchy for casts. Most importantly: · e200adc5
      Douglas Gregor authored
        - CastExpr is the root of all casts
        - ImplicitCastExpr is (still) used for all explicit casts
        - ExplicitCastExpr is now the root of all *explicit* casts
        - ExplicitCCastExpr (new name needed!?) is a C-style cast in C or C++
        - CXXFunctionalCastExpr inherits from ExplicitCastExpr
        - CXXNamedCastExpr inherits from ExplicitCastExpr and is the root of all
          of the C++ named cast expression types (static_cast, dynamic_cast, etc.)
        - Added classes CXXStaticCastExpr, CXXDynamicCastExpr, 
          CXXReinterpretCastExpr, and CXXConstCastExpr to 
      
      Also, fixed returned-stack-addr.cpp, which broke once when we fixed
      reinterpret_cast to diagnose double->int* conversions and again when
      we eliminated implicit conversions to reference types. The fix is in
      both testcase and SemaChecking.cpp.
      
      Most of this patch is simply support for the renaming. There's very
      little actual change in semantics.
      
      llvm-svn: 58264
      e200adc5
    • Zhongxing Xu's avatar
      Use ASTContext::getCanonicalType() to get TypedRegion's type. · 144d7554
      Zhongxing Xu authored
      llvm-svn: 58247
      144d7554
Loading