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

Thorsten Klein via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 5 01:25:58 PST 2026


================
@@ -0,0 +1,90 @@
+.. title:: clang-tidy - llvm-header-guard
+
+misc-header-guard
+=================
+
+Finds and fixes header guards.
----------------
thorsten-klein wrote:

I tried to use the same naming as in `llvm-header-guard`:
https://clang.llvm.org/extra/clang-tidy/checks/llvm/header-guard.html

 I will extend it 👍


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


More information about the cfe-commits mailing list