[clang-tools-extra] [llvm] New check `misc-header-guard` (PR #177315)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 22 01:16:07 PST 2026


================
@@ -0,0 +1,20 @@
+.. title:: clang-tidy - llvm-header-guard
+
+misc-header-guard
+=================
+
+Finds and fixes header guards.
+
+Options
+-------
+
+.. option:: HeaderDirs
+
+   A list of one or more header directory names. The list is searched for the
----------------
zwuis wrote:

A semicolon-separated list

---

Please document that this option only treat `/` as path separator.

---

It seems that we support this form `HeaderDirs: include/subdir`. It would be nice to document it.

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


More information about the cfe-commits mailing list