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
3 # found in the LICENSE file.
7 config("find_bad_constructs") {
8 if (clang_use_chrome_plugins) {
15 if (is_mac || is_ios) {
16 cflags += [ rebase_path(
17 "//third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib",
19 } else if (is_linux) {
20 cflags += [ rebase_path(
21 "//third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so",
29 "find-bad-constructs",
34 # Enables some extra Clang-specific warnings. Some third-party code won't
35 # compile with these so may want to remove this config.
36 config("extra_warnings") {
40 # Warns when a const char[] is converted to bool.
41 "-Wstring-conversion",