[clang] [clang-tools-extra] [clang] NFCI: use TemplateArgumentLoc for NTTP DefaultArgument (PR #92852)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon May 20 21:33:43 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 {
----------------
ChuanqiXu9 wrote:
Is it better to rename `getDefaultArgument` to `getDefaultArgumentLoc`?
https://github.com/llvm/llvm-project/pull/92852
More information about the cfe-commits
mailing list