Commit c586e8d8 by Chris Mihelich Committed by Copybara-Service

Demangle operator co_await (aw).

PiperOrigin-RevId: 641291188
Change-Id: I02f6bae62b05c8964a3b6e8f78299061ce57e01a
parent 61e721f4
...@@ -52,6 +52,8 @@ static const AbbrevPair kOperatorList[] = { ...@@ -52,6 +52,8 @@ static const AbbrevPair kOperatorList[] = {
{"dl", "delete", 1}, {"dl", "delete", 1},
{"da", "delete[]", 1}, {"da", "delete[]", 1},
{"aw", "co_await", 1},
{"ps", "+", 1}, // "positive" {"ps", "+", 1}, // "positive"
{"ng", "-", 1}, // "negative" {"ng", "-", 1}, // "negative"
{"ad", "&", 1}, // "address-of" {"ad", "&", 1}, // "address-of"
......
...@@ -1087,6 +1087,14 @@ TEST(Demangle, Spaceship) { ...@@ -1087,6 +1087,14 @@ TEST(Demangle, Spaceship) {
EXPECT_STREQ("g<>()", tmp); EXPECT_STREQ("g<>()", tmp);
} }
TEST(Demangle, CoAwait) {
char tmp[80];
// ns::Awaitable::operator co_await() const
EXPECT_TRUE(Demangle("_ZNK2ns9AwaitableawEv", tmp, sizeof(tmp)));
EXPECT_STREQ("ns::Awaitable::operator co_await()", tmp);
}
TEST(Demangle, VendorExtendedExpressions) { TEST(Demangle, VendorExtendedExpressions) {
char tmp[80]; char tmp[80];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment