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

Unified Diff: build/common.gypi

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 | « no previous file | build/config/clang/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 74836e7ab5931378d7b5a7d0853e031a1ba6e1aa..c9f2e4d9b906aa0e174f22f8e5a391260ff322f1 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2238,6 +2238,11 @@
# no need to load it dynamically.
'clang_dynlib_flags%': '',
}],
+ ['(OS=="android" or OS=="linux") and chromecast==0 and chromeos==0', {
+ 'clang_plugin_check_ipc_arg': '-Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc',
+ }, {
+ 'clang_plugin_check_ipc_arg': '',
+ }],
],
'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xclang check-templates '
'-Xclang -plugin-arg-find-bad-constructs -Xclang follow-macro-expansion '
@@ -2246,7 +2251,7 @@
# If you change these, also change build/config/clang/BUILD.gn.
'clang_chrome_plugins_flags%':
'<(clang_dynlib_flags)'
- '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args)',
+ '-Xclang -add-plugin -Xclang find-bad-constructs <(clang_plugin_args) <(clang_plugin_check_ipc_arg)',
}],
['asan==1 or msan==1 or lsan==1 or tsan==1', {
'clang%': 1,
« no previous file with comments | « no previous file | build/config/clang/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698