From e3b557809604d036af6e00c60f012c2025b59a5e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 11 Feb 2023 13:38:04 +0100 Subject: Vendor import of llvm-project main llvmorg-16-init-18548-gb0daacf58f41, the last commit before the upstream release/17.x branch was created. --- clang/lib/AST/Comment.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/AST/Comment.cpp') diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index 43820fc566e4..2bb6bb5cbcb6 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/lib/AST/Comment.cpp @@ -29,7 +29,7 @@ namespace comments { #undef ABSTRACT_COMMENT // DeclInfo is also allocated with a BumpPtrAllocator. -static_assert(std::is_trivially_destructible::value, +static_assert(std::is_trivially_destructible_v, "DeclInfo should be trivially destructible!"); const char *Comment::getCommentKindName() const { @@ -206,7 +206,7 @@ void DeclInfo::fill() { IsInstanceMethod = false; IsClassMethod = false; IsVariadic = false; - ParamVars = None; + ParamVars = std::nullopt; TemplateParameters = nullptr; if (!CommentDecl) { @@ -301,7 +301,7 @@ void DeclInfo::fill() { TemplateKind = TemplateSpecialization; TemplateParameters = VTD->getTemplateParameters(); } - LLVM_FALLTHROUGH; + [[fallthrough]]; case Decl::Field: case Decl::EnumConstant: case Decl::ObjCIvar: -- cgit v1.2.3