Skip to content
  1. Jul 22, 2011
    • Chandler Carruth's avatar
      Move duplicate uninitialized warning suppression into the · 4dd6c043
      Chandler Carruth authored
      AnalysisBasedWarnings Sema layer and out of the Analysis library itself.
      This returns the uninitialized values analysis to a more pure form,
      allowing its original logic to correctly detect some categories of
      definitely uninitialized values. Fixes PR10358 (again).
      
      Thanks to Ted for reviewing and updating this patch after his rewrite of
      several portions of this analysis.
      
      llvm-svn: 135748
      4dd6c043
    • John McCall's avatar
      Move this ObjCImplementationDecl member function into libAST · 0410e572
      John McCall authored
      where it belongs.
      
      llvm-svn: 135746
      0410e572
    • John McCall's avatar
      In Objective-C, pull arbitrary attributes from overridden · d2930c21
      John McCall authored
      methods, including indirectly overridden methods like those
      declared in protocols and categories.  There are mismatches
      that we would like to diagnose but aren't yet, but this   
      is fine for now.
      
      I looked at approaches that avoided doing this lookup 
      unless we needed it, but the infer-related-result-type
      checks were doing it anyway, so I left it with the same
      fast-path check for no previous declartions of that 
      selector.
      
      llvm-svn: 135743
      d2930c21
    • Jordy Rose's avatar
      Add a const overload for ObjCInterfaceDecl::all_declared_ivar_begin. · a91768e5
      Jordy Rose authored
      This was previously not-const only because it has to lazily construct a chain
      of ivars the first time it is called (and after the chain is invalidated).
      In practice, all the clients were just const_casting their const Decls;
      all those now-unnecessary const_casts have been removed.
      
      llvm-svn: 135741
      a91768e5
    • Fariborz Jahanian's avatar
      objective-c: Any use of @synthesize or @dynamic lexically after a method (or C... · dff8de77
      Fariborz Jahanian authored
      objective-c: Any use of @synthesize or @dynamic lexically after a method (or C function) implementation 
      will be rejected with a compilation error in ARC mode, and a compiler warning otherwise.
      This may cause breakage in non-arc (and arc) tests which don't expect warning/error. Feel free
      to fix the tests, or reverse the patch, if I am unavailable. // rdar://9818354 - WIP
      
      llvm-svn: 135740
      dff8de77
  2. Jul 21, 2011
  3. Jul 20, 2011
  4. Jul 19, 2011
    • Anna Zaks's avatar
      Add FixItHints in case a C++ function call is missing * or & operators on... · df92ddf8
      Anna Zaks authored
      Add FixItHints in case a C++ function call is missing * or & operators on one/several of it's parameters (addresses http://llvm.org/PR5941).
      
      llvm-svn: 135509
      df92ddf8
    • Ted Kremenek's avatar
      Reduce -Wuninitialized time by 22% (on sqlite) by removing the recursive AST crawl. · 9e100ea1
      Ted Kremenek authored
      This is accomplished by forcing the needed expressions for -Wuninitialized to always be CFGElements in the CFG.
      This allows us to remove a fair amount of the code for -Wuninitialized.
      
      Some fallout:
      - AnalysisBasedWarnings.cpp now specifically toggles the CFGBuilder to create a CFG that is suitable for -Wuninitialized.  This
      is a layering violation, since the logic for -Wuninitialized is in libAnalysis.  This can be fixed with the proper refactoring.
      - Some of the source locations for -Wunreachable-code warnings have shifted.  While not ideal, this is okay because that analysis
      already needs some serious reworking.
      
      llvm-svn: 135480
      9e100ea1
  5. Jul 18, 2011
  6. Jul 16, 2011
  7. Jul 15, 2011
  8. Jul 14, 2011
  9. Jul 13, 2011
Loading