[clang-tools-extra] [llvm] New check `misc-header-guard` (PR #177315)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 28 08:00:44 PST 2026
================
@@ -0,0 +1,91 @@
+.. title:: clang-tidy - llvm-header-guard
+
+misc-header-guard
+=================
+
+Finds and fixes header guards.
+
+Options
+-------
+
+.. option:: HeaderDirs
+
+ A semicolon-separated list of one or more header directory names.
+ Header directories may contain `/` as path separator.
+ The list is searched for the first matching string.
+ The header guard will start from this path component.
+ Default value is `include`.
----------------
EugeneZelenko wrote:
```suggestion
A semicolon-separated list of one or more header directory names. Header
directories may contain `/` as path separator. The list is searched for the
first matching string. The header guard will start from this path
component. Default value is `include`.
```
https://github.com/llvm/llvm-project/pull/177315
More information about the cfe-commits
mailing list