[PATCH] D18180: [clang-tidy] Add a check to detect static definitions in anonymous namespace.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 5 00:47:21 PDT 2016


hokein marked 2 inline comments as done.

================
Comment at: test/clang-tidy/readability-static-definition-in-anonymous-namespace.cpp:34
@@ +33,3 @@
+#define DEFINE_STATIC_VAR(x) static int x = 2
+DEFINE_STATIC_VAR(i);
+// CHECK-FIXES: {{^}}DEFINE_STATIC_VAR(i);
----------------
Oops. I misunderstood your comment. Done now.


http://reviews.llvm.org/D18180





More information about the cfe-commits mailing list