[PATCH] clang-apply-replacements: Add code-formatting post processing step
Edwin Vane
edwin.vane at intel.com
Fri Sep 27 13:39:08 PDT 2013
- Re-use much stuff from libFormat and clang-format:
- Use format::reformat() instead of reformatRanges().
- Handling of format command-line options has has a major overhaul. Now
using some of clang-format's functionality now in libFormat.
- Range coalescing doesn't happen any more.
- pre/post-conditions made more explicit.
- Unit tests updated to reflect changes in code.
- Refactoring of code involving getNewDataFor().
Hi tareqsiraj, arielbernal, Sarcasm, klimek, djasper,
http://llvm-reviews.chandlerc.com/D1730
CHANGE SINCE LAST DIFF
http://llvm-reviews.chandlerc.com/D1730?vs=4496&id=4527#toc
Files:
clang-apply-replacements/CMakeLists.txt
clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h
clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
test/clang-apply-replacements/Inputs/format/no.cpp
test/clang-apply-replacements/Inputs/format/no.yaml
test/clang-apply-replacements/Inputs/format/yes.cpp
test/clang-apply-replacements/Inputs/format/yes.yaml
test/clang-apply-replacements/format.cpp
unittests/CMakeLists.txt
unittests/Makefile
unittests/clang-apply-replacements/CMakeLists.txt
unittests/clang-apply-replacements/Makefile
unittests/clang-modernize/Makefile
unittests/clang-apply-replacements/ReformattingTest.cpp
unittests/clang-modernize/CMakeLists.txt
unittests/clang-modernize/FileOverridesTest.cpp
unittests/clang-modernize/IncludeDirectivesTest.cpp
unittests/clang-modernize/IncludeExcludeTest.cpp
unittests/clang-modernize/ReformattingTest.cpp
unittests/include/common/Utility.h
unittests/clang-modernize/Utility.h
unittests/include/common/VirtualFileHelper.h
unittests/clang-modernize/VirtualFileHelper.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1730.8.patch
Type: text/x-patch
Size: 30411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130927/14dee0c9/attachment.bin>
More information about the cfe-commits
mailing list