OLD | NEW |
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 import("//build/config/chromecast_build.gni") |
7 | 7 |
8 config("find_bad_constructs") { | 8 config("find_bad_constructs") { |
9 if (clang_use_chrome_plugins) { | 9 if (clang_use_chrome_plugins) { |
10 cflags = [] | 10 cflags = [] |
(...skipping 25 matching lines...) Expand all Loading... |
36 "-Xclang", | 36 "-Xclang", |
37 "find-bad-constructs", | 37 "find-bad-constructs", |
38 "-Xclang", | 38 "-Xclang", |
39 "-plugin-arg-find-bad-constructs", | 39 "-plugin-arg-find-bad-constructs", |
40 "-Xclang", | 40 "-Xclang", |
41 "check-templates", | 41 "check-templates", |
42 "-Xclang", | 42 "-Xclang", |
43 "-plugin-arg-find-bad-constructs", | 43 "-plugin-arg-find-bad-constructs", |
44 "-Xclang", | 44 "-Xclang", |
45 "follow-macro-expansion", | 45 "follow-macro-expansion", |
| 46 "-Xclang", |
| 47 "-plugin-arg-find-bad-constructs", |
| 48 "-Xclang", |
| 49 "enforce-in-pdf", |
46 ] | 50 ] |
47 | 51 |
48 if ((is_linux || is_android) && !is_chromecast) { | 52 if ((is_linux || is_android) && !is_chromecast) { |
49 cflags += [ | 53 cflags += [ |
50 "-Xclang", | 54 "-Xclang", |
51 "-plugin-arg-find-bad-constructs", | 55 "-plugin-arg-find-bad-constructs", |
52 "-Xclang", | 56 "-Xclang", |
53 "check-ipc", | 57 "check-ipc", |
54 ] | 58 ] |
55 } | 59 } |
56 } | 60 } |
57 } | 61 } |
58 | 62 |
59 # Enables some extra Clang-specific warnings. Some third-party code won't | 63 # Enables some extra Clang-specific warnings. Some third-party code won't |
60 # compile with these so may want to remove this config. | 64 # compile with these so may want to remove this config. |
61 config("extra_warnings") { | 65 config("extra_warnings") { |
62 cflags = [ | 66 cflags = [ |
63 "-Wheader-hygiene", | 67 "-Wheader-hygiene", |
64 | 68 |
65 # Warns when a const char[] is converted to bool. | 69 # Warns when a const char[] is converted to bool. |
66 "-Wstring-conversion", | 70 "-Wstring-conversion", |
67 ] | 71 ] |
68 } | 72 } |
OLD | NEW |