[LLVMbugs] [Bug 8766] New: clang_getCursorSemanticParent() returns wrong Cursor

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 9 12:03:30 PST 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: stefan.seefeld at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list