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

Unified Diff: build/common.gypi

Issue 12261047: Warn on missing OVERRIDE/virtual everywhere, not just in header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 5d600b0dba1802959c7f03dec810e7d8fcb0cddb..18ea6875a34e3481c91c51d62976f6ea8de3652c 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1427,8 +1427,27 @@
'grit_defines': ['-D', 'enable_google_now'],
}],
['clang_use_chrome_plugins==1 and OS!="win"', {
- 'clang_chrome_plugins_flags': [
- '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)'
+ 'variables': {
+ 'clang_chrome_plugins_flags': [
+ '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)'
+ ],
+ },
+ 'conditions': [
+ ['OS=="linux" or chromeos==1', {
+ 'clang_chrome_plugin_flags': [
+ '<@(clang_chrome_plugin_flags)'
+ ],
Nico 2013/02/18 09:42:24 (do you need this branch at all?)
Ryan Sleevi 2013/02/18 09:50:26 Yeah, this brings it out from variable-variable sc
Nico 2013/02/18 12:07:41 That's what I guessed.
+ }, {
+ # TODO(rsleevi): http://crbug.com/115047 - This warning is only
+ # enabled for Linux/ChromiumOS for now. Disable everywhere else.
+ 'clang_chrome_plugin_flags': [
+ '<@(clang_chrome_plugin_flags)',
+ '-Xclang',
+ '-plugin-arg-find-bad-constructs',
+ '-Xclang',
+ 'skip-virtuals-in-implementations',
+ ],
+ }]
],
}],
« no previous file with comments | « no previous file | tools/clang/scripts/plugin_flags.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698