From: Ted Kremenek Date: Wed, 12 Dec 2007 18:55:29 +0000 (+0000) Subject: constified getFullLoc(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0579f08d4a4ae57971b74ca1863106df4c6399f;p=clang constified getFullLoc(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44951 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 134a0e95cf..c8c1da6b6e 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -152,7 +152,7 @@ public: IdentifierTable &getIdentifierTable() { return Identifiers; } SelectorTable &getSelectorTable() { return Selectors; } - inline FullSourceLoc getFullLoc(SourceLocation Loc) { + inline FullSourceLoc getFullLoc(SourceLocation Loc) const { return FullSourceLoc(Loc,getSourceManager()); }