Enumerators can be deprecated
dumpapi/compile support @deprecated in the comments of enumerators.
Bug: 218401941
Test: aidl_integration_test (golden_output)
Change-Id: Ifa8266429ace130c4ab12cfda11f43273d2d0e90
diff --git a/aidl_dumpapi.cpp b/aidl_dumpapi.cpp
index 30f65dc..1451d41 100644
--- a/aidl_dumpapi.cpp
+++ b/aidl_dumpapi.cpp
@@ -119,6 +119,7 @@
out << "enum " << t.GetName() << " {\n";
out.Indent();
for (const auto& e : t.GetEnumerators()) {
+ DumpComments(*e);
out << e->GetName() << " = ";
DumpConstantValue(t.GetBackingType(), *e->GetValue());
out << ",\n";