Bigcheese 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 "where the pp-tokens (if any) shall not begin with a ( preprocessing token" prohibits function like macros already. The goal was to restrict only what was needed. So identifiers defined as function like macros are ok as long as it's not followed by `(`. https://github.com/llvm/llvm-project/pull/90574 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits