[libcxx-commits] [clang] [libcxx] [clang] Add -Wimplicit-fallthrough to -Wextra (PR #97926)

Max Coplan via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 27 16:48:37 PDT 2024


Max =?utf-8?b?8J+RqPCfj73igI3wn5K7?= Copl
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/97926 at github.com>


================
@@ -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
+    [[clang::fallthrough]];
----------------
vegerot wrote:

edit: just read your other comment https://github.com/llvm/llvm-project/pull/100821#issuecomment-2254201186

I will mark this PR as a Draft until the #100821 lands :) 

https://github.com/llvm/llvm-project/pull/97926


More information about the libcxx-commits mailing list