[PATCH] D11240: Add basic #include sorting functionality to clang-format
Daniel Jasper
djasper at google.com
Wed Jul 15 13:57:49 PDT 2015
djasper created this revision.
djasper added reviewers: cfe-commits, klimek.
Herald added a subscriber: klimek.
This is still a reasonably early patch. Specifically I'd like feedback on:
* The interface in Format.h. Should we have this additional function? Should we have a function that does both?
* The design of sorting #includes, then re-constructing the changed code in memory and then doing the formatting. The benefit is that this enables things like re-aligning the trailing comments of #includes, etc.
http://reviews.llvm.org/D11240
Files:
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/FormatToken.cpp
tools/clang-format/CMakeLists.txt
tools/clang-format/ClangFormat.cpp
tools/clang-format/clang-format.py
unittests/Format/CMakeLists.txt
unittests/Format/SortIncludesTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11240.29826.patch
Type: text/x-patch
Size: 14958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150715/040c17c2/attachment.bin>
More information about the cfe-commits
mailing list