================ @@ -49,15 +51,21 @@ class Definition { TokenSequence Apply(const std::vector<TokenSequence> &args, Prescanner &); + void Print(llvm::raw_ostream &out, llvm::StringRef macroName = "") const; + private: static TokenSequence Tokenize(const std::vector<std::string> &argNames, const TokenSequence &token, std::size_t firstToken, std::size_t tokens); + // For a given token, return the index of the argument to which the token + // corresponds, or `argumentCount` if the token does not correspond to any + // argument. + std::size_t getArgumentIndex(const CharBlock &token) const; ---------------- klausler wrote:
Capitalize function and member function names for consistency in the parser, please. https://github.com/llvm/llvm-project/pull/87627 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits