Skip to content

Commit c841234

Browse files
committed
Apply formatting suggestions by the bot
1 parent cc20700 commit c841234

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

libcxxabi/src/demangle/ItaniumDemangle.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,7 +2610,8 @@ template <typename Derived, typename Alloc> struct AbstractManglingParser {
26102610
Parser->TemplateParams.push_back(&Params);
26112611
}
26122612
~ScopedTemplateParamList() {
2613-
DEMANGLE_ASSERT(Parser->TemplateParams.size() >= OldNumTemplateParamLists, "");
2613+
DEMANGLE_ASSERT(Parser->TemplateParams.size() >= OldNumTemplateParamLists,
2614+
"");
26142615
Parser->TemplateParams.shrinkToSize(OldNumTemplateParamLists);
26152616
}
26162617
TemplateParamList *params() { return &Params; }
@@ -2859,7 +2860,7 @@ template <typename Derived, typename Alloc> struct AbstractManglingParser {
28592860
std::string_view Res = Name;
28602861
if (Kind < Unnameable) {
28612862
DEMANGLE_ASSERT(starts_with(Res, "operator"),
2862-
"operator name does not start with 'operator'");
2863+
"operator name does not start with 'operator'");
28632864
Res.remove_prefix(sizeof("operator") - 1);
28642865
if (starts_with(Res, ' '))
28652866
Res.remove_prefix(1);
@@ -5634,7 +5635,8 @@ Node *AbstractManglingParser<Derived, Alloc>::parseTemplateParam() {
56345635
Node *ForwardRef = make<ForwardTemplateReference>(Index);
56355636
if (!ForwardRef)
56365637
return nullptr;
5637-
DEMANGLE_ASSERT(ForwardRef->getKind() == Node::KForwardTemplateReference, "");
5638+
DEMANGLE_ASSERT(ForwardRef->getKind() == Node::KForwardTemplateReference,
5639+
"");
56385640
ForwardTemplateRefs.push_back(
56395641
static_cast<ForwardTemplateReference *>(ForwardRef));
56405642
return ForwardRef;

llvm/include/llvm/Demangle/ItaniumDemangle.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2609,7 +2609,8 @@ template <typename Derived, typename Alloc> struct AbstractManglingParser {
26092609
Parser->TemplateParams.push_back(&Params);
26102610
}
26112611
~ScopedTemplateParamList() {
2612-
DEMANGLE_ASSERT(Parser->TemplateParams.size() >= OldNumTemplateParamLists, "");
2612+
DEMANGLE_ASSERT(Parser->TemplateParams.size() >= OldNumTemplateParamLists,
2613+
"");
26132614
Parser->TemplateParams.shrinkToSize(OldNumTemplateParamLists);
26142615
}
26152616
TemplateParamList *params() { return &Params; }
@@ -2858,7 +2859,7 @@ template <typename Derived, typename Alloc> struct AbstractManglingParser {
28582859
std::string_view Res = Name;
28592860
if (Kind < Unnameable) {
28602861
DEMANGLE_ASSERT(starts_with(Res, "operator"),
2861-
"operator name does not start with 'operator'");
2862+
"operator name does not start with 'operator'");
28622863
Res.remove_prefix(sizeof("operator") - 1);
28632864
if (starts_with(Res, ' '))
28642865
Res.remove_prefix(1);
@@ -5633,7 +5634,8 @@ Node *AbstractManglingParser<Derived, Alloc>::parseTemplateParam() {
56335634
Node *ForwardRef = make<ForwardTemplateReference>(Index);
56345635
if (!ForwardRef)
56355636
return nullptr;
5636-
DEMANGLE_ASSERT(ForwardRef->getKind() == Node::KForwardTemplateReference, "");
5637+
DEMANGLE_ASSERT(ForwardRef->getKind() == Node::KForwardTemplateReference,
5638+
"");
56375639
ForwardTemplateRefs.push_back(
56385640
static_cast<ForwardTemplateReference *>(ForwardRef));
56395641
return ForwardRef;

0 commit comments

Comments
 (0)