Skip to content

Commit

Permalink
Handle conversion operators correctly.
Browse files Browse the repository at this point in the history
Because these now parse as templates instead of template-templates, we need to special case the conversion operator case when printing function return types, as described in the CXX ABI text. We can do ctors and dtors here as well, which requires the change to the existing test.

See https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=libiberty/cp-demangle.c;h=3f2a097e7f2075e5750e40a31ce46589d4ab83d5;hb=e6d079c2fb797e84d7d234f9c8277fbe4558213b#l2464 for an explanation of the grammar involved.
  • Loading branch information
khuey committed Jun 5, 2018
1 parent f5b06f3 commit 4fe7e3f
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 37 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ use std::fmt::Write;
s.extend(179..180);
s.extend(181..182);
s.extend(185..186);
s.extend(188..189);
s.extend(187..190);
s.extend(201..202);
s.extend(203..204);
s
Expand Down
Loading

0 comments on commit 4fe7e3f

Please sign in to comment.