Skip to content
  1. Oct 05, 2013
    • Edwin Vane's avatar
      clang-modernize: Fix clang-apply-replacements invocation bug · 9e5b0da0
      Edwin Vane authored
      The command-line for clang-apply-replacements was being mangled due to an
      uninitialized variable. gasp! Now fixed.
      
      llvm-svn: 192033
      9e5b0da0
    • Edwin Vane's avatar
      clang-modernize: Apply replacements using clang-apply-replacements · c0f00b79
      Edwin Vane authored
      Summary:
      The clang-apply-replacements process is now invoked to apply
      replacements between applying transforms. This resulted in a massive
      simplification of the tool:
      - FileOverrides class no longer needed.
      - Change tracking and code formatting no longer needed.
      - No more dependency on libclangApplyReplacements.
      - Final syntax check is easier to do directly now than with a separate
        header/source pair.
      
      Replacement handling stuff abstracted into a new header/source pair to
      de-clutter ClangModernize.cpp somewhat.
      
      Tests updated.
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1836
      
      llvm-svn: 192032
      c0f00b79
  2. Oct 01, 2013
  3. Sep 30, 2013
    • Edwin Vane's avatar
      Fix build by adding dep on TransformUtils · 6afb6840
      Edwin Vane authored
      clang-apply-replacements unittest Makefile wasn't linking in TransformUtils.
      
      llvm-svn: 191669
      6afb6840
    • Edwin Vane's avatar
      clang-apply-replacements: Add code formatting functionality · 59d93af4
      Edwin Vane authored
      The tool now supports a collection of arguments to turn on and provide settings
      for the formatting of code affected by applying replacements:
      * --format turns on formatting (default style is LLVM)
      * --style controls code style settings
      * --style-config allows one to explicitly indicate where a style config file
        lives.
      
      The libclangApplyReplacements interface has a new function to turn Replacements
      into Ranges to be used with tooling::reformat().
      
      llvm-svn: 191667
      59d93af4
  4. Sep 26, 2013
  5. Sep 24, 2013
  6. Sep 23, 2013
  7. Sep 20, 2013
  8. Sep 19, 2013
  9. Sep 18, 2013
  10. Sep 16, 2013
  11. Sep 12, 2013
  12. Sep 11, 2013
  13. Sep 07, 2013
  14. Sep 06, 2013
  15. Sep 05, 2013
    • Manuel Klimek's avatar
      Fix writing of reformatted files. · bfbc8c84
      Manuel Klimek authored
      If transformations lead to changes that do not need reformatting, the
      current strategy will not write those files. With this patch, we just
      update the overall state with the changes due to reformatting, and then
      write out everything.
      
      llvm-svn: 190050
      bfbc8c84
  16. Sep 04, 2013
Loading