[PATCH] D20734: [clang-format] insert new #includes into correct blocks when cleaning up Replacement with cleanupAroundReplacements().
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri May 27 09:24:13 PDT 2016
ioeric created this revision.
ioeric added reviewers: djasper, klimek.
ioeric added subscribers: bkramer, cfe-commits.
Herald added a subscriber: klimek.
When a replacement's offset is set to UINT_MAX or -1U, it is treated as
a header insertion replacement by cleanupAroundReplacements(). The new #include
directive is then inserted into the correct block.
http://reviews.llvm.org/D20734
Files:
include/clang/Format/Format.h
lib/Format/Format.cpp
unittests/Format/CleanupTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20734.58799.patch
Type: text/x-patch
Size: 21240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160527/75e2c3b0/attachment-0001.bin>
More information about the cfe-commits
mailing list