Index: tools/clang/plugins/FindBadConstructsConsumer.cpp |
diff --git a/tools/clang/plugins/FindBadConstructsConsumer.cpp b/tools/clang/plugins/FindBadConstructsConsumer.cpp |
index c79a764eb953be319cb5e83fe766cee2bbaa8a3c..a6af112bdb2ec69dd4531a751bdfb5fcc6b379e7 100644 |
--- a/tools/clang/plugins/FindBadConstructsConsumer.cpp |
+++ b/tools/clang/plugins/FindBadConstructsConsumer.cpp |
@@ -279,7 +279,7 @@ void FindBadConstructsConsumer::CheckCtorDtorWeight( |
emitWarning(record_location, |
"Complex class/struct needs an explicit out-of-line " |
"constructor."); |
- } else { |
+ } else if (options_.check_implicit_copy_ctors) { |
dcheng
2016/02/16 23:03:50
Since this flag is about implicit constructors, an
vmpstr
2016/02/16 23:13:27
The move ctor branch would have the same issues as
|
// Iterate across all the constructors in this file and yell if we |
// find one that tries to be inline. |
for (CXXRecordDecl::ctor_iterator it = record->ctor_begin(); |