Replace RTC_FALLTHROUGH with ABSL_FALLTHROUGH_INTENTED
Bug: None Change-Id: I7287403f3fb13b8e30f92ca3cf1882b03bb53a6e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166176 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30283}
This commit is contained in:
committed by
Commit Bot
parent
4c1086a36a
commit
64f1f3f04e
@ -13,21 +13,11 @@ if (is_android) {
|
||||
}
|
||||
|
||||
rtc_source_set("arch") {
|
||||
sources = [
|
||||
"arch.h",
|
||||
]
|
||||
sources = [ "arch.h" ]
|
||||
}
|
||||
|
||||
rtc_source_set("asm_defines") {
|
||||
sources = [
|
||||
"asm_defines.h",
|
||||
]
|
||||
}
|
||||
|
||||
rtc_source_set("fallthrough") {
|
||||
sources = [
|
||||
"fallthrough.h",
|
||||
]
|
||||
sources = [ "asm_defines.h" ]
|
||||
}
|
||||
|
||||
rtc_library("file_wrapper") {
|
||||
@ -43,21 +33,15 @@ rtc_library("file_wrapper") {
|
||||
}
|
||||
|
||||
rtc_source_set("ignore_warnings") {
|
||||
sources = [
|
||||
"ignore_warnings.h",
|
||||
]
|
||||
sources = [ "ignore_warnings.h" ]
|
||||
}
|
||||
|
||||
rtc_source_set("inline") {
|
||||
sources = [
|
||||
"inline.h",
|
||||
]
|
||||
sources = [ "inline.h" ]
|
||||
}
|
||||
|
||||
rtc_source_set("unused") {
|
||||
sources = [
|
||||
"unused.h",
|
||||
]
|
||||
sources = [ "unused.h" ]
|
||||
}
|
||||
|
||||
rtc_source_set("rtc_export") {
|
||||
@ -73,20 +57,14 @@ if (is_mac || is_ios) {
|
||||
"cocoa_threading.h",
|
||||
"cocoa_threading.mm",
|
||||
]
|
||||
deps = [
|
||||
"..:checks",
|
||||
]
|
||||
deps = [ "..:checks" ]
|
||||
libs = [ "Foundation.framework" ]
|
||||
}
|
||||
}
|
||||
|
||||
rtc_source_set("thread_registry") {
|
||||
sources = [
|
||||
"thread_registry.h",
|
||||
]
|
||||
deps = [
|
||||
"..:rtc_base_approved",
|
||||
]
|
||||
sources = [ "thread_registry.h" ]
|
||||
deps = [ "..:rtc_base_approved" ]
|
||||
if (is_android && !build_with_chromium) {
|
||||
sources += [ "thread_registry.cc" ]
|
||||
deps += [
|
||||
@ -97,9 +75,7 @@ rtc_source_set("thread_registry") {
|
||||
}
|
||||
|
||||
rtc_source_set("warn_current_thread_is_deadlocked") {
|
||||
sources = [
|
||||
"warn_current_thread_is_deadlocked.h",
|
||||
]
|
||||
sources = [ "warn_current_thread_is_deadlocked.h" ]
|
||||
deps = []
|
||||
if (is_android && !build_with_chromium) {
|
||||
sources += [ "warn_current_thread_is_deadlocked.cc" ]
|
||||
|
||||
@ -1,31 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by a BSD-style license
|
||||
* that can be found in the LICENSE file in the root of the source
|
||||
* tree. An additional intellectual property rights grant can be found
|
||||
* in the file PATENTS. All contributing project authors may
|
||||
* be found in the AUTHORS file in the root of the source tree.
|
||||
*/
|
||||
|
||||
#ifndef RTC_BASE_SYSTEM_FALLTHROUGH_H_
|
||||
#define RTC_BASE_SYSTEM_FALLTHROUGH_H_
|
||||
|
||||
// Macro to be used for switch-case fallthrough (required for enabling
|
||||
// -Wimplicit-fallthrough warning on Clang).
|
||||
|
||||
// This macro definition must not be included from public headers! Because
|
||||
// clang's diagnostic checks if there's a macro expanding to
|
||||
// [[clang::fallthrough]] defined, and if so it suggests the first macro
|
||||
// expanding to it. So if this macro is included in a public header, clang may
|
||||
// suggest it instead of the client's own macro, which can cause confusion.
|
||||
|
||||
#ifdef __clang__
|
||||
#define RTC_FALLTHROUGH() [[clang::fallthrough]]
|
||||
#else
|
||||
#define RTC_FALLTHROUGH() \
|
||||
do { \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#endif // RTC_BASE_SYSTEM_FALLTHROUGH_H_
|
||||
Reference in New Issue
Block a user