Skip to content

[CLI, SBT, Mill] Provide a command/flag to generate compile_flags.txt #174

@keynmol

Description

@keynmol

See https://clang.llvm.org/docs/JSONCompilationDatabase.html#alternatives

I've found myself regularly using sn-vcpkg to play around with C examples, e.g. sn-vcpkg clang cairo -- test.c - problem is that I don't have clangd working in test.c because it's missing compilation flags.

So I'd like something to generate compiler_flags.txt in locations managed by sn-vcpkg.

For CLI I'd like to have a setup-clangd subcommand or something

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