struct DeclaratorChunk::ParamInfo
Declaration
struct DeclaratorChunk::ParamInfo { /* full declaration omitted */ };
Description
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)'.
Declared at: clang/include/clang/Sema/DeclSpec.h:1252
Member Variables
- public clang::IdentifierInfo* Ident
- public clang::SourceLocation IdentLoc
- public clang::Decl* Param
- public 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. Non-NULL indicates that there is a default argument.
Method Overview
- public ParamInfo()
- public ParamInfo(clang::IdentifierInfo * ident, clang::SourceLocation iloc, clang::Decl * param, std::unique_ptr<CachedTokens> DefArgTokens = nullptr)
Methods
¶ParamInfo()
ParamInfo()
Declared at: clang/include/clang/Sema/DeclSpec.h:1264
¶ParamInfo(clang::IdentifierInfo* ident,
clang::SourceLocation iloc,
clang::Decl* param,
std::unique_ptr<CachedTokens>
DefArgTokens = nullptr)
ParamInfo(clang::IdentifierInfo* ident,
clang::SourceLocation iloc,
clang::Decl* param,
std::unique_ptr<CachedTokens>
DefArgTokens = nullptr)
Declared at: clang/include/clang/Sema/DeclSpec.h:1265
Parameters
- clang::IdentifierInfo* ident
- clang::SourceLocation iloc
- clang::Decl* param
- std::unique_ptr<CachedTokens> DefArgTokens = nullptr