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

2024-04-21 Thread Zhang Yi via cfe-commits
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 Macr

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

2024-04-21 Thread Zhang Yi via cfe-commits
https://github.com/zhanyi22333 updated https://github.com/llvm/llvm-project/pull/85745 >From 61b24269867dcec12c8fcab0c26b444f33a57454 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 21 Apr 2024 16:43:17 +0800 Subject: [PATCH 1/2] [clang][frontend] change DumpModuleInfoAction test cases. --- ..

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

2024-03-19 Thread Zhang Yi via cfe-commits
https://github.com/zhanyi22333 updated https://github.com/llvm/llvm-project/pull/85745 >From d29678159c34a668259fbed601df975275190105 Mon Sep 17 00:00:00 2001 From: Zhang Yi <18994118...@163.com> Date: Mon, 18 Mar 2024 20:22:39 -0700 Subject: [PATCH 1/2] [clang][frontend] change DumpModuleInfoAc

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

2024-03-19 Thread Zhang Yi via cfe-commits
https://github.com/zhanyi22333 created https://github.com/llvm/llvm-project/pull/85745 This PR works on the TODO `Emit the macro definition bodies completely` in FrontendActions.cpp. Emiting the macro definition bodies completely can help user get more details about macro. The beginning of m