Skip to content

Commit 023cdfc

Browse files
authored
Update stale comments of the demangler, NFC (llvm#91740)
To reflect what the actual code does.
1 parent 92dfe20 commit 023cdfc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

libcxxabi/src/demangle/ItaniumDemangle.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5715,6 +5715,7 @@ Node *AbstractManglingParser<Derived, Alloc>::parseTemplateParam() {
57155715
}
57165716

57175717
// <template-param-decl> ::= Ty # type parameter
5718+
// ::= Tk <concept name> [<template-args>] # constrained type parameter
57185719
// ::= Tn <type> # non-type parameter
57195720
// ::= Tt <template-param-decl>* E # template parameter
57205721
// ::= Tp <template-param-decl> # parameter pack
@@ -5846,7 +5847,7 @@ Node *AbstractManglingParser<Derived, Alloc>::parseTemplateArg() {
58465847
}
58475848
}
58485849

5849-
// <template-args> ::= I <template-arg>* E
5850+
// <template-args> ::= I <template-arg>* [Q <requires-clause expr>] E
58505851
// extension, the abi says <template-arg>+
58515852
template <typename Derived, typename Alloc>
58525853
Node *

llvm/include/llvm/Demangle/ItaniumDemangle.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5714,6 +5714,7 @@ Node *AbstractManglingParser<Derived, Alloc>::parseTemplateParam() {
57145714
}
57155715

57165716
// <template-param-decl> ::= Ty # type parameter
5717+
// ::= Tk <concept name> [<template-args>] # constrained type parameter
57175718
// ::= Tn <type> # non-type parameter
57185719
// ::= Tt <template-param-decl>* E # template parameter
57195720
// ::= Tp <template-param-decl> # parameter pack
@@ -5845,7 +5846,7 @@ Node *AbstractManglingParser<Derived, Alloc>::parseTemplateArg() {
58455846
}
58465847
}
58475848

5848-
// <template-args> ::= I <template-arg>* E
5849+
// <template-args> ::= I <template-arg>* [Q <requires-clause expr>] E
58495850
// extension, the abi says <template-arg>+
58505851
template <typename Derived, typename Alloc>
58515852
Node *

0 commit comments

Comments
 (0)