Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clang] Improve ast-dumper text printing of TemplateArgument #93431

Merged

Commits on May 29, 2024

  1. [clang] Improve ast-dumper text printing of TemplateArgument

    This improves and unifies our approach to printing all template
    arguments.
    
    The same approach to printing types is extended to all
    TemplateArguments: A sugared version is printed in quotes,
    followed by printing the canonical form, unless they would print
    the same.
    
    Special improvements are done to add more detail to template template
    arguments.
    
    It's planned in a future patch to use this improved TemplateName
    printer for other places besides TemplateArguments.
    
    Note: The sugared/desugared printing does not show up for
    TemplateNames in tests yet, because we do a poor job of preserving
    their type sugar. This will be improved in a future patch.
    mizvekov committed May 29, 2024
    Configuration menu
    Copy the full SHA
    fabcce0 View commit details
    Browse the repository at this point in the history