[flang-commits] [flang] 72da62b - Reapply "[Flang] Add fallthrough annotations in visit.h (#90014)"
Alexander Shaposhnikov via flang-commits
flang-commits at lists.llvm.org
Thu Apr 25 14:46:17 PDT 2024
Author: Alexander Shaposhnikov
Date: 2024-04-25T21:44:54Z
New Revision: 72da62be2f67b6c6e9185e246d17f3b3753e6493
URL: https://github.com/llvm/llvm-project/commit/72da62be2f67b6c6e9185e246d17f3b3753e6493
DIFF: https://github.com/llvm/llvm-project/commit/72da62be2f67b6c6e9185e246d17f3b3753e6493.diff
LOG: Reapply "[Flang] Add fallthrough annotations in visit.h (#90014)"
Use [[fallthrough]] directly (similarly to
https://reviews.llvm.org/D131346).
This recommits eb05a2e89dccec734625aa336b553197b75f2340.
Added:
Modified:
flang/include/flang/Common/visit.h
Removed:
################################################################################
diff --git a/flang/include/flang/Common/visit.h b/flang/include/flang/Common/visit.h
index 4d0897301e01db..d672ed49b93651 100644
--- a/flang/include/flang/Common/visit.h
+++ b/flang/include/flang/Common/visit.h
@@ -40,11 +40,17 @@ inline RT_API_ATTRS RESULT Log2VisitHelper(
return visitor(std::get<(LOW + N)>(std::forward<VARIANT>(u))...); \
}
VISIT_CASE_N(1)
+ [[fallthrough]];
VISIT_CASE_N(2)
+ [[fallthrough]];
VISIT_CASE_N(3)
+ [[fallthrough]];
VISIT_CASE_N(4)
+ [[fallthrough]];
VISIT_CASE_N(5)
+ [[fallthrough]];
VISIT_CASE_N(6)
+ [[fallthrough]];
VISIT_CASE_N(7)
#undef VISIT_CASE_N
}
More information about the flang-commits
mailing list