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

            Bug ID: 15497
           Summary: CXXRecordDecl can't iterate its static member
                    variables
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

CXXRecordDecl::decls_begin() through CXXRecordDecl::decls_end() will not yield
any Decl's for static members defined in the class the CXXRecordDecl
represents.



Sample C++ code:

class Object {
    static int const staticMember;
};
int const Object::staticMember = 0;



Sample Clang code:

CXXRecordDecl const * rec = ....
for (auto it = rec->decls_begin(); it != rec->decls_end(); ++it) {
    Decl const * decl = *it;
    // decl is never the Decl for "staticMember"
}

-- 
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