diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-06-08 08:38:12 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-06-08 08:38:12 +0000 |
commit | b23b4992370221b27d64fa5b1da01a52aa271bef (patch) | |
tree | 9e75ef10ad41e4a485a12e26383248f7f6f0e3ed /unittests/Basic/SourceManagerTest.cpp | |
parent | 085452490f953a5bb7b54827d99276029be1b6c6 (diff) | |
download | clang-b23b4992370221b27d64fa5b1da01a52aa271bef.tar.gz |
[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/Basic/SourceManagerTest.cpp')
-rw-r--r-- | unittests/Basic/SourceManagerTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unittests/Basic/SourceManagerTest.cpp b/unittests/Basic/SourceManagerTest.cpp index 3f12f4743c..5416ea7ef4 100644 --- a/unittests/Basic/SourceManagerTest.cpp +++ b/unittests/Basic/SourceManagerTest.cpp @@ -65,7 +65,7 @@ class VoidModuleLoader : public ModuleLoader { bool Complain) override { } GlobalModuleIndex *loadGlobalModuleIndex(SourceLocation TriggerLoc) override - { return 0; } + { return nullptr; } bool lookupMissingImports(StringRef Name, SourceLocation TriggerLoc) override { return 0; }; }; @@ -83,7 +83,7 @@ TEST_F(SourceManagerTest, isBeforeInTranslationUnit) { &*Target); Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, - /*IILookup =*/0, + /*IILookup =*/nullptr, /*OwnsHeaderSearch =*/false); PP.Initialize(*Target); PP.EnterMainSourceFile(); @@ -168,7 +168,7 @@ TEST_F(SourceManagerTest, getColumnNumber) { EXPECT_TRUE(Invalid); // Test with no invalid flag. - EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, NULL)); + EXPECT_EQ(1U, SourceMgr.getColumnNumber(MainFileID, 0, nullptr)); } #if defined(LLVM_ON_UNIX) @@ -200,7 +200,7 @@ TEST_F(SourceManagerTest, getMacroArgExpandedLocation) { &*Target); Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, - /*IILookup =*/0, + /*IILookup =*/nullptr, /*OwnsHeaderSearch =*/false); PP.Initialize(*Target); PP.EnterMainSourceFile(); @@ -298,7 +298,7 @@ TEST_F(SourceManagerTest, isBeforeInTranslationUnitWithMacroInInclude) { &*Target); Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, SourceMgr, HeaderInfo, ModLoader, - /*IILookup =*/0, + /*IILookup =*/nullptr, /*OwnsHeaderSearch =*/false); PP.Initialize(*Target); |