summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-apply-replacements/ReformattingTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Run llvm/utils/sort_includes.py over the Clang tools code. This doesn'tChandler Carruth2014-01-071-1/+1
| | | | | | | | | | always produce as pretty of results as it does in LLVM and Clang, but I don't mind and the value of having a single canonical ordering is very high IMO. Let me know if you spot really serious problems here. llvm-svn: 198703
* clang-apply-replacements: Add code formatting functionalityEdwin Vane2013-09-301-0/+69
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
OpenPOWER on IntegriCloud