diff options
author | Fangrui Song <i@maskray.me> | 2022-08-08 09:12:46 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-08-08 09:12:46 -0700 |
commit | 3f18f7c0072b642f5fe88d2fb7bb8ccf69a6c6f5 (patch) | |
tree | 2ed06fc833ad0fee4f6de6904ee1b828c14a7d48 /clang/lib/ExtractAPI/DeclarationFragments.cpp | |
parent | 521a5c11acb45fe4672ed63e3f6aa1f22b0e9fbe (diff) | |
download | llvm-3f18f7c0072b642f5fe88d2fb7bb8ccf69a6c6f5.zip llvm-3f18f7c0072b642f5fe88d2fb7bb8ccf69a6c6f5.tar.gz llvm-3f18f7c0072b642f5fe88d2fb7bb8ccf69a6c6f5.tar.bz2 |
[clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC
With C++17 there is no Clang pedantic warning or MSVC C5051.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D131346
Diffstat (limited to 'clang/lib/ExtractAPI/DeclarationFragments.cpp')
-rw-r--r-- | clang/lib/ExtractAPI/DeclarationFragments.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/ExtractAPI/DeclarationFragments.cpp b/clang/lib/ExtractAPI/DeclarationFragments.cpp index 40ba124..71117bc 100644 --- a/clang/lib/ExtractAPI/DeclarationFragments.cpp +++ b/clang/lib/ExtractAPI/DeclarationFragments.cpp @@ -136,7 +136,7 @@ DeclarationFragmentsBuilder::getFragmentsForNNS(const NestedNameSpecifier *NNS, Fragments.append("template", DeclarationFragments::FragmentKind::Keyword); Fragments.appendSpace(); // Fallthrough after adding the keyword to handle the actual type. - LLVM_FALLTHROUGH; + [[fallthrough]]; case NestedNameSpecifier::TypeSpec: { const Type *T = NNS->getAsType(); |