================
@@ -13575,44 +13528,27 @@ class Sema final : public SemaBase {
/// Retrieve the template argument list(s) that should be used to
/// instantiate the definition of the given declaration.
///
- /// \param ND the declaration for which we are computing template
+ /// \param D the declaration for which we are computing template
/// instantiation arguments.
///
- /// \param DC In the event we don't HAVE a declaration yet, we instead
provide
- /// the decl context where it will be created. In this case, the
`Innermost`
- /// should likely be provided. If ND is non-null, this is ignored.
- ///
- /// \param Innermost if non-NULL, specifies a template argument list for the
- /// template declaration passed as ND.
+ /// \param Innermost if present, specifies a template argument list for the
+ /// template-like (TemplateDecl or PartialSpec) declaration passed as D.
///
- /// \param RelativeToPrimary true if we should get the template
- /// arguments relative to the primary template, even when we're
- /// dealing with a specialization. This is only relevant for function
- /// template specializations.
+ /// \param NumLevels if present, specifies the maximum number of template
+ /// levels of the result. This is useful for instantiating a pattern that has
+ /// already had some levels instantiated. In that case, the Template Depth of
+ /// the pattern can be passed here.
----------------
zyn0217 wrote:
IIUC by specifying NumLevels nullopt, we can have the similar behavior of
ForConstraintInstantiation that is we're collecting the entire template
arguments of all instantiation levels?
https://github.com/llvm/llvm-project/pull/199528
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits