summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2014-10-07 15:49:36 +0000
committerManuel Klimek <klimek@google.com>2014-10-07 15:49:36 +0000
commit0551065cd179740a54e20fea6d854e543c0dd5bd (patch)
tree9abfa75d20469cceb6ba96613e90aacdf8388ecc /clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
parent2b00d546765615234d93b0fe48363cb753c085d2 (diff)
downloadbcm5719-llvm-0551065cd179740a54e20fea6d854e543c0dd5bd.tar.gz
bcm5719-llvm-0551065cd179740a54e20fea6d854e543c0dd5bd.zip
Make clang-tidy's runCheckOnCode actually use the DiagnosticConsumer.
A precondition of that was to run both the preprocessor checks and AST checks from the same FrontendAction, otherwise we'd have needed to duplicate all involved objects in order to not have any references to a deleted source manager. llvm-svn: 219212
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp')
-rw-r--r--clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp b/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
index a9afb820271..00e9034456b 100644
--- a/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
+++ b/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
@@ -114,7 +114,7 @@ TEST(LLVMHeaderGuardCheckTest, FixHeaderGuards) {
"LLVM_ADT_FOO_H\n#endif \\ \n// "
"LLVM_ADT_FOO_H\n",
"include/llvm/ADT/foo.h",
- /*ExpectedWarnings=*/0));
+ /*ExpectedWarnings=*/1));
EXPECT_EQ("#ifndef LLVM_ADT_FOO_H\n#define LLVM_ADT_FOO_H\n#endif /* "
"LLVM_ADT_FOO_H\\ \n FOO */",
OpenPOWER on IntegriCloud