summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-12-30 19:00:05 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-31 03:00:58 +0000
commite8d2cde55fe3fcc12f557e413c7afaef574cb4b4 (patch)
treea9f636e7455eadcd18dba2e60dd5645cbc7455e9 /build
parenta47e727d1e4dcaf05a6de97b95af94728a623b38 (diff)
downloadchromium_src-e8d2cde55fe3fcc12f557e413c7afaef574cb4b4.zip
chromium_src-e8d2cde55fe3fcc12f557e413c7afaef574cb4b4.tar.gz
chromium_src-e8d2cde55fe3fcc12f557e413c7afaef574cb4b4.tar.bz2
Start enforcing strict checks for {virtual,override,final} on Linux
BUG=417463 Review URL: https://codereview.chromium.org/831863003 Cr-Commit-Position: refs/heads/master@{#309799}
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index bf3e778..dac72f3 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2137,6 +2137,18 @@
'clang_chrome_plugins_flags': [
'<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)'
],
+ 'conditions': [
+ # TODO(dcheng): https://crbug.com/417463 -- work to enable this flag
+ # on all platforms is currently underway.
+ ['OS=="linux" and chromeos==0', {
+ 'clang_chrome_plugins_flags': [
+ '-Xclang',
+ '-plugin-arg-find-bad-constructs',
+ '-Xclang',
+ 'strict-virtual-specifiers',
+ ],
+ }],
+ ],
}],
['asan==1 or msan==1 or lsan==1 or tsan==1', {
'clang%': 1,