|
clang 23.0.0git
|
ParamInfo - An array of paraminfo objects is allocated whenever a function declarator is parsed. More...
#include "clang/Sema/DeclSpec.h"
Public Member Functions | |
| ParamInfo ()=default | |
| ParamInfo (const IdentifierInfo *ident, SourceLocation iloc, Decl *param, std::unique_ptr< CachedTokens > DefArgTokens=nullptr) | |
Public Attributes | |
| const IdentifierInfo * | Ident |
| SourceLocation | IdentLoc |
| Decl * | Param |
| std::unique_ptr< CachedTokens > | DefaultArgTokens |
| DefaultArgTokens - When the parameter's default argument cannot be parsed immediately (because it occurs within the declaration of a member function), it will be stored here as a sequence of tokens to be parsed once the class definition is complete. | |
ParamInfo - An array of paraminfo objects is allocated whenever a function declarator is parsed.
There are two interesting styles of parameters here: K&R-style identifier lists and parameter type lists. K&R-style identifier lists will have information about the identifier, but no type information. Parameter type lists will have type info (if the actions module provides it), but may have null identifier info: e.g. for 'void foo(int X, int)'.
Definition at line 1367 of file DeclSpec.h.
|
default |
|
inline |
Definition at line 1380 of file DeclSpec.h.
References DefaultArgTokens, Ident, IdentLoc, and Param.
| std::unique_ptr<CachedTokens> clang::DeclaratorChunk::ParamInfo::DefaultArgTokens |
DefaultArgTokens - When the parameter's default argument cannot be parsed immediately (because it occurs within the declaration of a member function), it will be stored here as a sequence of tokens to be parsed once the class definition is complete.
Non-NULL indicates that there is a default argument.
Definition at line 1377 of file DeclSpec.h.
Referenced by clang::Sema::CheckExtraCXXDefaultArguments(), and ParamInfo().
| const IdentifierInfo* clang::DeclaratorChunk::ParamInfo::Ident |
Definition at line 1368 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFinishKNRParamDeclarations(), clang::FTIHasSingleVoidParameter(), GetFullTypeForDeclarator(), and ParamInfo().
| SourceLocation clang::DeclaratorChunk::ParamInfo::IdentLoc |
Definition at line 1369 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFinishKNRParamDeclarations(), GetFullTypeForDeclarator(), and ParamInfo().
| Decl* clang::DeclaratorChunk::ParamInfo::Param |
Definition at line 1370 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFinishKNRParamDeclarations(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::CheckConversionDeclarator(), clang::Sema::CheckExtraCXXDefaultArguments(), clang::Sema::containsUnexpandedParameterPacks(), clang::FTIHasSingleVoidParameter(), GetFullTypeForDeclarator(), clang::Declarator::isExplicitObjectMemberFunction(), ParamInfo(), and warnAboutAmbiguousFunction().