Skip to content
  1. Sep 02, 2013
    • Chandler Carruth's avatar
      Switch the default mode for clang-format to '-file'. Make 'LLVM' the · bc36e6e0
      Chandler Carruth authored
      fallback syntax used when we fail to find a '.clang-format' file. Adjust
      variable names appropriately.
      
      Update the editor integration pieces that specify a '-style' option to
      specify it as '-style=file'. I left the functionality in place because
      even if the preferred method is to use '.clang-format' files, this way
      if someone needs to clobber the style in their editor we show how to do
      so in these examples.
      
      Also check in a '.clang-format' file for Clang to ensure that separate
      checkouts and builds of Clang from LLVM can still get the nice
      formatting. =] This unfortunately required nuking the test for the
      absence of a '.clang-format' file as now the directory happening to be
      under your clang source tree will cause there to always be a file. ;]
      
      llvm-svn: 189741
      bc36e6e0
  2. Sep 01, 2013
  3. Aug 31, 2013
  4. Aug 30, 2013
  5. Aug 29, 2013
    • DeLesley Hutchins's avatar
      Consumed analysis: non-const methods no longer transfer an object into an · 7fa60edb
      DeLesley Hutchins authored
      unknown state.  Patch by chris.wailes@gmail.com.
      
      llvm-svn: 189612
      7fa60edb
    • Manman Ren's avatar
      Debug Info: this reverts commit r189600. · f801f808
      Manman Ren authored
      We had further discussions on how to retain types, whether to do it in front end
      or in DIBuilder. And we agree to do it in DIBuilder so front ends
      generating unique identifier do not need to worry about retaining them.
      
      llvm-svn: 189609
      f801f808
    • Aaron Ballman's avatar
      Silencing the warning from r189605 in a more conformant manner. · a21f4b8d
      Aaron Ballman authored
      llvm-svn: 189606
      a21f4b8d
    • Aaron Ballman's avatar
      Silencing a rather spurious warning from MSVC 11 about not all control paths... · 130db36d
      Aaron Ballman authored
      Silencing a rather spurious warning from MSVC 11 about not all control paths returning a value (hint: they do).
      
      llvm-svn: 189605
      130db36d
    • Manman Ren's avatar
      Debug Info: generate a unique identifier for C++ struct, class, union, and enum. · 035c4b02
      Manman Ren authored
      We use CXX mangler to generate unique identifier for external C++ struct,
      union, class and enum. Types with unique identifier are added to RetainedTypes
      to make sure they are treated as used even when all uses are replaced with
      the identifiers.
      
      A single type can be added to RetainedTypes multiple times. For example, both 
      createForwardDecl and createLimitedType can add the same type to RetainedTypes.
      A set is used to avoid duplication when updating AllRetainTypes in DIBuilder.
      
      Testing cases are updated to reflect the unique identifier generated for types.
      The order of MDNodes is changed because of retained types and testing cases
      are updated accordingly.
      
      Testing case debug-info-uuid.cpp now emits error with Itanium mangler, since
      uuid is not yet handled in Itanium mangler.
      
      We choose to update RetainedTypes in clang, then at finalize(), we update
      AllRetainTypes in DIBuilder. The other choice is to update AllRetainTypes
      in DIBuilder when creating a DICompositeType with unique identifier. This
      option requires using ValueHandle for AllRetainTypes in DIBuilder since
      the created DICompositeType can be modified later on by setContainingType etc.
      
      llvm-svn: 189600
      035c4b02
Loading