This patch adds support for TemplateArguments of kind
TemplateArgument::Expression to clang::isSubstitutedDefaultArgument.
We do so by evaluating both the Pattern and Arg expression to an
APInt, if we can, and comparing the results.
This will be useful in an upcoming change where
clang::isSubstitutedDefaultArgument gets called from clang::Sema
where the TemplateArguments are instantiated as expressions (without
being evaluted to APInt beforehand).
Testing
- Added unit-tests
nit: . at the end.