Set default value for fixed-size array fields
Using empty list as a special value was a workaround to set an explicit
value for fixed-size array fields.
Instead, we'd better be explicit about "default value" for parcelable
fields because it applies to other types as well (e.g. enum,
ParcelableHolder)
Bug: 207087196
Test: tests/golden_test.sh check
Change-Id: Ie133fff3f801eb3276e91f6b87539ede495bda9f
diff --git a/aidl_to_rust.h b/aidl_to_rust.h
index 2fe73ae..8a49a56 100644
--- a/aidl_to_rust.h
+++ b/aidl_to_rust.h
@@ -66,6 +66,8 @@
const AidlTypeSpecifier& type,
const std::variant<std::string, std::vector<std::string>>& raw_value);
+std::string ArrayDefaultValue(const AidlTypeSpecifier& type);
+
// Returns "'lifetime_name " including the initial apostrophe and the trailing space.
// Returns empty string for NONE.
std::string RustLifetimeName(Lifetime lifetime);