Skip to content

Commit

Permalink
add skipping-requested check for inner class enums
Browse files Browse the repository at this point in the history
  • Loading branch information
lyskov committed Mar 16, 2024
1 parent 80273dd commit 7ba2ad1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions source/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1343,9 +1343,13 @@ void ClassBinder::bind(Context &context)
for( auto d = C->decls_begin(); d != C->decls_end(); ++d ) {
if( EnumDecl *e = dyn_cast<EnumDecl>(*d) ) {
if( e->getAccess() == AS_public and is_bindable(e) ) {
// outs() << "Enum: " << e->getQualifiedNameAsString() << "\n";
c += '\n';
c += bind_enum("cl", e);
if( is_skipping_requested(e, Config::get()) ) {
//outs() << "Skipping inner class Enum: " << e->getQualifiedNameAsString() << "\n";
}
else {
c += '\n';
c += bind_enum("cl", e);
}
}
}
}
Expand Down

0 comments on commit 7ba2ad1

Please sign in to comment.