summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-05-22 04:46:25 +0000
committerCraig Topper <craig.topper@gmail.com>2014-05-22 04:46:25 +0000
commit49a2790fb329c5cf27d9735b97ef70a6760921e4 (patch)
treea27dc484a06e2a4559f88a7939e40fd4ad01b80f /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parentc3a73c30877fdc754e499a529fc97325dc28332a (diff)
downloadbcm5719-llvm-49a2790fb329c5cf27d9735b97ef70a6760921e4.tar.gz
bcm5719-llvm-49a2790fb329c5cf27d9735b97ef70a6760921e4.zip
[C++11] Use 'nullptr'. Frontend edition.
llvm-svn: 209389
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index 94b327534fe..8c32c2458fa 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -162,7 +162,8 @@ public:
const Token &Tok) {
return ConcatInfo.AvoidConcat(PrevPrevTok, PrevTok, Tok);
}
- void WriteLineInfo(unsigned LineNo, const char *Extra=0, unsigned ExtraLen=0);
+ void WriteLineInfo(unsigned LineNo, const char *Extra=nullptr,
+ unsigned ExtraLen=0);
bool LineMarkersAreDisabled() const { return DisableLineMarkers; }
void HandleNewlinesInToken(const char *TokStr, unsigned Len);
@@ -220,7 +221,7 @@ bool PrintPPOutputPPCallbacks::MoveToLine(unsigned LineNo) {
}
} else if (!DisableLineMarkers) {
// Emit a #line or line marker.
- WriteLineInfo(LineNo, 0, 0);
+ WriteLineInfo(LineNo, nullptr, 0);
} else {
// Okay, we're in -P mode, which turns off line markers. However, we still
// need to emit a newline between tokens on different lines.
OpenPOWER on IntegriCloud