This revision was automatically updated to reflect the committed changes. Closed by commit rL345741: [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager (authored by Szelethus, committed by ). Herald added a subscriber: llvm-commits.
Changed prior to commit: https://reviews.llvm.org/D53940?vs=171953&id=171956#toc Repository: rL LLVM https://reviews.llvm.org/D53940 Files: cfe/trunk/include/clang/Lex/MacroInfo.h cfe/trunk/lib/Lex/MacroInfo.cpp Index: cfe/trunk/include/clang/Lex/MacroInfo.h =================================================================== --- cfe/trunk/include/clang/Lex/MacroInfo.h +++ cfe/trunk/include/clang/Lex/MacroInfo.h @@ -395,7 +395,8 @@ /// Find macro definition active in the specified source location. If /// this macro was not defined there, return NULL. - const DefInfo findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const; + const DefInfo findDirectiveAtLoc(SourceLocation L, + const SourceManager &SM) const; void dump() const; Index: cfe/trunk/lib/Lex/MacroInfo.cpp =================================================================== --- cfe/trunk/lib/Lex/MacroInfo.cpp +++ cfe/trunk/lib/Lex/MacroInfo.cpp @@ -200,7 +200,8 @@ } const MacroDirective::DefInfo -MacroDirective::findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const { +MacroDirective::findDirectiveAtLoc(SourceLocation L, + const SourceManager &SM) const { assert(L.isValid() && "SourceLocation is invalid."); for (DefInfo Def = getDefinition(); Def; Def = Def.getPreviousDefinition()) { if (Def.getLocation().isInvalid() || // For macros defined on the command line.
Index: cfe/trunk/include/clang/Lex/MacroInfo.h =================================================================== --- cfe/trunk/include/clang/Lex/MacroInfo.h +++ cfe/trunk/include/clang/Lex/MacroInfo.h @@ -395,7 +395,8 @@ /// Find macro definition active in the specified source location. If /// this macro was not defined there, return NULL. - const DefInfo findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const; + const DefInfo findDirectiveAtLoc(SourceLocation L, + const SourceManager &SM) const; void dump() const; Index: cfe/trunk/lib/Lex/MacroInfo.cpp =================================================================== --- cfe/trunk/lib/Lex/MacroInfo.cpp +++ cfe/trunk/lib/Lex/MacroInfo.cpp @@ -200,7 +200,8 @@ } const MacroDirective::DefInfo -MacroDirective::findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const { +MacroDirective::findDirectiveAtLoc(SourceLocation L, + const SourceManager &SM) const { assert(L.isValid() && "SourceLocation is invalid."); for (DefInfo Def = getDefinition(); Def; Def = Def.getPreviousDefinition()) { if (Def.getLocation().isInvalid() || // For macros defined on the command line.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits