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. Jul 19, 2013
  3. Jul 16, 2013
  4. Jul 03, 2013
  5. Jun 28, 2013
    • Alexander Kornienko's avatar
      Use lexing mode based on FormatStyle.Standard. · 1e80887d
      Alexander Kornienko authored
      Summary:
      Some valid pre-C++11 constructs change meaning when lexed in C++11
      mode, e.g.
      #define x(_a) printf("foo"_a);
      (example from http://llvm.org/bugs/show_bug.cgi?id=16342). "foo"_a is treated as
      a user-defined string literal when parsed in C++11 mode.
      In order to deal with this correctly, we need to set lexing mode according to
      which standard the code conforms to. We already have a configuration value for
      this (FormatStyle.Standard), which seems to be appropriate to use in this case
      as well.
      
      Reviewers: klimek
      
      CC: cfe-commits, gribozavr
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1028
      
      llvm-svn: 185149
      1e80887d
  6. May 21, 2013
  7. May 19, 2013
  8. May 10, 2013
  9. May 06, 2013
  10. Apr 24, 2013
    • Alexander Kornienko's avatar
      clang-format support for multiple input files. · 3fbee010
      Alexander Kornienko authored
      Summary:
      Added support for multiple input files, that can be used both with and
      without in-place edit (-i) option. Added checks for -offset and -length options:
      don't allow them on multiple files, check that they don't fall outside input
      file, made both options unsigned, so that there's no need to check for negative
      values. Removed "-1 can be used for end-of-file" from -length description.
      
      Reviewers: djasper, klimek
      
      Reviewed By: djasper
      
      CC: cfe-commits
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D719
      
      llvm-svn: 180185
      3fbee010
  11. Apr 08, 2013
  12. Mar 20, 2013
Loading