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

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

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 a608cd29d172e6ab6939a9a574c4ac6e20a93c21..0a230e0fcdb106e2487c2bee2af3c88d73c6f6e4 100644
--- a/tools/clang/plugins/FindBadConstructsConsumer.cpp
+++ b/tools/clang/plugins/FindBadConstructsConsumer.cpp
@@ -364,7 +364,7 @@ void FindBadConstructsConsumer::CheckVirtualSpecifiers(
OverrideAttr* override_attr = method->getAttr<OverrideAttr>();
FinalAttr* final_attr = method->getAttr<FinalAttr>();
- if (method->isPure())
+ if (method->isPure() && !options_.strict_virtual_specifiers)
return;
if (IsMethodInBannedOrTestingNamespace(method))
« no previous file with comments | « third_party/tcmalloc/vendor/vsprojects/tmu-static/tmu-static.vcproj ('k') | tools/clang/plugins/tests/virtual_specifiers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698