Skip to content
  1. Mar 09, 2012
    • Ted Kremenek's avatar
      [analyzer] Implement basic path diagnostic pruning based on "interesting" symbols and regions. · 1e809b4c
      Ted Kremenek authored
      Essentially, a bug centers around a story for various symbols and regions.  We should only include
      the path diagnostic events that relate to those symbols and regions.
      
      The pruning is done by associating a set of interesting symbols and regions with a BugReporter, which
      can be modified at BugReport creation or by BugReporterVisitors.
      
      This patch reduces the diagnostics emitted in several of our test cases.  I've vetted these as
      having desired behavior.  The only regression is a missing null check diagnostic for the return
      value of realloc() in test/Analysis/malloc-plist.c.  This will require some investigation to fix,
      and I have added a FIXME to the test case.
      
      llvm-svn: 152361
      1e809b4c
    • Anna Zaks's avatar
      [analyzer] Use call graph to determine order in which functions are · eee91107
      Anna Zaks authored
      analyzed.
      
      The CallGraph is used when inlining is on, which is the current default.
      
      This alone does not bring any performance improvement. It's a
      stepping stone for the upcoming optimization in which we do not
      re-analyze a function that has already been analyzed while inlined in
      other functions. Using the call graph makes it easier to play with
      the order of functions to minimize redundant analyzes.
      
      llvm-svn: 152352
      eee91107
    • Anna Zaks's avatar
      [analyzer] Rework inlining related command line options. · 0af3e06f
      Anna Zaks authored
       - Remove -analyzer-inline-call.
       - Add -analyzer-ipa=[none|inlining]
       - Add -analyzer-inlining-mode to allow experimentation for
      different performance tuning methods.
      
      llvm-svn: 152351
      0af3e06f
    • Anna Zaks's avatar
      Call Graph: Only the root node is allowed to have an invalid Decl*. · 9a008bb7
      Anna Zaks authored
      llvm-svn: 152350
      9a008bb7
    • Richard Smith's avatar
      Remove a test FIXME for a case which is already fixed. · bf79fc49
      Richard Smith authored
      llvm-svn: 152349
      bf79fc49
    • Richard Smith's avatar
      Fix a couple of issues with literal-operator-id parsing, and provide recovery · 7d182a79
      Richard Smith authored
      for a few kinds of error. Specifically:
      
      Since we're after translation phase 6, the "" token might be formed by multiple
      source-level string literals. Checking the token width is not a correct way of
      detecting empty string literals, due to escaped newlines. Diagnose and recover
      from a missing space between "" and suffix, and from string literals other than
      "", which are followed by a suffix.
      
      llvm-svn: 152348
      7d182a79
  2. Mar 08, 2012
  3. Mar 07, 2012
Loading