Chromium Code Reviews| 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 | 6 |
| 7 config("find_bad_constructs") { | 7 config("find_bad_constructs") { |
| 8 if (clang_use_chrome_plugins) { | 8 if (clang_use_chrome_plugins) { |
| 9 cflags = [] | 9 cflags = [] |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 "check-templates", | 42 "check-templates", |
| 43 "-Xclang", | 43 "-Xclang", |
| 44 "-plugin-arg-find-bad-constructs", | 44 "-plugin-arg-find-bad-constructs", |
| 45 "-Xclang", | 45 "-Xclang", |
| 46 "follow-macro-expansion", | 46 "follow-macro-expansion", |
| 47 "-Xclang", | 47 "-Xclang", |
| 48 "-plugin-arg-find-bad-constructs", | 48 "-plugin-arg-find-bad-constructs", |
| 49 "-Xclang", | 49 "-Xclang", |
| 50 "check-implicit-copy-ctors", | 50 "check-implicit-copy-ctors", |
| 51 ] | 51 ] |
| 52 | |
| 53 if ((is_linux || is_android) && !is_chromeos && | |
| 54 !(defined(is_chromecast) && is_chromecast)) { | |
|
Dirk Pranke
2016/04/25 18:41:42
import("//build/config/chromecast_build.gni") up a
| |
| 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 } |
| OLD | NEW |