1 .. title:: clang-tidy - misc-include-cleaner
6 Checks for unused and missing includes. Generates findings only for
7 the main file of a translation unit.
8 Findings correspond to https://clangd.llvm.org/design/include-cleaner.
22 #include "bar.h" // OK: uses class Bar from bar.h
23 #include "foo.h" // warning: unused include "foo.h"
25 Baz baz; // warning: missing include "baz.h"
30 .. option:: IgnoreHeaders
32 A semicolon-separated list of regexes to disable insertion/removal of header
33 files that match this regex as a suffix. E.g., `foo/.*` disables
34 insertion/removal for all headers under the directory `foo`. By default, no
35 headers will be ignored.
37 .. option:: DeduplicateFindings
39 A boolean that controls whether the check should deduplicate findings for the
40 same symbol. Defaults to `true`.