[PATCH] D139988: [clang][DebugInfo] Re-use clang::TemplateUtils to determine guide DW_AT_default_value for template parameters

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 15 12:27:03 PST 2022


dblaikie accepted this revision.
dblaikie added a comment.

Looks good to me, thanks!

Patch description might need a tweak, this bit:

> Type template parameters where the type is itself a template instantiation (e.g., `template<typename T = Foo<T>>`)

The quoted example is impossible (infinitely recursive) & the description might be less specific than necessary - is any template instantiation a problem (eg: `template<typename T = Foo<int>`) for the existing code/addressed by this patch, or only defaults that are instantiated with a prior template parameter in the same template parameter list? If it's the latter, would be good to include that nuance, if it's the former might be worth clarifying that/using some `Foo<int>` in the example insetad of `Foo<T>`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139988/new/

https://reviews.llvm.org/D139988



More information about the cfe-commits mailing list