Skip to content

Commit a2e9227

Browse files
committed
[clang] Reformat code
1 parent e652f82 commit a2e9227

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

clang/lib/Sema/SemaTemplateInstantiateDecl.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,11 +1571,14 @@ Decl *TemplateDeclInstantiator::VisitEnumDecl(EnumDecl *D) {
15711571
Enum->setIntegerType(SemaRef.Context.IntTy);
15721572
else
15731573
Enum->setIntegerTypeSourceInfo(NewTI);
1574+
15741575
// C++23 [conv.prom]p4
1575-
// if integral promotion can be applied to its underlying type, a prvalue of an unscoped enumeration type
1576-
// whose underlying type is fixed can also be converted to a prvalue of the promoted underlying type.
1577-
//
1578-
// FIXME: that logic is already implemented in ActOnEnumBody, factor out into (Re)BuildEnumBody.
1576+
// if integral promotion can be applied to its underlying type, a prvalue
1577+
// of an unscoped enumeration type whose underlying type is fixed can also
1578+
// be converted to a prvalue of the promoted underlying type.
1579+
//
1580+
// FIXME: that logic is already implemented in ActOnEnumBody, factor out
1581+
// into (Re)BuildEnumBody.
15791582
QualType UnderlyingType = Enum->getIntegerType();
15801583
Enum->setPromotionType(
15811584
SemaRef.Context.isPromotableIntegerType(UnderlyingType)

0 commit comments

Comments
 (0)