Lines Matching refs:enum_decl
227 static bool HasZeroEnumerator(const AidlEnumDeclaration& enum_decl) { in HasZeroEnumerator() argument
228 return std::any_of(enum_decl.GetEnumerators().begin(), enum_decl.GetEnumerators().end(), in HasZeroEnumerator()
231 enum_decl.GetBackingType(), AidlConstantValueDecorator) == "0"; in HasZeroEnumerator()
235 static bool EvaluatesToZero(const AidlEnumDeclaration& enum_decl, const AidlConstantValue* value) { in EvaluatesToZero() argument
237 return value->ValueString(enum_decl.GetBackingType(), AidlConstantValueDecorator) == "0"; in EvaluatesToZero()
279 auto enum_decl = new_types.GetEnumDeclaration(new_field->GetType()); in are_compatible_parcelables() local
280 if (old_value == "" && enum_decl && EvaluatesToZero(*enum_decl, new_field->GetDefaultValue())) { in are_compatible_parcelables()
313 if (const auto& enum_decl = new_types.GetEnumDeclaration(new_field->GetType()); in are_compatible_parcelables() local
314 enum_decl != nullptr) { in are_compatible_parcelables()
315 if (HasZeroEnumerator(*enum_decl)) { in are_compatible_parcelables()
321 << enum_decl->GetName() in are_compatible_parcelables()
323 << enum_decl->GetName() << "' has '0' as a valid value."; in are_compatible_parcelables()