summaryrefslogtreecommitdiffstats
path: root/clang/unittests
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2012-08-24 05:50:27 +0000
committerDaniel Jasper <djasper@google.com>2012-08-24 05:50:27 +0000
commit6ed1f85c241d809369777aac2b2ead83f29dbcd5 (patch)
treeb90cb0f900446b13ef4651d8878b8f8cd2af64ec /clang/unittests
parent435ce13937537261e92578c2a1d476c465666b99 (diff)
downloadbcm5719-llvm-6ed1f85c241d809369777aac2b2ead83f29dbcd5.tar.gz
bcm5719-llvm-6ed1f85c241d809369777aac2b2ead83f29dbcd5.zip
Use LLVM's plugin registry to enable registering new compilation
databases. Move JSONCompilationDatabase.h to its own files and register it as plugin. llvm-svn: 162541
Diffstat (limited to 'clang/unittests')
-rw-r--r--clang/unittests/AST/DeclPrinterTest.cpp2
-rw-r--r--clang/unittests/Tooling/CompilationDatabaseTest.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/AST/DeclPrinterTest.cpp b/clang/unittests/AST/DeclPrinterTest.cpp
index 758b34cd437..332018e384a 100644
--- a/clang/unittests/AST/DeclPrinterTest.cpp
+++ b/clang/unittests/AST/DeclPrinterTest.cpp
@@ -22,6 +22,7 @@
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/Tooling.h"
+#include "llvm/ADT/SmallString.h"
#include "gtest/gtest.h"
using namespace clang;
@@ -1237,4 +1238,3 @@ TEST(DeclPrinter, TestTemplateArgumentList15) {
"Z<sizeof...(T)> A"));
// Should be: with semicolon, without extra space in "> >"
}
-
diff --git a/clang/unittests/Tooling/CompilationDatabaseTest.cpp b/clang/unittests/Tooling/CompilationDatabaseTest.cpp
index 591d48dbbd6..560b931718a 100644
--- a/clang/unittests/Tooling/CompilationDatabaseTest.cpp
+++ b/clang/unittests/Tooling/CompilationDatabaseTest.cpp
@@ -11,7 +11,7 @@
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclGroup.h"
#include "clang/Frontend/FrontendAction.h"
-#include "clang/Tooling/CompilationDatabase.h"
+#include "clang/Tooling/JSONCompilationDatabase.h"
#include "clang/Tooling/Tooling.h"
#include "gtest/gtest.h"
OpenPOWER on IntegriCloud