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

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 09:16:38 PDT 2026


================
@@ -0,0 +1,92 @@
+.. title:: clang-tidy - llvm-header-guard
+
+misc-header-guard
+=================
+
+Finds and fixes header guards that do not conform to the configured style
+options from this check.
+
+All following examples consider header file
+``/path/to/include/component/header.hpp``
----------------
EugeneZelenko wrote:

```suggestion
`/path/to/include/component/header.hpp`
```

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


More information about the llvm-commits mailing list