Index: build/config/clang/BUILD.gn |
diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn |
index 3d965003b89ac0632f7d0fb63213fde81aa14f37..d04b51ac5b196e13bf72d3aa5fe5e278b5784a26 100644 |
--- a/build/config/clang/BUILD.gn |
+++ b/build/config/clang/BUILD.gn |
@@ -31,6 +31,16 @@ config("find_bad_constructs") { |
] |
} |
+ # https://crbug.com/441916 |
+ if (is_linux) { |
+ cflags += [ |
+ "-Xclang", |
+ "-plugin-arg-find-bad-constructs", |
+ "-Xclang", |
+ "check-templates", |
+ ] |
+ } |
+ |
cflags += [ |
"-Xclang", |
"-add-plugin", |