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", |