Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
Labels
topic: codeRelated to content of the project itself type: imperfectionPerceived defect in any part of project
@matthijskooijman

Description

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?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itself type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /