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

Unified Diff: build/config/clang/BUILD.gn

Issue 2697873004: build: Enable auto raw pointer deduction check on linux. (Closed)
Patch Set: compile fix Created 3 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
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_pref_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/clang/BUILD.gn
diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn
index 2fd151766676a91b63fb7fc463304f8ce07a2985..22e308f330a9432e8521428cb69a105788fe2837 100644
--- a/build/config/clang/BUILD.gn
+++ b/build/config/clang/BUILD.gn
@@ -37,6 +37,16 @@ config("find_bad_constructs") {
"find-bad-constructs",
]
+ # TODO(vmpstr): We need to enable this everywhere. crbug.com/554600
+ if (is_linux && !is_chromeos && !is_chromecast) {
+ cflags += [
+ "-Xclang",
+ "-plugin-arg-find-bad-constructs",
+ "-Xclang",
+ "check-auto-raw-pointer",
+ ]
+ }
+
if ((is_linux || is_android) && !is_chromecast) {
cflags += [
"-Xclang",
« no previous file with comments | « no previous file | chrome/browser/content_settings/content_settings_pref_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698