diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-06-09 02:03:06 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-06-09 02:03:06 +0000 |
| commit | f61be9c971d20d1f30f5444e525990b78a71d65e (patch) | |
| tree | b4f659ba8282a1e3b34ca932f1e87e1a61f42479 /clang-tools-extra/unittests | |
| parent | 3fe0c876c427d8da80fd1bd2f94f2605fc802268 (diff) | |
| download | bcm5719-llvm-f61be9c971d20d1f30f5444e525990b78a71d65e.tar.gz bcm5719-llvm-f61be9c971d20d1f30f5444e525990b78a71d65e.zip | |
[C++11] Use 'nullptr'.
llvm-svn: 210447
Diffstat (limited to 'clang-tools-extra/unittests')
| -rw-r--r-- | clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp | 2 | ||||
| -rw-r--r-- | clang-tools-extra/unittests/clang-modernize/TransformTest.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp b/clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp index f01c7492da1..dfb4b99b9d9 100644 --- a/clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp +++ b/clang-tools-extra/unittests/clang-modernize/IncludeDirectivesTest.cpp @@ -41,7 +41,7 @@ namespace { class TestAddIncludeAction : public PreprocessOnlyAction { public: TestAddIncludeAction(StringRef Include, tooling::Replacements &Replaces, - const char *HeaderToModify = 0) + const char *HeaderToModify = nullptr) : Include(Include), Replaces(Replaces), HeaderToModify(HeaderToModify) { // some headers that the tests can include mapVirtualHeader("foo-inner.h", "#pragma once\n"); diff --git a/clang-tools-extra/unittests/clang-modernize/TransformTest.cpp b/clang-tools-extra/unittests/clang-modernize/TransformTest.cpp index d1a8e7852bc..18866c2040d 100644 --- a/clang-tools-extra/unittests/clang-modernize/TransformTest.cpp +++ b/clang-tools-extra/unittests/clang-modernize/TransformTest.cpp @@ -187,7 +187,7 @@ public: virtual void run(const clang::ast_matchers::MatchFinder::MatchResult &Result) { const VarDecl *Decl = Result.Nodes.getNodeAs<VarDecl>("decl"); - ASSERT_TRUE(Decl != 0); + ASSERT_TRUE(Decl != nullptr); const SourceManager &SM = *Result.SourceManager; |

