[PATCH] D50580: [clang-tidy] Abseil: no namespace check

Deanna Garcia via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 24 10:44:58 PDT 2018


deannagarcia added inline comments.


================
Comment at: test/clang-tidy/abseil-no-namespace.cpp:10
+#include "absl/external-file.h"
+// CHECK: absl/external-file.h:1:11: warning: namespace 'absl' is reserved
+// for implementation of the Abseil library and should not be opened in user
----------------
hokein wrote:
> Does the test get passed on the first command `%check_clang_tidy %s abseil-no-namespace %t -- -- -I %S/Inputs`? The first command will suppress all warning in headers, I think it will fail?
The test passes, and I'm pretty sure it's because this is a CHECK not a CHECK-MESSAGES


https://reviews.llvm.org/D50580





More information about the cfe-commits mailing list