diff options
Diffstat (limited to 'include/clang/Lex')
-rw-r--r-- | include/clang/Lex/Lexer.h | 16 | ||||
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h index 937e468034..f4297627e8 100644 --- a/include/clang/Lex/Lexer.h +++ b/include/clang/Lex/Lexer.h @@ -95,8 +95,8 @@ public: /// _Pragma expansion. This has a variety of magic semantics that this method /// sets up. It returns a new'd Lexer that must be delete'd when done. static Lexer *Create_PragmaLexer(SourceLocation SpellingLoc, - SourceLocation InstantiationLocStart, - SourceLocation InstantiationLocEnd, + SourceLocation ExpansionLocStart, + SourceLocation ExpansionLocEnd, unsigned TokLen, Preprocessor &PP); @@ -241,8 +241,8 @@ public: /// is not necessary to copy any data, then the returned string may /// not point into the provided buffer. /// - /// This method lexes at the instantiation depth of the given - /// location and does not jump to the instantiation or spelling + /// This method lexes at the expansion depth of the given + /// location and does not jump to the expansion or spelling /// location. static llvm::StringRef getSpelling(SourceLocation loc, llvm::SmallVectorImpl<char> &buffer, @@ -295,14 +295,14 @@ public: const LangOptions &Features); /// \brief Returns true if the given MacroID location points at the first - /// token of the macro instantiation. - static bool isAtStartOfMacroInstantiation(SourceLocation loc, + /// token of the macro expansion. + static bool isAtStartOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts); /// \brief Returns true if the given MacroID location points at the last - /// token of the macro instantiation. - static bool isAtEndOfMacroInstantiation(SourceLocation loc, + /// token of the macro expansion. + static bool isAtEndOfMacroExpansion(SourceLocation loc, const SourceManager &SM, const LangOptions &LangOpts); diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index e1ea37f241..a2d495a9a7 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -755,14 +755,14 @@ public: /// \brief Returns true if the given MacroID location points at the first /// token of the macro instantiation. - bool isAtStartOfMacroInstantiation(SourceLocation loc) const { - return Lexer::isAtStartOfMacroInstantiation(loc, SourceMgr, Features); + bool isAtStartOfMacroExpansion(SourceLocation loc) const { + return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, Features); } /// \brief Returns true if the given MacroID location points at the last /// token of the macro instantiation. - bool isAtEndOfMacroInstantiation(SourceLocation loc) const { - return Lexer::isAtEndOfMacroInstantiation(loc, SourceMgr, Features); + bool isAtEndOfMacroExpansion(SourceLocation loc) const { + return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, Features); } /// DumpToken - Print the token to stderr, used for debugging. |