[flang-commits] [clang] [flang] [flang][Frontend] Implement printing defined macros via -dM (PR #87627)

Peter Klausler via flang-commits flang-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 flang-commits mailing list