warnings: mixed-oneway can be suppressed at method level.
mixed-oneway is checked at interface level, so method level suppression
didn't work. But now, we skip methods annotated
@SuppressWarnings(mixed-oneway) when checking.
interface IFoo {
void foo();
@SuppressWarnings(value={"mixed-oneway"})
oneway void bar();
}
Bug: n/a
Test: aidl_unittests
Change-Id: Ife0d1c2e53f7cdfbd60d96865e0a4ad4f105c8a8
diff --git a/aidl_language.h b/aidl_language.h
index 28f94ee..4f19261 100644
--- a/aidl_language.h
+++ b/aidl_language.h
@@ -1161,7 +1161,7 @@
class AidlInterface final : public AidlDefinedType {
public:
AidlInterface(const AidlLocation& location, const std::string& name, const Comments& comments,
- bool oneway_, const std::string& package,
+ bool oneway, const std::string& package,
std::vector<std::unique_ptr<AidlMember>>* members);
virtual ~AidlInterface() = default;