[PATCH] D24829: [clang-format] support header deletion in cleanupAroundReplacemnts.

Eric Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 22 08:19:16 PDT 2016


ioeric created this revision.
ioeric added a reviewer: djasper.
ioeric added subscribers: klimek, cfe-commits.

- If a replacement has offset UINT_MAX, length 0, and a replacement text
  that is an #include directive, this will insert the #include into the
  correct block in the \p Code.
- If a replacement has offset UINT_MAX, length 1, and a replacement text
  that is the name of the header to be removed, the header will be removed
  from \p Code if it exists.

https://reviews.llvm.org/D24829

Files:
  include/clang/Format/Format.h
  lib/Format/Format.cpp
  unittests/Format/CleanupTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24829.72175.patch
Type: text/x-patch
Size: 7646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160922/04c5a013/attachment-0001.bin>


More information about the cfe-commits mailing list