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

Map out include hierarchy #9

Open
camden-smallwood opened this issue Jan 10, 2022 · 0 comments
Open

Map out include hierarchy #9

camden-smallwood opened this issue Jan 10, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@camden-smallwood
Copy link
Owner

camden-smallwood commented Jan 10, 2022

Noting that a header file is of extension .h/.hpp/.inc/.inl/etc, and a source file is of extension .c/.cpp/.cc/etc:

  1. Currently all header files are lacking #include statements.
  2. Source files also have a flattened list of #include statements, which is unnecessary.

It might be useful to store a mapping of each type's index to its declaring header file. This would allow for a list of all required #include statements to be generated for each header file. Once header files have their generated list of #include statements, then the flattened list of #include statements in each source file can be truncated (potentially) to only the required #include statements, allowing for carry-over #include statements from header files.

@camden-smallwood camden-smallwood added the help wanted Extra attention is needed label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant