diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-17 07:05:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-17 07:05:50 +0000 |
commit | 7ef5c27eb6e8ebe58b52013246c06753c3613263 (patch) | |
tree | f03b2004f9df4e41b3aaf1c0b4ff747811138aa9 /include/clang/Lex/Preprocessor.h | |
parent | 872a45e91778eb0b706ff57272fe547d4512eb19 (diff) |
move AdvanceToTokenCharacter and getLocForEndOfToken from
Preprocessor to Lexer where they make more sense.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index c3e7349011..c45a75fc62 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -717,7 +717,9 @@ public: /// location should refer to. The default offset (0) produces a source /// location pointing just past the end of the token; an offset of 1 produces /// a source location pointing to the last character in the token, etc. - SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset = 0); + SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset = 0) { + return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, Features); + } /// DumpToken - Print the token to stderr, used for debugging. /// @@ -729,12 +731,8 @@ public: /// token, return a new location that specifies a character within the token. SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart, unsigned Char) const { - return AdvanceToTokenCharacter(FullSourceLoc(TokStart, SourceMgr), Char, - Features); + return Lexer::AdvanceToTokenCharacter(TokStart, Char, SourceMgr, Features); } - static FullSourceLoc AdvanceToTokenCharacter(FullSourceLoc TokStart, - unsigned Char, - const LangOptions &Features); /// IncrementPasteCounter - Increment the counters for the number of token |