[clang] [flang] [flang][Frontend] Implement printing defined macros via -dM (PR #87627)
Peter Klausler via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 9 09:52:54 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;
----------------
klausler wrote:
`const char *` would be a more portable type for `macroName` for those who use this code outside llvm.
https://github.com/llvm/llvm-project/pull/87627
More information about the cfe-commits
mailing list