Use C++11 fallthrough attribute syntax when available and add a break
authorReid Kleckner <rnk@google.com>
Thu, 1 Nov 2018 18:24:03 +0000 (18:24 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 1 Nov 2018 18:24:03 +0000 (18:24 +0000)
commit60cce5c78267cced3ec9bbb24f8e94b88b7710d4
treed2b4dabe267b9d4c49a1883c7e0a65b5f87bf565
parentb34a0528528ea553a79e08f889686f44a9eef0f1
Use C++11 fallthrough attribute syntax when available and add a break

Summary:
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.

Reviewers: EricWF, ldionne

Subscribers: christof, erik.pilkington, cfe-commits

Differential Revision: https://reviews.llvm.org/D53985

llvm-svn: 345870
libcxx/include/__config
libcxxabi/src/demangle/ItaniumDemangle.h