sn-vcpkg icon indicating copy to clipboard operation
sn-vcpkg copied to clipboard

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

Open keynmol opened this issue 3 months ago • 0 comments

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

keynmol avatar May 23 '24 08:05 keynmol