[clang] [Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros (PR #90574)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 30 08:45:22 PDT 2024


cor3ntin wrote:

A function like macro needs parentheses to be substituted. As such,

#define foo()
module foo;

Should be allowed (and foo is not a macro expansion on line 2)

module foo(); should be Ill-formed.

https://github.com/llvm/llvm-project/pull/90574


More information about the cfe-commits mailing list