clang
3.7.0
|
#include <DeclTemplate.h>
Public Member Functions | |
DefaultArgStorage () | |
bool | isSet () const |
Determine whether there is a default argument for this parameter. More... | |
bool | isInherited () const |
ArgType | get () const |
const ParmDecl * | getInheritedFrom () const |
void | set (ArgType Arg) |
Set the default argument. More... | |
void | setInherited (const ASTContext &C, ParmDecl *InheritedFrom) |
Set that the default argument was inherited from another parameter. More... | |
void | clear () |
Remove the default argument, even if it was inherited. More... | |
Storage for a default argument. This is conceptually either empty, or an argument value, or a pointer to a previous declaration that had a default argument.
However, this is complicated by modules: while we require all the default arguments for a template to be equivalent, there may be more than one, and we need to track all the originating parameters to determine if the default argument is visible.
Definition at line 231 of file DeclTemplate.h.
|
inline |
Definition at line 255 of file DeclTemplate.h.
|
inline |
Remove the default argument, even if it was inherited.
Definition at line 297 of file DeclTemplate.h.
|
inline |
Get the default argument's value. This does not consider whether the default argument is visible.
Definition at line 264 of file DeclTemplate.h.
|
inline |
Get the parameter from which we inherit the default argument, if any. This is the parameter on which the default argument was actually written.
Definition at line 274 of file DeclTemplate.h.
|
inline |
Determine whether the default argument for this parameter was inherited from a previous declaration of the same entity.
Definition at line 261 of file DeclTemplate.h.
Referenced by clang::DefaultArgStorage< TemplateTypeParmDecl, TypeSourceInfo * >::setInherited().
|
inline |
Determine whether there is a default argument for this parameter.
Definition at line 258 of file DeclTemplate.h.
Referenced by clang::DefaultArgStorage< TemplateTypeParmDecl, TypeSourceInfo * >::set(), and clang::DefaultArgStorage< TemplateTypeParmDecl, TypeSourceInfo * >::setInherited().
|
inline |
Set the default argument.
Definition at line 282 of file DeclTemplate.h.
Referenced by clang::TemplateTemplateParmDecl::setDefaultArgument().
|
inline |
Set that the default argument was inherited from another parameter.
Definition at line 287 of file DeclTemplate.h.