[clang] [clang-tools-extra] [clang] NFCI: use TemplateArgumentLoc for NTTP DefaultArgument (PR #92852)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Mon May 20 21:49:37 PDT 2024
================
@@ -1435,7 +1436,10 @@ class NonTypeTemplateParmDecl final
bool hasDefaultArgument() const { return DefaultArgument.isSet(); }
/// Retrieve the default argument, if any.
- Expr *getDefaultArgument() const { return DefaultArgument.get(); }
+ const TemplateArgumentLoc &getDefaultArgument() const {
----------------
mizvekov wrote:
All template parameters currently use that name, so this is kept for consistency.
I wouldn't object a later separate patch to rename all of them at once.
https://github.com/llvm/llvm-project/pull/92852
More information about the cfe-commits
mailing list