http://llvm.org/bugs/show_bug.cgi?id=8766

           Summary: clang_getCursorSemanticParent() returns wrong Cursor
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


I'm parsing this code:

template <typename T>
struct Foo
{
  int member;
};


When traversing the generated graph using libclang, I can access the "member"
declaration as a "FieldDecl" cursor. However, when I try to get back to its
parent using clang_getCursorSemanticParent(), that returns a cursor of kind
"StructDecl", when it really should be "ClassTemplate".

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to