[clang][AST][NFC] Expose clang::isSubstitutedDefaultArgument to clang/AST consumers
authorMichael Buch <michaelbuch12@gmail.com>
Thu, 15 Dec 2022 21:26:33 +0000 (21:26 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Fri, 16 Dec 2022 11:38:50 +0000 (11:38 +0000)
commit98afcbab66505661045dccb85ee9acdbf9410047
treebc8f6b3ea0c7a0ab4296fe29376425ce08f940b9
parent07e1c9978d56b7f78146e4a884c08fafe5d8ee4e
[clang][AST][NFC] Expose clang::isSubstitutedDefaultArgument to clang/AST consumers

**Summary**
A use-case has come up in DWARF CodeGen where we want to determine
whether a particular template argument matches the default template
parameter declaration.

Re-using this TypePrinter component there allows us to avoid duplicating
most of this code and immediately allows us to cover a wider range
of use-cases than the DWARF CodeGen does today.
clang/include/clang/AST/Type.h
clang/lib/AST/TypePrinter.cpp