iss #1256 add new enum type description identifier 'unnamed' to strings to look for when identifying anonymous enum (#1257)

This commit is contained in:
Scott Fennell 2022-04-25 16:02:17 -05:00 committed by GitHub
parent 56e08cce1e
commit 5e987a8bd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,9 @@ bool EnumVisitor::VisitEnumType(clang::EnumType *et) {
size_t pos ;
// If this enumeration is anonymous return an error condition
if ((pos = enum_type_name.find("<anonymous")) != std::string::npos or
(pos = enum_type_name.find("(anonymous")) != std::string::npos) {
//(pos = enum_type_name.find("(anonymous")) != std::string::npos) {
(pos = enum_type_name.find("(anonymous")) != std::string::npos or
(pos = enum_type_name.find("(unnamed")) != std::string::npos) {
eval.setName("") ;
return false ;
}