[PATCH] D7982: [clang-tidy] Add readability-duplicate-include check

Richard via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 20 18:24:42 PST 2022


LegalizeAdulthood updated this revision to Diff 401837.
LegalizeAdulthood added a comment.

- Properly apply fixes to header files
- Add tests for fixes in header files
- Move function to static outside anonymous namespace
- Improve documentation


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D7982/new/

https://reviews.llvm.org/D7982

Files:
  clang-tools-extra/clang-tidy/readability/CMakeLists.txt
  clang-tools-extra/clang-tidy/readability/DuplicateIncludeCheck.cpp
  clang-tools-extra/clang-tidy/readability/DuplicateIncludeCheck.h
  clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
  clang-tools-extra/docs/ReleaseNotes.rst
  clang-tools-extra/docs/clang-tidy/checks/list.rst
  clang-tools-extra/docs/clang-tidy/checks/readability-duplicate-include.rst
  clang-tools-extra/test/clang-tidy/checkers/Inputs/readability-duplicate-include/readability-duplicate-include.h
  clang-tools-extra/test/clang-tidy/checkers/Inputs/readability-duplicate-include/readability-duplicate-include2.h
  clang-tools-extra/test/clang-tidy/checkers/Inputs/readability-duplicate-include/system/iostream
  clang-tools-extra/test/clang-tidy/checkers/Inputs/readability-duplicate-include/system/string.h
  clang-tools-extra/test/clang-tidy/checkers/Inputs/readability-duplicate-include/system/sys/types.h
  clang-tools-extra/test/clang-tidy/checkers/Inputs/readability-duplicate-include/system/types.h
  clang-tools-extra/test/clang-tidy/checkers/readability-duplicate-include.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7982.401837.patch
Type: text/x-patch
Size: 15228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220121/5e57f223/attachment-0001.bin>


More information about the cfe-commits mailing list