summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/AST')
-rw-r--r--clang/unittests/AST/ASTVectorTest.cpp2
-rw-r--r--clang/unittests/AST/CommentParser.cpp4
-rw-r--r--clang/unittests/AST/StmtPrinterTest.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/clang/unittests/AST/ASTVectorTest.cpp b/clang/unittests/AST/ASTVectorTest.cpp
index a92e86b3cd8..ce6d0a07ce8 100644
--- a/clang/unittests/AST/ASTVectorTest.cpp
+++ b/clang/unittests/AST/ASTVectorTest.cpp
@@ -18,7 +18,7 @@
using namespace clang;
LLVM_ATTRIBUTE_UNUSED void CompileTest() {
- ASTContext *C = 0;
+ ASTContext *C = nullptr;
ASTVector<int> V;
V.insert(*C, V.begin(), 0);
}
diff --git a/clang/unittests/AST/CommentParser.cpp b/clang/unittests/AST/CommentParser.cpp
index 0064078d869..ae1410f377f 100644
--- a/clang/unittests/AST/CommentParser.cpp
+++ b/clang/unittests/AST/CommentParser.cpp
@@ -60,7 +60,7 @@ FullComment *CommentParserTest::parseString(const char *Source) {
Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source));
- Sema S(Allocator, SourceMgr, Diags, Traits, /*PP=*/ NULL);
+ Sema S(Allocator, SourceMgr, Diags, Traits, /*PP=*/ nullptr);
Parser P(L, S, Allocator, SourceMgr, Diags, Traits);
FullComment *FC = P.parseFullComment();
@@ -74,7 +74,7 @@ FullComment *CommentParserTest::parseString(const char *Source) {
if (Tok.is(tok::eof))
return FC;
else
- return NULL;
+ return nullptr;
}
::testing::AssertionResult HasChildCount(const Comment *C, size_t Count) {
diff --git a/clang/unittests/AST/StmtPrinterTest.cpp b/clang/unittests/AST/StmtPrinterTest.cpp
index d7265176d12..0b334e768ff 100644
--- a/clang/unittests/AST/StmtPrinterTest.cpp
+++ b/clang/unittests/AST/StmtPrinterTest.cpp
@@ -33,7 +33,7 @@ namespace {
void PrintStmt(raw_ostream &Out, const ASTContext *Context, const Stmt *S) {
PrintingPolicy Policy = Context->getPrintingPolicy();
- S->printPretty(Out, /*Helper*/ 0, Policy);
+ S->printPretty(Out, /*Helper*/ nullptr, Policy);
}
class PrintMatch : public MatchFinder::MatchCallback {
OpenPOWER on IntegriCloud