mirror of
https://github.com/nasa/trick.git
synced 2025-06-14 05:08:22 +00:00
@ -79,7 +79,13 @@ bool CXXRecordVisitor::TraverseDecl(clang::Decl *d) {
|
||||
/* This is an embedded enumeration within a class. Only process it if is public */
|
||||
if ( ed->getAccess() == clang::AS_public ) {
|
||||
EnumVisitor evis(ci, hsd) ;
|
||||
// Before llvm 14, TraverseDecl also traversed the type.
|
||||
// llvm believed this to be a bug, so now we call TraverseType
|
||||
// in addition to TraverseDecl.
|
||||
evis.TraverseDecl(ed) ;
|
||||
#if (LIBCLANG_MAJOR >= 14)
|
||||
evis.TraverseType(clang::QualType(ed->getTypeForDecl(), 0));
|
||||
#endif
|
||||
pa.printEnum(evis.get_enum_data()) ;
|
||||
} else {
|
||||
// protected and private embedded classes cannot be used outside of their class
|
||||
|
Reference in New Issue
Block a user