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

Uses -x c++ for non-C++ files during include detection #305

Open
matthijskooijman opened this issue Nov 5, 2018 · 0 comments
Open

Uses -x c++ for non-C++ files during include detection #305

matthijskooijman opened this issue Nov 5, 2018 · 0 comments
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@matthijskooijman
Copy link
Collaborator

The recipe for include detection contains -x c++, and is used regardless of the actual filetype. IOW, .c and .S files are preprocessed with -x c++, which makes no sense. I'm not sure if this actually influences any behaviour (the preprocessor should behave the same regardless of filetype?), but perhaps the filetype influences the predefined macros or the handling of comments or something?

Why is this -x c++ even present? It is usually used when reading from extensionless inputs, or from pipes, but that does not happen here (perhaps this is the case when doing the preprocessing for prototype insertion, which might actually read from stdin?).

@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants