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

            Bug ID: 40675
           Summary: "Go to definition" on use of explicit specialization
                    jumps to primary template
           Product: clang-tools-extra
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: clangd
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Given the following code:

template <typename T>
struct Waldo {};

template <>
struct Waldo<int> {};

int main() {
    Waldo<int> w;
}

Invoking "go to definition" inside the "Waldo<int>" in main() takes you to the
primary template, not the explicit specialization.

I think taking you to the explicit specialization would be more useful and more
in line with user expectations.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to