| 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 26 matching lines...) Expand all Loading... |
| 37 "-Xclang", | 37 "-Xclang", |
| 38 "find-bad-constructs", | 38 "find-bad-constructs", |
| 39 "-Xclang", | 39 "-Xclang", |
| 40 "-plugin-arg-find-bad-constructs", | 40 "-plugin-arg-find-bad-constructs", |
| 41 "-Xclang", | 41 "-Xclang", |
| 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", |
| 48 "-plugin-arg-find-bad-constructs", |
| 49 "-Xclang", |
| 50 "check-implicit-copy-ctors", |
| 47 ] | 51 ] |
| 48 } | 52 } |
| 49 } | 53 } |
| 50 | 54 |
| 51 # Enables some extra Clang-specific warnings. Some third-party code won't | 55 # Enables some extra Clang-specific warnings. Some third-party code won't |
| 52 # compile with these so may want to remove this config. | 56 # compile with these so may want to remove this config. |
| 53 config("extra_warnings") { | 57 config("extra_warnings") { |
| 54 cflags = [ | 58 cflags = [ |
| 55 "-Wheader-hygiene", | 59 "-Wheader-hygiene", |
| 56 | 60 |
| 57 # Warns when a const char[] is converted to bool. | 61 # Warns when a const char[] is converted to bool. |
| 58 "-Wstring-conversion", | 62 "-Wstring-conversion", |
| 59 ] | 63 ] |
| 60 } | 64 } |
| OLD | NEW |