[flang-commits] [clang] [flang] [flang][Frontend] Implement printing defined macros via -dM (PR #87627)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Tue Apr 9 11:08:02 PDT 2024
================
@@ -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;
----------------
kparzysz wrote:
Done
https://github.com/llvm/llvm-project/pull/87627
More information about the flang-commits
mailing list