8 Commits

Author SHA1 Message Date
Daan De Meyer
c46a394df9
[clang-tidy] Add UnusedIncludes/MissingIncludes options to misc-include-cleaner (#140600)
These mimick the same options from clangd and allow using the check to
only check for unused includes or missing includes.
2025-05-21 16:41:04 +02:00
Congcong Cai
222dd235ff
[clang-tidy] use local config (#120004)
follow up patch for #119948.
2024-12-18 18:38:46 +08:00
Jay Foad
fc5de0af33
[clang-tools-extra] Use {} instead of std::nullopt to initialize empty ArrayRef (#109400)
Follow up to #109133.
2024-09-21 10:57:26 +01:00
kadir çetinkaya
77feba5a92
[clang-tidy][IncludeCleaner] Fix analysis supression in presence of verbatim spellings (#68185) 2023-10-05 18:22:02 +02:00
kadir çetinkaya
d3cfc7126c
[include-cleaner] Always keep non-self-contained files (#65499) 2023-09-11 07:22:52 +02:00
Congcong Cai
b0831c3996
[clang-tidy][misc-include-cleaner]Avoid to insert same include header multiple times (#65431)
`HeaderIncludes` won't update `ExistingIncludes` during inserting.
We need to manage it in tidy check.

Fixed: #65285
2023-09-06 17:37:14 +08:00
Kadir Cetinkaya
89d0a76be6
[clang-tidy][include-cleaner] Add option to control deduplication of findings per symbol
We received some user feedback around this being disruptful rather than
useful in certain workflows so add an option to control the output behaviour.

Differential Revision: https://reviews.llvm.org/D157390
2023-08-08 16:01:33 +02:00
Viktoriia Bakalova
c28506ba4b [clang-tidy] Implement an include-cleaner check.
Differential Revision: https://reviews.llvm.org/D148793
2023-06-02 15:21:20 +00:00