summaryrefslogtreecommitdiffstats
path: root/clang/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
commit416fa34b873f40393a2e52827e9ab2a12133a921 (patch)
tree144c566ff6d62526cce37a9feec3f45171514bbc /clang/unittests/Tooling/CompilationDatabaseTest.cpp
parent69186e731ffd95c3d3c2b70d36e306d109c92630 (diff)
downloadbcm5719-llvm-416fa34b873f40393a2e52827e9ab2a12133a921.tar.gz
bcm5719-llvm-416fa34b873f40393a2e52827e9ab2a12133a921.zip
[C++11] Use 'nullptr'. Unittests edition.
llvm-svn: 210423
Diffstat (limited to 'clang/unittests/Tooling/CompilationDatabaseTest.cpp')
-rw-r--r--clang/unittests/Tooling/CompilationDatabaseTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/Tooling/CompilationDatabaseTest.cpp b/clang/unittests/Tooling/CompilationDatabaseTest.cpp
index 9f078f41033..8866e751fcf 100644
--- a/clang/unittests/Tooling/CompilationDatabaseTest.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud