Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: tools/clang/plugins/FindBadConstructsConsumer.cpp

Issue 1703713002: clang-plugin: Enable RecursiveASTVisitor approach by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698