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

Kadir Çetinkaya via clangd-dev clangd-dev at lists.llvm.org
Thu Dec 6 07:30:28 PST 2018


As long as `/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include` is specified in
your compile command, clangd should be able to find that file.

On Thu, Dec 6, 2018 at 3:54 PM Daan De Meyer via clangd-dev <
clangd-dev at lists.llvm.org> wrote:

> 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/48ec9504/attachment-0001.html>


More information about the clangd-dev mailing list