aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/PTHLexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Lex/PTHLexer.h')
-rw-r--r--include/clang/Lex/PTHLexer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Lex/PTHLexer.h b/include/clang/Lex/PTHLexer.h
index 7f6ae53d7a..a1d41b54b6 100644
--- a/include/clang/Lex/PTHLexer.h
+++ b/include/clang/Lex/PTHLexer.h
@@ -69,6 +69,10 @@ public:
/// the PreprocessorLexer interface.
void IndirectLex(Token &Result) { Lex(Result); }
+ /// getSourceLocation - Return a source location for the token in
+ /// the current file.
+ SourceLocation getSourceLocation() { return GetToken().getLocation(); }
+
private:
/// AtLastToken - Returns true if the PTHLexer is at the last token.