Skip to content

Collect invoked macro definitions#82

Open
PappasBrent wants to merge 6 commits intomainfrom
collect-invoked-macro-definitions
Open

Collect invoked macro definitions#82
PappasBrent wants to merge 6 commits intomainfrom
collect-invoked-macro-definitions

Conversation

@PappasBrent
Copy link
Collaborator

Adds three variants to Maki's `only-collect-definition-info' flag to control Maki's behavior:

  • none: Don't collect definitions and perform normal analyses. This is the default.
  • all: Collect all macro definitions and don't perform analyses.
  • invoked: Collect definitions of macros invoked at least once, and don't perform analyses.

These additions are a bit of a shim right now and can likely be refactored to merge the new InvokedDefinitionsInfoCollector class with the existing DefinitionInfoCollector class.

Closes #81

Define a new preprocessor callback for collecting definitions of macros
that are invoked at least once
Add logic to only print definitions of invoked macros
@PappasBrent PappasBrent added the enhancement New feature or request label Oct 28, 2024
@PappasBrent PappasBrent self-assigned this Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an option to only collect invoked definitions

1 participant