diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-05-17 23:10:59 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-05-17 23:10:59 +0000 |
| commit | da176c6d6aee673ade66dbaa5065a035331e30db (patch) | |
| tree | 3a74bd0383b6db6b2a5e58b163fd56f77020851a /lib/Lex/PreprocessingRecord.cpp | |
| parent | 9d83a9315e54ebb56a49819b77c8597f3aff1d08 (diff) | |
| download | clang-da176c6d6aee673ade66dbaa5065a035331e30db.tar.gz clang-da176c6d6aee673ade66dbaa5065a035331e30db.tar.bz2 clang-da176c6d6aee673ade66dbaa5065a035331e30db.tar.xz | |
[C++11] Use 'nullptr'. Lex edition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PreprocessingRecord.cpp')
| -rw-r--r-- | lib/Lex/PreprocessingRecord.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Lex/PreprocessingRecord.cpp b/lib/Lex/PreprocessingRecord.cpp index db5a9f93cf..41bb581bb0 100644 --- a/lib/Lex/PreprocessingRecord.cpp +++ b/lib/Lex/PreprocessingRecord.cpp @@ -40,7 +40,7 @@ InclusionDirective::InclusionDirective(PreprocessingRecord &PPRec, PreprocessingRecord::PreprocessingRecord(SourceManager &SM) : SourceMgr(SM), - ExternalSource(0) { + ExternalSource(nullptr) { } /// \brief Returns a pair of [Begin, End) iterators of preprocessed entities @@ -334,7 +334,7 @@ PreprocessedEntity *PreprocessingRecord::getPreprocessedEntity(PPEntityID PPID){ } if (PPID.ID == 0) - return 0; + return nullptr; unsigned Index = PPID.ID - 1; assert(Index < PreprocessedEntities.size() && "Out-of bounds local preprocessed entity"); @@ -361,7 +361,7 @@ MacroDefinition *PreprocessingRecord::findMacroDefinition(const MacroInfo *MI) { llvm::DenseMap<const MacroInfo *, MacroDefinition *>::iterator Pos = MacroDefinitions.find(MI); if (Pos == MacroDefinitions.end()) - return 0; + return nullptr; return Pos->second; } |
