This silences the two -Wimplicit-fallthrough warnings clang finds in
ItaniumDemangle.h in libc++abi.
Clang does not have a GNU attribute spelling for this attribute, so this
is necessary.
I will commit the same change to the LLVM demangler soon.
Differential D53985
Use C++11 fallthrough attribute syntax when available and add a break rnk on Nov 1 2018, 10:40 AM. Authored by
Details
This silences the two -Wimplicit-fallthrough warnings clang finds in Clang does not have a GNU attribute spelling for this attribute, so this I will commit the same change to the LLVM demangler soon.
Diff Detail
Event TimelineComment Actions I'll redirect that question to @rsmith and @aaron.ballman. I have a vague recollection that it was considered and rejected, but that decision may have predated GCC 7. In any case, libc++ needs the [[clang::fallthrough]] spelling to support old versions of clang in C++11 mode. Thanks! Comment Actions Likewise; I think we decided not to do this before because (a) GCC didn't have such an attribute, and (b) it wasn't clear that we wanted to support "attribute statements" for GNU attributes at all, or whether this should be an attribute appertaining to the label. |