![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <template_declaration.h>
Public Member Functions | |
| QString | to_qstring () const |
| QString | to_qstring_multiline () const |
| QSet< QString > | parameterNames () const |
| Returns the set of all declared template parameter names. | |
| QSet< QString > | requiredParameterNamesForFunctions () const |
| Returns the set of template parameter names that are API-significant and should be documented for functions. | |
| Public Member Functions inherited from TemplateDeclarationStorage | |
| std::string | to_std_string () const |
Public Attributes | |
| std::optional< std::string > | requires_clause |
| Public Attributes inherited from TemplateDeclarationStorage | |
| std::vector< RelaxedTemplateParameter > | parameters |
Definition at line 428 of file template_declaration.h.
Returns the set of all declared template parameter names.
This extracts the name from each template parameter's valued_declaration. Parameters without names (such as unnamed template parameters) are not included in the returned set.
This is useful for documentation validation, allowing QDoc to verify that template parameters can be referenced using the \a command.
Definition at line 493 of file template_declaration.h.
|
inlinenodiscard |
Returns the set of template parameter names that are API-significant and should be documented for functions.
This includes only non-type template parameters (such as {int Size}) and template-template parameters, which carry meaning that isn't implied by function parameter types.
Type template parameters (such as {typename T}) are excluded because they typically serve to type function parameters, and documenting the function parameter implicitly covers the template parameter's role.
For class template parameters, use parameterNames() instead, as all template parameters are part of the class's primary API surface.
Definition at line 518 of file template_declaration.h.
|
inline |
Definition at line 432 of file template_declaration.h.
References TemplateDeclarationStorage::to_std_string().
|
inline |
Definition at line 460 of file template_declaration.h.
| std::optional<std::string> RelaxedTemplateDeclaration::requires_clause |
Definition at line 430 of file template_declaration.h.