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

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

Issue 2732973004: clang/plugin: Make auto raw check default in FindBadConstructs plugin. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « tools/clang/plugins/FindBadConstructsAction.cpp ('k') | tools/clang/plugins/Options.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/plugins/FindBadConstructsConsumer.cpp
diff --git a/tools/clang/plugins/FindBadConstructsConsumer.cpp b/tools/clang/plugins/FindBadConstructsConsumer.cpp
index 427fa472a9e1faaa4d5b1705143ba34ac2614402..4c93af4d03b9937525b4f4073e6b5f50552314f9 100644
--- a/tools/clang/plugins/FindBadConstructsConsumer.cpp
+++ b/tools/clang/plugins/FindBadConstructsConsumer.cpp
@@ -982,9 +982,6 @@ void FindBadConstructsConsumer::ParseFunctionTemplates(
}
void FindBadConstructsConsumer::CheckVarDecl(clang::VarDecl* var_decl) {
- if (!options_.check_auto_raw_pointer)
- return;
-
// Check whether auto deduces to a raw pointer.
QualType non_reference_type = var_decl->getType().getNonReferenceType();
// We might have a case where the type is written as auto*, but the actual
« no previous file with comments | « tools/clang/plugins/FindBadConstructsAction.cpp ('k') | tools/clang/plugins/Options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698