[clangd-dev] omp.h not found by clangd

Ilya Biryukov via clangd-dev clangd-dev at lists.llvm.org
Thu Dec 6 10:26:21 PST 2018


I believe clang does not pickup gcc's OpenMP header by default and actually
requires a bit of a different setup. I think I've ran into that before, but
don't remember the details...

Are you using compile_commands.json produced for gcc? Could you share the
project (if it's open-source) or make a small repro?

Am Do., 6. Dez. 2018, 15:54 hat Daan De Meyer via clangd-dev <
clangd-dev at lists.llvm.org> geschrieben:

> Installing the openmp package on Arch Linux made clangd find the omp.h
> header (/usr/include/omp.h). Is it possible to make clangd find gcc's omp.h
> as well (located at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include/omp.h on
> my system)?
>
> Regards,
>
> Daan
>
> On Thu, 6 Dec 2018 at 15:32, Daan De Meyer <daan.j.demeyer at gmail.com>
> wrote:
>
>> Hi,
>>
>> clangd doesn't seem to find omp.h which results in lots of diagnostics
>> errors. I tried adding "include/omp.h", <omp.h> to the
>> CanonicalIncludes.cpp file but that didn't seem to make a difference. Can
>> someone give me some pointers on how to make clangd recognize omp.h?
>>
>> Regards,
>>
>> Daan
>>
> _______________________________________________
> clangd-dev mailing list
> clangd-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/clangd-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/clangd-dev/attachments/20181206/53183af0/attachment.html>


More information about the clangd-dev mailing list