aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-17 06:55:10 +0000
committerChris Lattner <sabre@nondot.org>2010-11-17 06:55:10 +0000
commit872a45e91778eb0b706ff57272fe547d4512eb19 (patch)
tree3c74b8560bd9ce02c0b9d77da1ad385ecab3a4d7 /include/clang/Lex/Preprocessor.h
parent6c66f07854c1334a1ce9eae1428d61d54182a6e1 (diff)
add a static version of PP::AdvanceToTokenCharacter.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 380d116386..c3e7349011 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -727,7 +727,15 @@ public:
/// 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);
+ SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart,
+ unsigned Char) const {
+ return AdvanceToTokenCharacter(FullSourceLoc(TokStart, SourceMgr), Char,
+ Features);
+ }
+ static FullSourceLoc AdvanceToTokenCharacter(FullSourceLoc TokStart,
+ unsigned Char,
+ const LangOptions &Features);
+
/// IncrementPasteCounter - Increment the counters for the number of token
/// paste operations performed. If fast was specified, this is a 'fast paste'