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

Side by Side 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, 7 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 unified diff | Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("clang.gni") 5 import("clang.gni")
6 import("//build/config/chromecast_build.gni")
6 7
7 config("find_bad_constructs") { 8 config("find_bad_constructs") {
8 if (clang_use_chrome_plugins) { 9 if (clang_use_chrome_plugins) {
9 cflags = [] 10 cflags = []
10 11
11 # On Windows, the plugin is built directly into clang, so there's 12 # On Windows, the plugin is built directly into clang, so there's
12 # no need to load it dynamically. 13 # no need to load it dynamically.
13 14
14 if (is_mac || is_ios) { 15 if (is_mac || is_ios) {
15 cflags += [ 16 cflags += [
(...skipping 26 matching lines...) Expand all
42 "check-templates", 43 "check-templates",
43 "-Xclang", 44 "-Xclang",
44 "-plugin-arg-find-bad-constructs", 45 "-plugin-arg-find-bad-constructs",
45 "-Xclang", 46 "-Xclang",
46 "follow-macro-expansion", 47 "follow-macro-expansion",
47 "-Xclang", 48 "-Xclang",
48 "-plugin-arg-find-bad-constructs", 49 "-plugin-arg-find-bad-constructs",
49 "-Xclang", 50 "-Xclang",
50 "check-implicit-copy-ctors", 51 "check-implicit-copy-ctors",
51 ] 52 ]
53
54 if ((is_linux || is_android) && !is_chromeos && !is_chromecast) {
55 cflags += [
56 "-Xclang",
57 "-plugin-arg-find-bad-constructs",
58 "-Xclang",
59 "check-ipc",
60 ]
61 }
52 } 62 }
53 } 63 }
54 64
55 # Enables some extra Clang-specific warnings. Some third-party code won't 65 # Enables some extra Clang-specific warnings. Some third-party code won't
56 # compile with these so may want to remove this config. 66 # compile with these so may want to remove this config.
57 config("extra_warnings") { 67 config("extra_warnings") {
58 cflags = [ 68 cflags = [
59 "-Wheader-hygiene", 69 "-Wheader-hygiene",
60 70
61 # Warns when a const char[] is converted to bool. 71 # Warns when a const char[] is converted to bool.
62 "-Wstring-conversion", 72 "-Wstring-conversion",
63 ] 73 ]
64 } 74 }
OLDNEW
« 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