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

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 30 08:46:14 PDT 2024


ChuanqiXu9 wrote:

> The paper does not clearly says whether disallow function-like macro is also needed, but I think disallow function-like macro has the same goal as the paper. WDYT? @cor3ntin @ChuanqiXu9
> 
> The wording in the paper said: _No identifier in the pp-module-name or pp-module-partition shall currently be defined as an **object-like macro**._

The intention of the paper is, we can get the module name of a TU by `cat and grep`.  So I feel the current wording is correct: https://godbolt.org/z/45xnsh7Eh

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


More information about the cfe-commits mailing list