summaryrefslogtreecommitdiff
path: root/unittests/Tooling/CompilationDatabaseTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-06-08 08:38:12 +0000
committerCraig Topper <craig.topper@gmail.com>2014-06-08 08:38:12 +0000
commitb23b4992370221b27d64fa5b1da01a52aa271bef (patch)
tree9e75ef10ad41e4a485a12e26383248f7f6f0e3ed /unittests/Tooling/CompilationDatabaseTest.cpp
parent085452490f953a5bb7b54827d99276029be1b6c6 (diff)
downloadclang-b23b4992370221b27d64fa5b1da01a52aa271bef.tar.gz
clang-b23b4992370221b27d64fa5b1da01a52aa271bef.tar.bz2
clang-b23b4992370221b27d64fa5b1da01a52aa271bef.tar.xz
[C++11] Use 'nullptr'. Unittests edition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Tooling/CompilationDatabaseTest.cpp')
-rw-r--r--unittests/Tooling/CompilationDatabaseTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/Tooling/CompilationDatabaseTest.cpp b/unittests/Tooling/CompilationDatabaseTest.cpp
index 9f078f4103..8866e751fc 100644
--- a/unittests/Tooling/CompilationDatabaseTest.cpp
+++ b/unittests/Tooling/CompilationDatabaseTest.cpp
@@ -22,8 +22,8 @@ namespace tooling {
static void expectFailure(StringRef JSONDatabase, StringRef Explanation) {
std::string ErrorMessage;
- EXPECT_EQ(NULL, JSONCompilationDatabase::loadFromBuffer(JSONDatabase,
- ErrorMessage))
+ EXPECT_EQ(nullptr, JSONCompilationDatabase::loadFromBuffer(JSONDatabase,
+ ErrorMessage))
<< "Expected an error because of: " << Explanation.str();
}
@@ -434,7 +434,7 @@ TEST(FixedCompilationDatabase, GetAllCompileCommands) {
TEST(ParseFixedCompilationDatabase, ReturnsNullOnEmptyArgumentList) {
int Argc = 0;
std::unique_ptr<FixedCompilationDatabase> Database(
- FixedCompilationDatabase::loadFromCommandLine(Argc, NULL));
+ FixedCompilationDatabase::loadFromCommandLine(Argc, nullptr));
EXPECT_FALSE(Database);
EXPECT_EQ(0, Argc);
}