Fix style violations in common_types.h and config.h
Mostly, it's about moving constructors and descructors to the .cc
files, so that they won't be inlined everywhere.
The reason this CL is so big is that a lot of code was using
common_types.h without declaring a dependency on webrtc_common, which
broke the build once common_types.h started to depend on
common_types.cc.
BUG=163
R=kjellander@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/26089004
Cr-Commit-Position: refs/heads/master@{#8516}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8516 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn
index a90f5be..6e280da 100644
--- a/webrtc/modules/audio_coding/BUILD.gn
+++ b/webrtc/modules/audio_coding/BUILD.gn
@@ -72,6 +72,7 @@
":neteq",
":pcm16b",
":red",
+ "../..:webrtc_common",
"../../common_audio",
"../../system_wrappers",
]
@@ -89,6 +90,7 @@
]
configs += [ "../..:common_config" ]
public_configs = [ "../..:common_inherited_config" ]
+ deps = [ "../..:webrtc_common" ]
}
source_set("audio_encoder_interface") {
@@ -98,6 +100,7 @@
]
configs += [ "../..:common_config" ]
public_configs = [ "../..:common_inherited_config" ]
+ deps = [ "../..:webrtc_common" ]
}
config("cng_config") {
@@ -439,12 +442,6 @@
"codecs/isac/main/source/transform.c",
]
- if (is_clang) {
- # Suppress warnings from Chrome's Clang plugins.
- # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
- configs -= [ "//build/config/clang:find_bad_constructs" ]
- }
-
if (is_linux) {
libs = [ "m" ]
}
@@ -518,12 +515,6 @@
"codecs/isac/fix/source/transform_tables.c",
]
- if (is_clang) {
- # Suppress warnings from Chrome's Clang plugins.
- # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
- configs -= [ "//build/config/clang:find_bad_constructs" ]
- }
-
if (!is_win) {
defines = [ "WEBRTC_LINUX" ]
}
@@ -786,6 +777,7 @@
":isac",
":isacfix",
":pcm16b",
+ "../..:webrtc_common",
"../../common_audio",
"../../system_wrappers",
rtc_opus_dir,