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

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

Issue 1904553002: Check IPC messages for banned types on Linux and Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use import, remove defined() hack Created 4 years, 8 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 | « build/common.gypi ('k') | no next file » | 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 c2249f211a2aa036790edb71a8931366ae8b6591..8f20a8905d5bd64fa7907ca4e0929b911e06bc04 100644
--- a/build/config/clang/BUILD.gn
+++ b/build/config/clang/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("clang.gni")
+import("//build/config/chromecast_build.gni")
config("find_bad_constructs") {
if (clang_use_chrome_plugins) {
@@ -49,6 +50,15 @@ config("find_bad_constructs") {
"-Xclang",
"check-implicit-copy-ctors",
]
+
+ if ((is_linux || is_android) && !is_chromeos && !is_chromecast) {
+ cflags += [
+ "-Xclang",
+ "-plugin-arg-find-bad-constructs",
+ "-Xclang",
+ "check-ipc",
+ ]
+ }
}
}
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698