[llvm-branch-commits] [clang-tools-extra] [clang-tidy] add fragment support to `misc-include-cleaner` (PR #196767)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun May 10 11:33:14 PDT 2026


================
@@ -34,6 +35,50 @@ Options
    insertion/removal for all headers under the directory `foo`. Default is an
    empty string, no headers will be ignored.
 
+.. option:: FragmentHeaders
+
+   A semicolon-separated list of regular expressions that match against
+   normalized resolved include paths (POSIX-style separators). Direct includes
+   of the main file that match are treated as fragments of the main file for
+   usage scanning. This is intended for non-self-contained generated
+   ``.inc``/``.def`` files or other include fragments. Only direct includes are
----------------
EugeneZelenko wrote:

```suggestion
   `.inc`/`.def` files or other include fragments. Only direct includes are
```

https://github.com/llvm/llvm-project/pull/196767


More information about the llvm-branch-commits mailing list