summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp')
-rw-r--r--clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp b/clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp
index 08255a62ef9..81e90715903 100644
--- a/clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp
+++ b/clang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp
@@ -20,8 +20,8 @@ public:
};
TEST(ClangTidyDiagnosticConsumer, SortsErrors) {
- SmallVector<ClangTidyError, 8> Errors;
- runCheckOnCode<TestCheck>("int a;", Errors);
+ std::vector<ClangTidyError> Errors;
+ runCheckOnCode<TestCheck>("int a;", &Errors);
EXPECT_EQ(2ul, Errors.size());
// FIXME: Remove " []" once the check name is removed from the message text.
EXPECT_EQ("type specifier []", Errors[0].Message.Message);
OpenPOWER on IntegriCloud