http://llvm.org/bugs/show_bug.cgi?id=19587
Bug ID: 19587
Summary: Bug or feature request: pointer to templated type in
field declaration missing pointer type
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
template<class T>
class A{
T* field;
};
Here (inside CXCursor_ClassTemplate cursor) we can parse 'CXCursor_FieldDecl'
cursor for 'field'.
It's type would be 'CXType_Unexposed'.
Its (CXType)type.data[0] has 'link' (some magic unique value) to template
parameter 'template<class T>', so actually I can get the name 'T' if remember
<key,name> pair in proper moment.
I expecting that 'CXCursor_FieldDecl' here should be of type 'CXType_Pointer'
and its pointee type something like 'CXType_TemplateType' (new feature) or
'CXType_Unexposed' at least.
Thanks to all contributors!
--
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