[PATCH] D159263: [clang-tidy] misc-include-cleaner: fix duplicated fixes
Ding Fei via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 31 08:30:51 PDT 2023
danix800 updated this revision to Diff 555059.
danix800 retitled this revision from "[clang-tidy] misc-include-cleaner: remove duplicated includes & fixes" to "[clang-tidy] misc-include-cleaner: fix duplicated fixes".
danix800 edited the summary of this revision.
danix800 added a comment.
1. Use `clang::tidy::utils::IncludeInserter` to avoid repeated insertion;
2. Leave out the deduplication policy part.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159263/new/
https://reviews.llvm.org/D159263
Files:
clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.cpp
clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.h
clang-tools-extra/test/clang-tidy/checkers/misc/Inputs/baz.h
clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159263.555059.patch
Type: text/x-patch
Size: 6904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230831/a2b49639/attachment.bin>
More information about the cfe-commits
mailing list