mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
iss #1256 add new enum type description identifier 'unnamed' to strings to look for when identifying anonymous enum (#1257)
This commit is contained in:
parent
56e08cce1e
commit
5e987a8bd9
@ -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 ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user