Searched refs:enumerator (Results 1 – 8 of 8) sorted by relevance
/system/tools/aidl/ |
D | aidl_checkapi.cpp | 272 for (const auto& enumerator : older.GetEnumerators()) { in are_compatible_enums() local 273 old_enum_map[enumerator->GetName()] = enumerator->GetValue(); in are_compatible_enums() 276 for (const auto& enumerator : newer.GetEnumerators()) { in are_compatible_enums() local 277 new_enum_map[enumerator->GetName()] = enumerator->GetValue(); in are_compatible_enums()
|
D | aidl_language.cpp | 989 for (const auto& enumerator : enumerators_) { in Autofill() local 990 if (enumerator->GetValue() == nullptr) { in Autofill() 992 enumerator->SetValue( in Autofill() 1000 enumerator->SetValue(std::make_unique<AidlBinaryConstExpression>( in Autofill() 1005 previous = enumerator.get(); in Autofill() 1024 for (const auto& enumerator : enumerators_) { in CheckValid() local 1025 success = success && enumerator->CheckValid(GetBackingType()); in CheckValid() 1034 for (const auto& enumerator : GetEnumerators()) { in Dump() local 1035 writer->Write("%s = %s,\n", enumerator->GetName().c_str(), in Dump() 1036 enumerator->ValueString(GetBackingType(), AidlConstantValueDecorator).c_str()); in Dump()
|
D | generate_java.cpp | 373 for (const auto& enumerator : enum_decl->GetEnumerators()) { in generate_enum() local 374 code_writer->Write("%s", enumerator->GetComments().c_str()); in generate_enum() 378 enumerator->GetName().c_str(), in generate_enum() 379 enumerator->ValueString(enum_decl->GetBackingType(), ConstantValueDecorator).c_str()); in generate_enum()
|
D | aidl_to_cpp_common.cpp | 371 for (const auto& enumerator : enum_decl.GetEnumerators()) { in GenerateEnumValues() local 372 code << " " << fq_name << "::" << enumerator->GetName() << ",\n"; in GenerateEnumValues()
|
D | aidl_language_y.yy | 82 AidlEnumerator* enumerator; 162 %type<enumerator> enumerator 528 enumerator 540 : enumerator { 544 | enumerators ',' enumerator {
|
D | generate_ndk.cpp | 1026 for (const auto& enumerator : enum_decl.GetEnumerators()) { in GenerateEnumToString() local 1027 std::string c = enumerator->ValueString(enum_decl.GetBackingType(), ConstantValueDecorator); in GenerateEnumToString() 1034 code << " case " << enum_decl.GetName() << "::" << enumerator->GetName() << ":\n"; in GenerateEnumToString() 1035 code << " return \"" << enumerator->GetName() << "\";\n"; in GenerateEnumToString() 1060 for (const auto& enumerator : enum_decl.GetEnumerators()) { in GenerateEnumHeader() local 1061 out << enumerator->GetName() << " = " in GenerateEnumHeader() 1062 << enumerator->ValueString(enum_decl.GetBackingType(), ConstantValueDecorator) << ",\n"; in GenerateEnumHeader()
|
D | generate_cpp.cpp | 1211 for (const auto& enumerator : enum_decl.GetEnumerators()) { in GenerateEnumToString() local 1212 std::string c = enumerator->ValueString(enum_decl.GetBackingType(), ConstantValueDecorator); in GenerateEnumToString() 1219 code << " case " << enum_decl.GetName() << "::" << enumerator->GetName() << ":\n"; in GenerateEnumToString() 1220 code << " return \"" << enumerator->GetName() << "\";\n"; in GenerateEnumToString() 1235 for (const auto& enumerator : enum_decl.GetEnumerators()) { in BuildEnumHeader() local 1237 enumerator->GetName(), in BuildEnumHeader() 1238 enumerator->ValueString(enum_decl.GetBackingType(), ConstantValueDecorator)); in BuildEnumHeader()
|
/system/tools/hidl/lint/test/interfaces/unhandled_comments/1.0/ |
D | types.hal | 21 TWO = 1 /* definitely unrecognized comment (after enumerator) */
|