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.