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

cpp: add support for .tpp file extension #13384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephanlachnit
Copy link
Contributor

Some C++ projects use .tpp files to implement templated classes/functions separate from the header file where they are defined.

Some C++ projects use .tpp files to implement templated classes/functions
separate from the header file where they are defined.

Signed-off-by: Stephan Lachnit <[email protected]>
Copy link
Member

@eli-schwartz eli-schwartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is basically just .inc again, right? We can add every possible combination of letters because someone might use it, but the better solution is probably to rely on depfiles. You should already be able to depend on targets as order-only header dependencies.

@stephanlachnit
Copy link
Contributor Author

stephanlachnit commented Jul 4, 2024

I'm not entirely sure what you mean, but this is required to make meson run clang-format and clang-tidy on those files. Compilation works fine anyway.

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.

None yet

2 participants