diff options
author | Steven Moreland <smoreland@google.com> | 2023-06-01 17:15:43 +0000 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2023-06-02 20:01:47 +0000 |
commit | 106ea1583489b1e8522cdd9ba62a8bff9e74eaaa (patch) | |
tree | 78ad6fc3f3282796ce42c6a2c14341a980d2fef5 | |
parent | d166f83c5ffe8b6e9171150c6be5d07e27b54ee4 (diff) | |
download | aidl-106ea1583489b1e8522cdd9ba62a8bff9e74eaaa.tar.gz |
checkapi: unsupported declarations clearer error
Android Studio was hitting this, because they compile
'parcelable ...;' into API dumps. This error previously said
'type', but AIDL has types of declarations as well as types
of data, so I have disambiguated it here.
Bug: N/A
Test: aidl_unittests
Change-Id: I39e33102a737d42350b085277b7e4e17ca145f77
-rw-r--r-- | aidl_checkapi.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/aidl_checkapi.cpp b/aidl_checkapi.cpp index 8eef17d4..b83bb890 100644 --- a/aidl_checkapi.cpp +++ b/aidl_checkapi.cpp @@ -528,8 +528,9 @@ bool check_api(const Options& options, const IoDelegate& io_delegate) { compatible &= are_compatible_enums(*(old_type->AsEnumDeclaration()), *(new_type->AsEnumDeclaration())); } else { - AIDL_ERROR(old_type) << "Unsupported type " << old_type->GetPreprocessDeclarationName() - << " for " << old_type->GetCanonicalName(); + AIDL_ERROR(old_type) << "Unsupported declaration type " + << old_type->GetPreprocessDeclarationName() << " for " + << old_type->GetCanonicalName() << " API dump comparison"; compatible = false; } } |