[clang][DebugInfo] Add DW_AT_default_value support for template template parameters
authorMichael Buch <michaelbuch12@gmail.com>
Fri, 16 Dec 2022 11:22:15 +0000 (11:22 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Fri, 16 Dec 2022 11:38:54 +0000 (11:38 +0000)
commit2c22cfd4c95606adec311dece051e95e86e3f0f3
treef8191da7a6c1c47c901fde7bda499ce0422f0f8d
parent2dff41c320fcf6230bea68568b14ca101c96d187
[clang][DebugInfo] Add DW_AT_default_value support for template template parameters

After this patch, in the following snippet:
```
template <typename T> Foo {};

template <template <typename T> class CT = Foo> Bar {};

Bar<> b;
```

The debug-info entry for the `CT` template parameter will have
a `DW_AT_default_value (true)` attached to it.

Differential Revision: https://reviews.llvm.org/D139989
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-template-parameter.cpp