diff options
Diffstat (limited to 'clang/unittests')
-rw-r--r-- | clang/unittests/Basic/VirtualFileSystemTest.cpp | 5 | ||||
-rw-r--r-- | clang/unittests/CodeGen/BufferSourceTest.cpp | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp index 005737e9de3..cca99a94730 100644 --- a/clang/unittests/Basic/VirtualFileSystemTest.cpp +++ b/clang/unittests/Basic/VirtualFileSystemTest.cpp @@ -14,6 +14,7 @@ #include "llvm/Support/SourceMgr.h" #include "gtest/gtest.h" #include <map> + using namespace clang; using namespace llvm; using llvm::sys::fs::UniqueID; @@ -285,7 +286,7 @@ struct ScopedDir { } operator StringRef() { return Path.str(); } }; -} +} // end anonymous namespace TEST(VirtualFileSystemTest, BasicRealFSIteration) { ScopedDir TestDirectory("virtual-file-system-test", /*Unique*/true); @@ -1006,7 +1007,7 @@ TEST_F(VFSFromYAMLTest, DirectoryIteration) { "]\n" "}", Lower); - ASSERT_TRUE(FS.get() != NULL); + ASSERT_TRUE(FS.get() != nullptr); IntrusiveRefCntPtr<vfs::OverlayFileSystem> O( new vfs::OverlayFileSystem(Lower)); diff --git a/clang/unittests/CodeGen/BufferSourceTest.cpp b/clang/unittests/CodeGen/BufferSourceTest.cpp index e80e83bd288..85df768aa1b 100644 --- a/clang/unittests/CodeGen/BufferSourceTest.cpp +++ b/clang/unittests/CodeGen/BufferSourceTest.cpp @@ -67,7 +67,7 @@ TEST(BufferSourceTest, EmitCXXGlobalInitFunc) { compiler.getCodeGenOpts(), llvm::getGlobalContext()))); - compiler.createSema(clang::TU_Prefix,NULL); + compiler.createSema(clang::TU_Prefix, nullptr); clang::SourceManager &sm = compiler.getSourceManager(); sm.setMainFileID(sm.createFileID( @@ -76,4 +76,4 @@ TEST(BufferSourceTest, EmitCXXGlobalInitFunc) { clang::ParseAST(compiler.getSema(), false, false); } -} +} // end anonymous namespace |