Skip to content

Commit

Permalink
[demangler] Improve variadic template support
Browse files Browse the repository at this point in the history
This commit changes how variadic templates are represented in the
demangler, in order to fix some longstanding bugs. Now instead of
expanding variadic templates during parsing, the expansion is done
during printing by reusing the unexpanded AST. This allows the
demangler to handle cases where multiple packs contribute to a single
production, and correctly handle "Dp" and "sp" productions, which
corrispond to pack expansions in type and expression contexts.

Differential revision: https://reviews.llvm.org/D41885

llvm-svn: 323906
  • Loading branch information
epilk committed Jan 31, 2018
1 parent 82203c4 commit 862987a
Show file tree
Hide file tree
Showing 3 changed files with 593 additions and 416 deletions.
Loading

0 comments on commit 862987a

Please sign in to comment.