0

LSC: Replace FALLTHROUGH macro with C++17 [[fallthrough]] attribute

See go/chromium-lsc-fallthrough

This CL was uploaded by git cl split.

R=alemate@chromium.org

Bug: 1283907
Change-Id: Ie67032993b67dcdb092d61da515c1d36da99108b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3358593
Auto-Submit: Roland Bock <rbock@google.com>
Reviewed-by: Alexander Alekseev <alemate@chromium.org>
Commit-Queue: Roland Bock <rbock@google.com>
Cr-Commit-Position: refs/heads/main@{#955622}
This commit is contained in:
Roland Bock
2022-01-05 08:39:28 +00:00
committed by Chromium LUCI CQ
parent cede8cb6ab
commit cde35d24c4

@ -38,7 +38,7 @@ bool AshTracingManager::IsBusy() const {
switch (GetLastRequestStatus()) {
case AshTracingRequest::Status::kEmpty:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kInitialized:
return true;
case AshTracingRequest::Status::kStarted:
@ -46,9 +46,9 @@ bool AshTracingManager::IsBusy() const {
case AshTracingRequest::Status::kStopping:
return true;
case AshTracingRequest::Status::kPendingMount:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kWritingFile:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kCompleted:
return false;
}
@ -60,17 +60,17 @@ bool AshTracingManager::IsTracingStarted() const {
switch (GetLastRequestStatus()) {
case AshTracingRequest::Status::kEmpty:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kInitialized:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kStarted:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kStopping:
return true;
case AshTracingRequest::Status::kPendingMount:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kWritingFile:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kCompleted:
return false;
}
@ -88,11 +88,11 @@ std::string AshTracingManager::GetStatusMessage() const {
for (const auto& request : tracing_requests_) {
switch (request->status()) {
case AshTracingRequest::Status::kEmpty:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kInitialized:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kStarted:
FALLTHROUGH;
[[fallthrough]];
case AshTracingRequest::Status::kStopping:
++started;
break;