Tencent/flare

blade Support generating compdb

XlousZ opened this issue · 4 comments

I’m not clear about what you’re asking or proposing, mind to elaborate more?

I want to generate compile_commands.json, so i can generate accurate C++ indexes by clangd

I think it's already supported by blade, e.g.:

./blade dump --compdb --to-file output.json ...

You may refer to manual of blade for more details.

I think it's already supported by blade, e.g.:

./blade dump --compdb --to-file output.json ...

You may refer to manual of blade for more details.

Thanks! I try ./blade dump --compdb --to-file output.json, and successfuly generate compile_commands.json

After carefully reading, i noted The options supported by different subcommands are different. Please run blade <subcommand> --help to view in manual of blade