[PATCH] [clang-tidy] Add a generic header guard checker + LLVM implementation.

Alexander Kornienko alexfh at google.com
Wed Aug 13 04:26:58 PDT 2014

Comment at: clang-tidy/utils/HeaderGuard.cpp:126
@@ +125,3 @@
+    // Emit warnings for headers that are missing guards.
+    checkGuardlessHeaders();
+  }
This class is stateful. AFAIU, it's reused when a tool is run with several translation units (clang-tidy x.cpp y.cpp z.cpp), so it should clean its state here.


More information about the cfe-commits mailing list