[clang] [clang][frontend] Make DumpModuleInfoAction emit the full macro (PR #85745)

Zhang Yi via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 21 04:32:57 PDT 2024


zhanyi22333 wrote:

This commit use tokens from MacroInfo to emit the macro body.
It emits macro body below the part of macro name.

For import test case, it can not get MacroInfo. So it will just print macro name as below.

```
   Macro Definitions:
     CONSTANT
     FUNC_Macro
     FOO
   Macro Definition Bodies:
     CONSTANT
     FUNC_Macro
     FOO
```

 I wonder whether it is better to not print body part for import case.


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


More information about the cfe-commits mailing list