From 93561ab3b902746f679f8ef7ac73b9d069c322e8 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 20 Dec 2018 13:54:17 -0800 Subject: Fix/suppress tools google-explicit-constructor warnings * Add explicit to conversion constructors/operators * Remove redundant explicit of copy constructors Bug: 28341362 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor Change-Id: Ic11c22c59beb7aa32b878a23315b1036ca4e3c6a --- tools/bit/command.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/bit/command.h') diff --git a/tools/bit/command.h b/tools/bit/command.h index fb44900b0806..dd7103e10fe7 100644 --- a/tools/bit/command.h +++ b/tools/bit/command.h @@ -25,7 +25,7 @@ using namespace std; struct Command { - Command(const string& prog); + explicit Command(const string& prog); ~Command(); void AddArg(const string& arg); -- cgit v1.2.3-59-g8ed1b