diff options
author | 2018-10-29 23:01:57 +0900 | |
---|---|---|
committer | 2018-10-29 23:01:57 +0900 | |
commit | b86c866234b679fbeac4eec9a1d5e4418cac1997 (patch) | |
tree | 1c36a364f3806c415beaa12575031716b6a77cc6 /libs/binder/IPermissionController.cpp | |
parent | 8bae3798cb56789e8297ba0b43979014d00b05ba (diff) |
Suppress lint warnings on google-default-arguments
The lint rule google-default-arguments ensures that virtual or override
methods do not have default arguments, because different default values
across the hierarchy chain (e.g. Base::foo(int a=0) v.s.
Derived::foo(int a=10)) can cause confusions.
However, since the uses of the default arguments in libbinder don't lead
to such problem, suppress the warnings.
Test: WITH_TIDY=true WITH_TIDY_CHECKS=google-default-arguments m
libbinder does not show any warning about google-default-arguments
Change-Id: I90f6d05a9dc3232d0c63563df18a582432b83574
Diffstat (limited to 'libs/binder/IPermissionController.cpp')
-rw-r--r-- | libs/binder/IPermissionController.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/binder/IPermissionController.cpp b/libs/binder/IPermissionController.cpp index 89ebc6c1aa..6b99150edf 100644 --- a/libs/binder/IPermissionController.cpp +++ b/libs/binder/IPermissionController.cpp @@ -109,6 +109,7 @@ IMPLEMENT_META_INTERFACE(PermissionController, "android.os.IPermissionController // ---------------------------------------------------------------------- +// NOLINTNEXTLINE(google-default-arguments) status_t BnPermissionController::onTransact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) { |