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

via cfe-commits cfe-commits at lists.llvm.org
Fri May 3 07:05:50 PDT 2024


cor3ntin wrote:

> Dose this [note](https://eel.is/c++draft/cpp.module#note-1) have a conflict with P3034R1?
> 
> ```
> [Note 1: Each identifier currently defined as a macro name is replaced by its replacement list of preprocessing tokens. — end note]
> ```

My reading is that

```cpp
#define SOME_MACRO
module foo SOME_MACRO;
```

SOME_MACRO isd expanded


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


More information about the cfe-commits mailing list