Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Semantic not working with C++ standard headers. #704

Closed as not planned
Closed as not planned
@Markkolas

Description

@Markkolas

I have read that semantic has some problems with C++ so I don't know if this is expected behavior.

I added C++ headers dir path with (semantic-add-system-include [path]) and, for example, semantic-ia-fast-jump dosen't recognize C++ standard header files like or (and of course the tags defined in such files). If the header ends with .h (like math.h) the function works correctly and I noted that when applying the function to a include directive with <randomgibberish>, semantic-ia-fast-jump does not complain and just jump to the tag itself.

So I'm guessing that semantic can only process tags as header files only if they end with .h.
Is there any way to make semantic process anything in a include directive as a header file or do I just have to live with it? I may have something wrong with my config tho (I hope not).

Thanks in advance.

EDIT: Seems like if I include C++ system files like #include <./iostream> then semantic-ia-fast-jump jumps to the file correctly. Again, is this normal behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions