Skip to content

宏 schema 对齐 + 完成 29-32 宏表实现#4

Open
yangyuze-06 wants to merge 3 commits intoGowayLee:mainfrom
yangyuze-06:fix/macro-doc-schema
Open

宏 schema 对齐 + 完成 29-32 宏表实现#4
yangyuze-06 wants to merge 3 commits intoGowayLee:mainfrom
yangyuze-06:fix/macro-doc-schema

Conversation

@yangyuze-06
Copy link

@yangyuze-06 yangyuze-06 commented Feb 26, 2026

本 PR 完成宏定义与宏调用落库链路的 schema 对齐和完成了29-32项的宏表实现:

  1. 移除自定义 macro_defs 表及相关模型/写库逻辑
  2. 宏定义统一落在 preprocdirects(kind=7)
  3. 宏文本使用 preproctext(head/body)
  4. 宏调用写入 macroinvocations,并通过 macro_id 关联 define(id)

已通过以下方式验证:

  • 全量编译通过
  • 生成 DB 后确认不存在 macro_defs 表
  • 两次SQLite 链路查询验证:
    macroinvocations.macro_id -> preprocdirects(kind=7) -> preproctext

本次仅对宏定义 + 宏调用链路进行对齐,已把datatable的28. macroinvocations项done,

Update2.27
本次补全 datatable-list 中 29–32 项宏相关表实现:
1.macroparent:
(基于 getImmediateMacroCallerLoc 建立宏调用父子关系)
2.macrolocationbind:
(建立宏调用与 locations 表的绑定关系)
3.macro_argument_unexpanded
4.macro_argument_expanded

已通过以下方式验证:
-表结构生成正常
-count(*) 数据存在
-join 关联正确
-无 orphan 记录
-无重复写入

@yangyuze-06 yangyuze-06 changed the title 宏 schema 对齐 CodeQL 文档规范 宏 schema 对齐 + 完成 29-32 宏表实现 Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant