[llvm-bugs] [Bug 48503] New: clangd not able to navigate from declaration to implementation

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 14 08:15:58 PST 2020


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

            Bug ID: 48503
           Summary: clangd not able to navigate from declaration to
                    implementation
           Product: clang-tools-extra
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: clangd
          Assignee: unassignedclangbugs at nondot.org
          Reporter: leonardo at adacore.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24281
  --> https://bugs.llvm.org/attachment.cgi?id=24281&action=edit
Sources showing the mentioned bug

Hello,

The textDocument/definition request is failing on the functions declared in
hi.h: executing the request on these declarations end up with an empty
response.

Interestingly, the same request works fine on the implementations of these
functions, present in the hi.c file.

I have attached the reproducer, with the compile_commands.json file used (which
looks perfectly good to me).

-- 
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/20201214/bf78a076/attachment.html>


More information about the llvm-bugs mailing list