Skip to content
  1. Jan 29, 2009
  2. Jan 28, 2009
  3. Jan 27, 2009
    • Chris Lattner's avatar
      Split the single monolithic DiagnosticKinds.def file into one · 7368d581
      Chris Lattner authored
      .def file for each library.  This means that adding a diagnostic
      to sema doesn't require all the other libraries to be rebuilt.
      
      Patch by Anders Johnsen!
      
      llvm-svn: 63111
      7368d581
    • Ted Kremenek's avatar
      Fix bug in BasicStore::getLValueElement where if the base of an array... · 422d81dc
      Ted Kremenek authored
      Fix bug in BasicStore::getLValueElement where if the base of an array subscript expression was an ElementRegion we stacked another ElementRegion on top of that.
      
      This fixes PR 3422.
      
      llvm-svn: 63110
      422d81dc
    • Chris Lattner's avatar
      Introduce a new PresumedLoc class to represent the concept of a location · f1ca7d3e
      Chris Lattner authored
      as reported to the user and as manipulated by #line.  This is what __FILE__,
      __INCLUDE_LEVEL__, diagnostics and other things should follow (but not 
      dependency generation!).  
      
      This patch also includes several cleanups along the way: 
      
      - SourceLocation now has a dump method, and several other places 
        that did similar things now use it.
      - I cleaned up some code in AnalysisConsumer, but it should probably be
        simplified further now that NamedDecl is better.
      - TextDiagnosticPrinter is now simplified and cleaned up a bit.
      
      This patch is a prerequisite for #line, but does not actually provide 
      any #line functionality.
      
      llvm-svn: 63098
      f1ca7d3e
    • Ted Kremenek's avatar
      PathDiagnostics: · a3f462e4
      Ted Kremenek authored
      - Add the distinction between the 'bug type' and the 'bug description'
      
      HTMLDiagnostics:
      - Output the bug type field as HTML comments
      
      scan-build:
      - Use the bug type field instead of the bug description for the HTML table.
      - Radar filing now automatically picks up the bug description in the title (addresses <rdar://problem/6265970>)
      
      llvm-svn: 63084
      a3f462e4
  4. Jan 26, 2009
  5. Jan 25, 2009
  6. Jan 24, 2009
  7. Jan 23, 2009
  8. Jan 22, 2009
    • Ted Kremenek's avatar
      Fix RegionStore::getLValueElement() to handle the case when the base region is... · 92d48a71
      Ted Kremenek authored
      Fix RegionStore::getLValueElement() to handle the case when the base region is not an ElementRegion (also do some cleanups of its core logic).
      This gets array-struct.c to work with RegionStore.
      
      llvm-svn: 62781
      92d48a71
    • Ted Kremenek's avatar
      SymbolReaper::isLive(SymbolRef) now always returns true for... · 2dd9c9cb
      Ted Kremenek authored
      SymbolReaper::isLive(SymbolRef) now always returns true for SymbolRegionRvalues because these represent the symbolic values for parameters/globals upon entry to the function.  These values are always ;live' because they represent constraints on the context of how the function was called.  This will be useful for both summary generation but is also necessary to get RegionStore's lazy-binding of locations to symbols to work in practice with RemoveDeadBindings.
      
      llvm-svn: 62771
      2dd9c9cb
    • Ted Kremenek's avatar
      Static analyzer: Remove a bunch of outdated SymbolData objects and · 74040833
      Ted Kremenek authored
      their associated APIs.  We no longer need separate SymbolData objects
      for fields, variables, etc.  Instead, we now associated symbols with
      the "rvalue" of a MemRegion (i.e., the value stored at that region).
      Now we only have two kinds of SymbolData objects: SymbolRegionRValue
      and SymbolConjured.
      
      This cleanup also makes the distinction between a SymbolicRegion and a
      symbolic value that is a location much clearer.  A SymbolicRegion
      represents a chunk of symbolic memory, while a symbolic location is
      just a "pointer" with different possible values.  Without any specific
      knowledge, a symbolic location resolves (i.e., via a dereference) to a
      SymbolicRegion.  In the future, when we do better alias reasoning, a
      symbolic location can become an alias for another location, thus
      merging the constraints on the referred SymbolicRegion with the other
      region.
      
      llvm-svn: 62769
      74040833
  9. Jan 21, 2009
  10. Jan 20, 2009
    • Douglas Gregor's avatar
      Remove ScopedDecl, collapsing all of its functionality into Decl, so · 6e6ad602
      Douglas Gregor authored
      that every declaration lives inside a DeclContext.
      
      Moved several things that don't have names but were ScopedDecls (and,
      therefore, NamedDecls) to inherit from Decl rather than NamedDecl,
      including ObjCImplementationDecl and LinkageSpecDecl. Now, we don't
      store empty DeclarationNames for these things, nor do we try to insert
      them into DeclContext's lookup structure.
      
      The serialization tests are temporarily disabled. We'll re-enable them
      once we've sorted out the remaining ownership/serialiazation issues
      between DeclContexts and TranslationUnion, DeclGroups, etc.
      
      llvm-svn: 62562
      6e6ad602
    • Ted Kremenek's avatar
      Dead stores checker: Fix <rdar://problem/6506065> by being more selective when... · e5fe617e
      Ted Kremenek authored
      Dead stores checker: Fix <rdar://problem/6506065> by being more selective when say that a store is dead even though the computed value is used in the enclosing expression.
      
      llvm-svn: 62552
      e5fe617e
  11. Jan 17, 2009
Loading