[libcxx-commits] [libcxx] 3d18cea - [libc++][regex] Add _LIBCPP_FALLTHROUGH to suppress fallthrough warning (#100821)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 23 09:40:42 PDT 2024


Author: Max Coplan
Date: 2024-08-23T12:40:38-04:00
New Revision: 3d18cea904391f510ffd754713ce4e1731845ffb

URL: https://github.com/llvm/llvm-project/commit/3d18cea904391f510ffd754713ce4e1731845ffb
DIFF: https://github.com/llvm/llvm-project/commit/3d18cea904391f510ffd754713ce4e1731845ffb.diff

LOG: [libc++][regex] Add _LIBCPP_FALLTHROUGH to suppress fallthrough warning (#100821)

Added: 
    

Modified: 
    libcxx/include/regex

Removed: 
    


################################################################################
diff  --git a/libcxx/include/regex b/libcxx/include/regex
index b8141351213212..08aebc2266f5de 100644
--- a/libcxx/include/regex
+++ b/libcxx/include/regex
@@ -3921,7 +3921,7 @@ _ForwardIterator basic_regex<_CharT, _Traits>::__parse_character_escape(
       if (__hd == -1)
         __throw_regex_error<regex_constants::error_escape>();
       __sum = 16 * __sum + static_cast<unsigned>(__hd);
-      // fallthrough
+      _LIBCPP_FALLTHROUGH();
     case 'x':
       ++__first;
       if (__first == __last)


        


More information about the libcxx-commits mailing list