summaryrefslogtreecommitdiff
path: root/tools/aapt
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-12-20 13:37:44 -0800
committerChih-hung Hsieh <chh@google.com>2019-01-04 17:38:13 +0000
commit1fc78e1814d6e1ad8d49e905a569d2589bbb2b8f (patch)
treeaed2dad2df847dd375759f3ab6378466a9abe482 /tools/aapt
parentbd7379858523c4e06175ee6cd92b46750d05b1dd (diff)
Fix/suppress aapt/aapt2 google-explicit-constructor warnings
* Add explicit to conversion constructors/operators * Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters Bug: 28341362 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor Change-Id: Ie02101ea7c422e8add535c111a30a2f21ead0ace
Diffstat (limited to 'tools/aapt')
-rw-r--r--tools/aapt/ConfigDescription.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/aapt/ConfigDescription.h b/tools/aapt/ConfigDescription.h
index 09430f2532fa..b4ea624524b3 100644
--- a/tools/aapt/ConfigDescription.h
+++ b/tools/aapt/ConfigDescription.h
@@ -29,7 +29,7 @@ struct ConfigDescription : public android::ResTable_config {
size = sizeof(android::ResTable_config);
}
- ConfigDescription(const android::ResTable_config&o) { // NOLINT(implicit)
+ ConfigDescription(const android::ResTable_config&o) { // NOLINT(google-explicit-constructor)
*static_cast<android::ResTable_config*>(this) = o;
size = sizeof(android::ResTable_config);
}