[clangd-dev] Clangd on windows+vscode
Ilya Biryukov via clangd-dev
clangd-dev at lists.llvm.org
Tue Jun 11 07:13:53 PDT 2019
We don't really have alternatives to compile_commands.json that support
automatic indexing. You could use 'compile_flags.txt', but the
auto-indexing won't know which files it should feed into.
- What build system do you use and how did you generate the
- You mentioned ccls could index your project, did it work out of the box?
If it required user configuration, what was it?
Clangd relies on clang's code to parse command line, which is *mostly*
with GCC, but I'm not sure how it handles custom GCC toolchains (and
whether it handles those at all).
In general, if you manage to set up your build so that it uses clang and
generate compile_commands.json from that configuration - it should work
On Sat, Jun 8, 2019 at 8:59 PM Michael Steinberg via clangd-dev <
clangd-dev at lists.llvm.org> wrote:
> Hello again,
> is there maybe a way to add --include directives for the clangd indexer
> only? I couldn't find any command line option for this :( I don't really
> feel like adding around 400 defines through the commandline....
> Am 03.06.2019 um 11:52 schrieb Kadir Çetinkaya:
> Could you try adding "-log=verbose" to clangd args? Which can be done by
> "clangd.arguments": [
> to your settings.json. Then you should see the diagnostics for those
> uncompilable errors.
> Wild guess; it will most likely be fixed with:
> On Sun, Jun 2, 2019 at 7:40 PM Michael Steinberg via clangd-dev <
> clangd-dev at lists.llvm.org> wrote:
>> Hi there,
>> I'm trying to get clangd running inside vscode on windows. The project
>> is using the gnu-arm-none-eabi toolchain. For almost all compilation
>> units I get the error message "IndexingAction failed: has uncompilable
>> errors". Is there any way to get more infos about the failure cause?
>> Kind regards
>> clangd-dev mailing list
>> clangd-dev at lists.llvm.org
> clangd-dev mailing list
> clangd-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the clangd-dev