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

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 5 01:56:10 PST 2026


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

Yeah, I understand. For LLVM-style we have description in https://llvm.org/docs/CodingStandards.html#header-guard about how headers should look like.
But for general audience we should be verbose about what check does.

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


More information about the cfe-commits mailing list