[llvm-bugs] [Bug 43902] New: clangd with compilation database and -stdlib=libc++

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 4 23:40:21 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=43902

            Bug ID: 43902
           Summary: clangd with compilation database and -stdlib=libc++
           Product: clang-tools-extra
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: clangd
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fredrik.slattman at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 22768
  --> https://bugs.llvm.org/attachment.cgi?id=22768&action=edit
Output from both NeoVim and clangd when it fails

When using clangd together with a compilation database which contains the
compiler flag -stdlib=libc++ clangd fails to find system headers.

I have created a git repo containing a reduced repro with logs that can be 
 found here: https://github.com/fredrikslattman/clangd-libcpp.

Development Environment:
  Ubuntu 18.0.4 LTS
  LLVM/Clang-9 installed through apt-get
  CMake 3.15
  NeoVim 0.3.8 (with autozimu/LanguageClient 0.1.153)

clangd is being invoked with the --compile-commands-dir= which picks up the
correct compilation database.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191105/31a5a424/attachment-0001.html>


More information about the llvm-bugs mailing list