Skip to content
  1. Jul 11, 2013
  2. Jul 10, 2013
    • Fariborz Jahanian's avatar
      ObjC migrator: Improve on hueristics. · 56f48d09
      Fariborz Jahanian authored
      migrate to 'copy attribute if Object
      class implements NSCopying otherwise 
      assume implied 'strong'. Remove 
      lifetime qualifier on property as it has
      moved to property's attribute. Added TODO
      comment for future work by poking into
      setter implementation.
      
      llvm-svn: 186037
      56f48d09
    • Eric Christopher's avatar
      Use a LexicalScope here since it is one and it will encapsulate · 872018b5
      Eric Christopher authored
      the two sets of debug scope and cleanup scope.
      
      llvm-svn: 186030
      872018b5
    • Jordan Rose's avatar
      [analyzer] Remove bogus assert: in C++11, 'new' can do list-initialization. · 6444653a
      Jordan Rose authored
      Previously, we asserted that whenever 'new' did not include a constructor
      call, the type must be a non-record type. In C++11, however, uniform
      initialization syntax (braces) allow 'new' to construct records with
      list-initialization: "new Point{1, 2}".
      
      Removing this assertion should be perfectly safe; the code here matches
      what VisitDeclStmt does for regions allocated on the stack.
      
      <rdar://problem/14403437>
      
      llvm-svn: 186028
      6444653a
    • James Dennett's avatar
      Add a hook RecursiveASTVisitor::TraverseLambdaBody, to enable visitors to · 86e67a2f
      James Dennett authored
      use/maintain additional state from the LambdaExpr while visiting the body
      of a LambdaExpr.
      
      One use for this arises because Clang's AST currently holds lambda bodies
      in a form prior to their adjustment to refer to captured copies of local
      variables, and so some clients will need access to the lambda's closure
      type in order to query how to map VarDecl*s to the FieldDecls of their
      by-copy captures. This hook is sufficient for at least one such client;
      to do this without such a hook would require the client to re-implement
      the whole of TraverseLambdaExpr, which is non-trivial and would likely be
      more brittle.
      
      llvm-svn: 186024
      86e67a2f
    • Kaelyn Uhrain's avatar
      Offer typo suggestions for 'using' declarations. · 8ec9f5f6
      Kaelyn Uhrain authored
      Patch courtesy of Luke Zarko <zarko@google.com>
      
      llvm-svn: 186019
      8ec9f5f6
    • Daniel Jasper's avatar
      Add experimental flag for adaptive parameter bin-packing. · b10cbc45
      Daniel Jasper authored
      This is not activated for any style, might change or go away
      completely.
      
      For those that want to play around with it, set
      ExperimentalAutoDetectBinPacking to true.
      
      clang-format will then:
      Look at whether function calls/declarations/definitions are currently
      formatted with one parameter per line (on a case-by-case basis). If so,
      clang-format will avoid bin-packing the parameters. If all parameters
      are on one line (thus that line is "inconclusive"), clang-format will
      make the choice dependent on whether there are other bin-packed
      calls/declarations in the same file.
      
      The reason for this change is that bin-packing in some situations can be
      really bad and an author might opt to put one parameter on each line. If
      the author does that, he might want clang-format not to mess with that.
      If the author is unhappy with the one-per-line formatting, clang-format
      can easily be convinced to bin-pack by putting any two parameters on the
      same line.
      
      llvm-svn: 186003
      b10cbc45
    • Serge Pavlov's avatar
      Fixed comment of Sema::FindInstantiatedDecl. · ed5fe90b
      Serge Pavlov authored
      llvm-svn: 185997
      ed5fe90b
    • Eli Friedman's avatar
      Finish off mangling locals in block literals. · 0cd23357
      Eli Friedman authored
      Specifically, handle the case where the block is in a default argument
      in a class method.  The mangling here follows what we do for lambdas.
      
      llvm-svn: 185991
      0cd23357
    • Eli Friedman's avatar
      Get rid of dead/useless code for block mangling. · 8978a9dd
      Eli Friedman authored
      llvm-svn: 185989
      8978a9dd
    • Eli Friedman's avatar
      More local mangling fixes. · 3b7d46c3
      Eli Friedman authored
      Compute mangling numbers for externally visible local variables and tags.
      Change the mangler to consistently use discriminators where necessary.
      Tweak the scheme we use to number decls which are not externally visible
      to avoid unnecessary discriminators in common cases now that we request
      them more consistently.
      
      Fixes <rdar://problem/14204721>.
      
      llvm-svn: 185986
      3b7d46c3
    • Fariborz Jahanian's avatar
      objc migrator: More refinment of property · a830ea74
      Fariborz Jahanian authored
      attributes in migration. Specialli use of
      'copy' attribute for retainable object types.
      
      llvm-svn: 185985
      a830ea74
    • Peter Collingbourne's avatar
      Apply BlackList -> SpecialCaseList rename in Clang. · 41148a8a
      Peter Collingbourne authored
      Differential Revision: http://llvm-reviews.chandlerc.com/D1095
      
      llvm-svn: 185979
      41148a8a
    • Fariborz Jahanian's avatar
      Objective-C: merge objc_requires_super attribute of · db4fc281
      Fariborz Jahanian authored
      method declaration into its implementation to
      prevent a bogus warning about mismatched attributes.
      then make sure the warning about missing call to super comes out
      of the method implementation. // rdar://14251387
      
      llvm-svn: 185974
      db4fc281
  3. Jul 09, 2013
Loading