Skip to content

System includes for synthetic database #1059

@K-ballo

Description

@K-ballo

The tool will synthesize a compilation database if none is given. This db is detached from the system and thus doesn't know how to locate system includes.

cmds.emplace_back("clang");

System includes are located by executing the compiler (only meaningful for gcc and clang, msvc does differently)

auto const defaultIncludePaths = getCompilersDefaultIncludeDir(

Ideally these paths would be resolved without executing any external processes. Otherwise, the synthetic database would have to know about a real compiler in the system.

This blocks #1042 , as some of the demos rely on this functionality.

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