[llvm-bugs] [Bug 33968] New: clang_getCompletionParent does not allow retrieving template arguments

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 27 15:10:00 PDT 2017


            Bug ID: 33968
           Summary: clang_getCompletionParent does not allow retrieving
                    template arguments
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mail at svenbrauch.de
                CC: klimek at google.com, llvm-bugs at lists.llvm.org

In code like the following:

template<typename T>
struct X {
    void f();
int main() {
    x = X<int>();

when retrieving completion items at the place marked with |, the completion
parent as given by clang_getCompletionParent is "X". It would however be useful
(or rather, necessary in some situations) to know that it is X<int>. I'm not
sure how this should be represented API-wise; if you suggest something, I can
try to come up with a patch. Maybe just returning "X<int>" from
clang_getCompletionParent would be acceptable?

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/20170727/d2642206/attachment-0001.html>

More information about the llvm-bugs mailing list