summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-12-20 13:54:17 -0800
committerChih-hung Hsieh <chh@google.com>2019-01-10 19:52:49 +0000
commit93561ab3b902746f679f8ef7ac73b9d069c322e8 (patch)
tree5bb5c9c3b00f18a85ad58aaaf387a14a77a5bd04 /tools
parentc0f3daa11ab5038ea6338db8822c7a7bacb07a40 (diff)
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
Diffstat (limited to 'tools')
-rw-r--r--tools/bit/command.h2
-rw-r--r--tools/streaming_proto/Errors.h2
2 files changed, 2 insertions, 2 deletions
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);
diff --git a/tools/streaming_proto/Errors.h b/tools/streaming_proto/Errors.h
index f14bbfd55b5f..bddd9819e8f5 100644
--- a/tools/streaming_proto/Errors.h
+++ b/tools/streaming_proto/Errors.h
@@ -11,7 +11,7 @@ using namespace std;
struct Error
{
Error();
- explicit Error(const Error& that);
+ Error(const Error& that);
Error(const string& filename, int lineno, const char* message);
string filename;