Skip to content
  1. Jul 19, 2013
  2. Jul 16, 2013
  3. Jul 03, 2013
  4. Jul 02, 2013
    • Daniel Jasper's avatar
      Fix ranges computed by git clang-format. · a3fc21a0
      Daniel Jasper authored
      Before, the computed byte range would include the trailing newline.
      clang-format on the other hand counts whitespace as belonging to the
      following token, so that git-clang-format inadvertendly reformats the
      first unmodified line as well.
      
      It is not entirely clear whether clang-format's behavior itself should
      be modified, but for now this seems to be a safe change.
      
      llvm-svn: 185423
      a3fc21a0
  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. Jun 14, 2013
    • Reid Kleckner's avatar
      [Driver] Refactor clang driver to use LLVM's Option library · 898229ab
      Reid Kleckner authored
      The big changes are:
      - Deleting Driver/(Arg|Opt)*
      - Rewriting includes to llvm/Option/ and re-sorting
      - 'using namespace llvm::opt' in clang::driver
      - Fixing the autoconf build by adding option everywhere
      
      As discussed in the review, this change includes using directives in
      header files.  I'll make follow up changes to remove those in favor of
      name specifiers.
      
      Reviewers: espindola
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D975
      
      llvm-svn: 183989
      898229ab
  7. Jun 11, 2013
  8. Jun 10, 2013
  9. May 30, 2013
  10. May 23, 2013
  11. May 21, 2013
  12. May 19, 2013
  13. May 16, 2013
  14. May 14, 2013
    • Daniel Jasper's avatar
      Update clang-format emacs integration. · 6e3506f2
      Daniel Jasper authored
      - Remove free variables
      - Add function clang-format-buffer, e.g. for before-save-hooks
      - Wrap restoring windows in an unwind-protect
      
      Patch by Stephen Gildea!
      
      llvm-svn: 181766
      6e3506f2
  15. May 10, 2013
  16. May 07, 2013
  17. May 06, 2013
  18. May 02, 2013
  19. Apr 25, 2013
  20. 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
  21. Apr 17, 2013
  22. Apr 12, 2013
  23. Apr 09, 2013
    • Daniel Jasper's avatar
      Improvements to clang-format integrations. · e4549a23
      Daniel Jasper authored
      This adds an emacs editor integration (thanks to Ami Fischman). Also
      pulls out the style into a variable for the vi integration and just
      uses clang-formats defaults style in clang-format-diff.py.
      
      llvm-svn: 179098
      e4549a23
  24. Apr 08, 2013
  25. Mar 20, 2013
Loading