summaryrefslogtreecommitdiffstats
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2017-07-17 02:03:21 +0000
committerFaisal Vali <faisalv@yahoo.com>2017-07-17 02:03:21 +0000
commitfa8c4ac40846278e478dfe472e74063fca3d3f1e (patch)
tree3b3765d377cf36a694feaa2e5dbcfbe571c48bdd /include/clang/Lex/Preprocessor.h
parentfc60afa41c22bbd3cde2075d5ade4f8698e99243 (diff)
Revert changes from my previous refactoring - will need to fix dependencies in clang's extra tooling (such as clang-tidy etc.).
Sorry about that. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index a058fbfbb4..62090d6496 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -1813,24 +1813,11 @@ private:
void ReadMacroName(Token &MacroNameTok, MacroUse IsDefineUndef = MU_Other,
bool *ShadowFlag = nullptr);
- /// ReadOptionalMacroParameterListAndBody - This consumes all (i.e. the
- /// entire line) of the macro's tokens and adds them to MacroInfo, and while
- /// doing so performs certain validity checks including (but not limited to):
- /// - # (stringization) is followed by a macro parameter
- /// \param MacroNameTok - Token that represents the macro name
- /// \param ImmediatelyAfterHeaderGuard - Macro follows an #ifdef header guard
- ///
- /// Either returns a pointer to a MacroInfo object OR emits a diagnostic and
- /// returns a nullptr if an invalid sequence of tokens is encountered.
-
- MacroInfo *ReadOptionalMacroParameterListAndBody(
- const Token &MacroNameTok, bool ImmediatelyAfterHeaderGuard);
-
/// The ( starting an argument list of a macro definition has just been read.
- /// Lex the rest of the parameters and the closing ), updating \p MI with
+ /// Lex the rest of the arguments and the closing ), updating \p MI with
/// what we learn and saving in \p LastTok the last token read.
/// Return true if an error occurs parsing the arg list.
- bool ReadMacroParameterList(MacroInfo *MI, Token& LastTok);
+ bool ReadMacroDefinitionArgList(MacroInfo *MI, Token& LastTok);
/// We just read a \#if or related directive and decided that the
/// subsequent tokens are in the \#if'd out portion of the
@@ -1891,7 +1878,7 @@ private:
/// After reading "MACRO(", this method is invoked to read all of the formal
/// arguments specified for the macro invocation. Returns null on error.
- MacroArgs *ReadMacroCallArgumentList(Token &MacroName, MacroInfo *MI,
+ MacroArgs *ReadFunctionLikeMacroArgs(Token &MacroName, MacroInfo *MI,
SourceLocation &ExpansionEnd);
/// \brief If an identifier token is read that is to be expanded