Skip to content
  1. Dec 16, 2009
    • Eli Friedman's avatar
      Add abort() as a builtin. This has two effects: one, we warn for incorrect · 53b3cde6
      Eli Friedman authored
      declarations of abort(), and two, we mark it noreturn.  Missing the latter
      shows up in one of the "embarassing" tests (from the thread on llvmdev
      "detailed comparison of generated code size for LLVM and other compilers").
      
      llvm-svn: 91515
      53b3cde6
    • Anders Carlsson's avatar
      Mangle CXXOperatorCallExprs, fixes PR5796. · b7e93e26
      Anders Carlsson authored
      llvm-svn: 91507
      b7e93e26
    • Ted Kremenek's avatar
      Add (initial?) static analyzer support for handling C++ references. · 4cad5fc0
      Ted Kremenek authored
      This change was a lot bigger than I originally anticipated; among
      other things it requires us storing more information in the CFG to
      record what block-level expressions need to be evaluated as lvalues.
      
      The big change is that CFGBlocks no longer contain Stmt*'s by
      CFGElements.  Currently CFGElements just wrap Stmt*, but they also
      store a bit indicating whether the block-level expression should be
      evalauted as an lvalue.  DeclStmts involving the initialization of a
      reference require us treating the initialization expression as an
      lvalue, even though that information isn't recorded in the AST.
      Conceptually this change isn't that complicated, but it required
      bubbling up the data through the CFGBuilder, to GRCoreEngine, and
      eventually to GRExprEngine.
      
      The addition of CFGElement is also useful for when we want to handle
      more control-flow constructs or other data we want to keep in the CFG
      that isn't represented well with just a block of statements.
      
      In GRExprEngine, this patch introduces logic for evaluating the
      lvalues of references, which currently retrieves the internal "pointer
      value" that the reference represents.  EvalLoad does a two stage load
      to catch null dereferences involving an invalid reference (although
      this could possibly be caught earlier during the initialization of a
      reference).
      
      Symbols are currently symbolicated using the reference type, instead
      of a pointer type, and special handling is required creating
      ElementRegions that layer on SymbolicRegions (see the changes to
      RegionStoreManager).
      
      Along the way, the DeadStoresChecker also silences warnings involving
      dead stores to references.  This was the original change I introduced
      (which I wrote test cases for) that I realized caused GRExprEngine to
      crash.
      
      llvm-svn: 91501
      4cad5fc0
    • John McCall's avatar
      Successive anonymous namespaces name the same scope. I misinterpreted the · 0db42252
      John McCall authored
      standard the last time.  Fixes PR5766.
      
      llvm-svn: 91493
      0db42252
    • Douglas Gregor's avatar
      Switch the C++ new expression over to InitializationSequence, rather · 85dabae6
      Douglas Gregor authored
      than using its own partial implementation of initialization. 
      
      Switched CheckInitializerTypes over to
      InitializedEntity/InitializationKind, to help move us closer to
      InitializationSequence.
      
      Added InitializedEntity::getName() to retrieve the name of the entity,
      for diagnostics that care about such things.
      
      Implemented support for default initialization in
      InitializationSequence.
      
      Clean up the determination of the "source expressions" for an
      initialization sequence in InitializationSequence::Perform.
      
      Taught CXXConstructExpr to store more location information.
      
      llvm-svn: 91492
      85dabae6
    • Fariborz Jahanian's avatar
      Diagnose attempting to assign to a sub-structure of an ivar · e8d28904
      Fariborz Jahanian authored
      using objective-c property. (fixes radar 7449707)
      
      llvm-svn: 91474
      e8d28904
  2. Dec 15, 2009
  3. Dec 14, 2009
Loading