diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-16 06:48:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-16 06:48:38 +0000 |
commit | 97ba77cf09bf7b83b679165ce67ad7d49ffd568c (patch) | |
tree | 5a3c81882b3c92bf3500b1c62ab36d4fd3d8f4ba /include/clang/Lex/Preprocessor.h | |
parent | 20e6ccd6f74e73eee39386f64e236ce43a2ec210 (diff) |
Add a new Preprocessor::AdvanceToTokenCharacter method which, given a sloc
specifying the start of a token and a logical (phase 3) character number,
returns a sloc representing the input character corresponding to it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 4b6ea1f436..d1fa97872d 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -279,6 +279,10 @@ public: void DumpToken(const LexerToken &Tok, bool DumpFlags = false) const; void DumpMacro(const MacroInfo &MI) const; + /// AdvanceToTokenCharacter - Given a location that specifies the start of a + /// token, return a new location that specifies a character within the token. + SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart,unsigned Char); + /// IncrementPasteCounter - Increment the counters for the number of token /// paste operations performed. If fast was specified, this is a 'fast paste' /// case we handled. |