Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: build/common.gypi

Issue 1117163002: Clang style plugin: add warn-only option and use it on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after
2161 'variables': { 2161 'variables': {
2162 'conditions': [ 2162 'conditions': [
2163 ['OS=="mac" or OS=="ios"', { 2163 ['OS=="mac" or OS=="ios"', {
2164 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/ll vm-build/Release+Asserts/lib/libFindBadConstructs.dylib', 2164 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/ll vm-build/Release+Asserts/lib/libFindBadConstructs.dylib',
2165 }, { # OS != "mac" or OS != "ios" 2165 }, { # OS != "mac" or OS != "ios"
2166 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/ll vm-build/Release+Asserts/lib/libFindBadConstructs.so', 2166 'clang_lib_path%': '<!(cd <(DEPTH) && pwd -P)/third_party/ll vm-build/Release+Asserts/lib/libFindBadConstructs.so',
2167 }], 2167 }],
2168 ], 2168 ],
2169 }, 2169 },
2170 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ', 2170 'clang_dynlib_flags%': '-Xclang -load -Xclang <(clang_lib_path) ',
2171 'clang_plugin_args%': '',
2171 }, { # OS == "win" 2172 }, { # OS == "win"
2172 # On Windows, the plugin is built directly into clang, so there's 2173 # On Windows, the plugin is built directly into clang, so there's
2173 # no need to load it dynamically. 2174 # no need to load it dynamically.
2174 'clang_dynlib_flags%': '', 2175 'clang_dynlib_flags%': '',
2176
2177 # Don't error on plugin warnings on Windows until pre-existing war nings
2178 # are cleaned up. https://crbug.com/467287
2179 'clang_plugin_args%': '-Xclang -plugin-arg-find-bad-constructs -Xc lang warn-only',
2175 }] 2180 }]
2176 ], 2181 ],
2177 }, 2182 },
2178 # If you change these, also change build/config/clang/BUILD.gn. 2183 # If you change these, also change build/config/clang/BUILD.gn.
2179 'clang_chrome_plugins_flags%': 2184 'clang_chrome_plugins_flags%':
2180 '<(clang_dynlib_flags)' 2185 '<(clang_dynlib_flags)'
2181 '-Xclang -add-plugin -Xclang find-bad-constructs', 2186 '-Xclang -add-plugin -Xclang find-bad-constructs '
2187 '<(clang_plugin_args)',
2182 }], 2188 }],
2183 ['asan==1 or msan==1 or lsan==1 or tsan==1', { 2189 ['asan==1 or msan==1 or lsan==1 or tsan==1', {
2184 'clang%': 1, 2190 'clang%': 1,
2185 'use_allocator%': 'none', 2191 'use_allocator%': 'none',
2186 'use_sanitizer_options%': 1, 2192 'use_sanitizer_options%': 1,
2187 # Disable ICF in the linker to avoid debug info loss. 2193 # Disable ICF in the linker to avoid debug info loss.
2188 'gold_icf_level%': 'none', 2194 'gold_icf_level%': 'none',
2189 }], 2195 }],
2190 ['asan==1 and OS=="linux" and chromeos==0', { 2196 ['asan==1 and OS=="linux" and chromeos==0', {
2191 'use_custom_libcxx%': 1, 2197 'use_custom_libcxx%': 1,
(...skipping 3964 matching lines...) Expand 10 before | Expand all | Expand 10 after
6156 # settings in target dicts. SYMROOT is a special case, because many other 6162 # settings in target dicts. SYMROOT is a special case, because many other
6157 # Xcode variables depend on it, including variables such as 6163 # Xcode variables depend on it, including variables such as
6158 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6164 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6159 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6165 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6160 # files to appear (when present) in the UI as actual files and not red 6166 # files to appear (when present) in the UI as actual files and not red
6161 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6167 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6162 # and therefore SYMROOT, needs to be set at the project level. 6168 # and therefore SYMROOT, needs to be set at the project level.
6163 'SYMROOT': '<(DEPTH)/xcodebuild', 6169 'SYMROOT': '<(DEPTH)/xcodebuild',
6164 }, 6170 },
6165 } 6171 }
OLDNEW
« no previous file with comments | « no previous file | build/config/clang/BUILD.gn » ('j') | tools/clang/plugins/FindBadConstructsAction.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698