| 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 "-Xclang", "-load", | 10 "-Xclang", "-load", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 "-Xclang", "-add-plugin", | 25 "-Xclang", "-add-plugin", |
| 26 "-Xclang", "find-bad-constructs", | 26 "-Xclang", "find-bad-constructs", |
| 27 ] | 27 ] |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 | 30 |
| 31 # Enables some extra Clang-specific warnings. Some third-party code won't | 31 # Enables some extra Clang-specific warnings. Some third-party code won't |
| 32 # compile with these so may want to remove this config. | 32 # compile with these so may want to remove this config. |
| 33 config("extra_warnings") { | 33 config("extra_warnings") { |
| 34 cflags = [ | 34 cflags = [ |
| 35 "-Wheader-hygiene" | 35 "-Wheader-hygiene", |
| 36 | 36 |
| 37 # Warns when a const char[] is converted to bool. | 37 # Warns when a const char[] is converted to bool. |
| 38 "-Wstring-conversion", | 38 "-Wstring-conversion", |
| 39 ] | 39 ] |
| 40 } | 40 } |
| OLD | NEW |