Skip to content

Add --auto-defines and --suggest-defines macro census flags - #264

Merged
prabhu merged 1 commit into
feat/memsafe-part1from
feat/memsafe-part13
Sep 27, 2026
Merged

prabhu merged 1 commit into
feat/memsafe-part1from
feat/memsafe-part13

Conversation

@prabhu

@prabhu prabhu commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

The atom side of AppThreat/chen#187.

  • --suggest-defines <file>: writes the macro census to <file>.json and a reviewable --macro-files header, <file>.h, then exits without building an atom. Combined with --auto-defines, it writes the report and continues.
  • --auto-defines: defines the census's auto-tier macros before parsing. It is applied on every C/C++ frontend path, including -l h/hpp/i. For other languages it prints a warning and is ignored.
  • --frontend-args now merges: it overrides only the keys it names instead of replacing the whole map. Before, it silently dropped --define, --include-path and the census flags when it came after them.

Tests: 98/98, including MacroCensusCommandTests. Needs chen#187 published first.

@prabhu
prabhu merged commit 9cb2d2e into feat/memsafe-part1 Sep 27, 2026
4 of 30 checks passed
@prabhu
prabhu deleted the feat/memsafe-part13 branch September 27, 2026 22:51
@prabhu prabhu added the ai-auto label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant