Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect invoked macro definitions #82

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

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