diff options
Diffstat (limited to 'include/clang/Lex/Lexer.h')
-rw-r--r-- | include/clang/Lex/Lexer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h index 99c16d292a..eb8ad347d6 100644 --- a/include/clang/Lex/Lexer.h +++ b/include/clang/Lex/Lexer.h @@ -331,6 +331,14 @@ public: const LangOptions &LangOpts, SourceLocation *MacroEnd = 0); + /// \brief Accepts a token source range and returns a character range with + /// file locations. + /// Returns a null range if a part of the range resides inside a macro + /// expansion or the range does not reside on the same FileID. + static CharSourceRange makeFileCharRange(SourceRange TokenRange, + const SourceManager &SM, + const LangOptions &LangOpts); + /// \brief Retrieve the name of the immediate macro expansion. /// /// This routine starts from a source location, and finds the name of the macro |