A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clang.llvm.org/doxygen/structclang_1_1DeclaratorChunk_1_1FunctionTypeInfo.html below:

clang: clang::DeclaratorChunk::FunctionTypeInfo Struct Reference

#include "clang/Sema/DeclSpec.h"

unsigned  hasPrototype: 1   hasPrototype - This is true if the function had at least one typed parameter.
  unsigned  isVariadic: 1   isVariadic - If this function has a prototype, and if that proto ends with ',...)', this is true.
  unsigned  isAmbiguous: 1   Can this declaration be a constructor-style initializer?
  unsigned  RefQualifierIsLValueRef: 1   Whether the ref-qualifier (if any) is an lvalue reference.
  unsigned  ExceptionSpecType: 4   ExceptionSpecType - An ExceptionSpecificationType value.
  unsigned  DeleteParams: 1   DeleteParams - If this is true, we need to delete[] Params.
  unsigned  HasTrailingReturnType: 1   HasTrailingReturnType - If this is true, a trailing return type was specified.
  SourceLocation  LParenLoc   The location of the left parenthesis in the source.
  SourceLocation  EllipsisLoc   When isVariadic is true, the location of the ellipsis in the source.
  SourceLocation  RParenLoc   The location of the right parenthesis in the source.
  unsigned  NumParams   NumParams - This is the number of formal parameters specified by the declarator.
  unsigned  NumExceptionsOrDecls   NumExceptionsOrDecls - This is the number of types in the dynamic-exception-decl, if the function has one.
  SourceLocation  RefQualifierLoc   The location of the ref-qualifier, if any.
  SourceLocation  MutableLoc   The location of the 'mutable' qualifer in a lambda-declarator, if any.
  SourceLocation  ExceptionSpecLocBeg   The beginning location of the exception specification, if any.
  SourceLocation  ExceptionSpecLocEnd   The end location of the exception specification, if any.
  ParamInfoParams   Params - This is a pointer to a new[]'d array of ParamInfo objects that describe the parameters specified by this function declarator.
  DeclSpecMethodQualifiers   DeclSpec for the function with the qualifier related info.
  AttributeFactoryQualAttrFactory   AttributeFactory for the MethodQualifiers.
  union {    TypeAndRange *   Exceptions   Pointer to a new[]'d array of TypeAndRange objects that contain the types in the function's dynamic exception specification and their locations, if there is one. More...
     Expr *   NoexceptExpr   Pointer to the expression in the noexcept-specifier of this function, if it has one. More...
     CachedTokens *   ExceptionSpecTokens   Pointer to the cached tokens for an exception-specification that has not yet been parsed. More...
     NamedDecl **   DeclsInPrototype   Pointer to a new[]'d array of declarations that need to be available for lookup inside the function body, if one exists. More...
  };    UnionParsedType  TrailingReturnType   If HasTrailingReturnType is true, this is the trailing return type specified.
  SourceLocation  TrailingReturnTypeLoc   If HasTrailingReturnType is true, this is the location of the trailing return type.
 

Definition at line 1357 of file DeclSpec.h.

◆ destroy() void clang::DeclaratorChunk::FunctionTypeInfo::destroy ( ) inline

Definition at line 1477 of file DeclSpec.h.

References DeclsInPrototype, clang::EST_Dynamic, clang::EST_None, clang::EST_Unparsed, Exceptions, ExceptionSpecTokens, freeParams(), getExceptionSpecType(), MethodQualifiers, NumExceptionsOrDecls, and QualAttrFactory.

Referenced by clang::DeclaratorChunk::destroy().

◆ freeParams() void clang::DeclaratorChunk::FunctionTypeInfo::freeParams ( ) inline ◆ getConstQualifierLoc() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getConstQualifierLoc ( ) const inline ◆ getDeclsInPrototype() ArrayRef< NamedDecl * > clang::DeclaratorChunk::FunctionTypeInfo::getDeclsInPrototype ( ) const inline ◆ getEllipsisLoc() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getEllipsisLoc ( ) const inline ◆ getExceptionSpecLocBeg() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getExceptionSpecLocBeg ( ) const inline ◆ getExceptionSpecLocEnd() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getExceptionSpecLocEnd ( ) const inline ◆ getExceptionSpecRange() SourceRange clang::DeclaratorChunk::FunctionTypeInfo::getExceptionSpecRange ( ) const inline ◆ getExceptionSpecType() ◆ getLParenLoc() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getLParenLoc ( ) const inline ◆ getMutableLoc() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getMutableLoc ( ) const inline ◆ getNumExceptions() unsigned clang::DeclaratorChunk::FunctionTypeInfo::getNumExceptions ( ) const inline ◆ getOrCreateMethodQualifiers() DeclSpec & clang::DeclaratorChunk::FunctionTypeInfo::getOrCreateMethodQualifiers ( ) inline ◆ getRefQualifierLoc() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getRefQualifierLoc ( ) const inline ◆ getRestrictQualifierLoc() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getRestrictQualifierLoc ( ) const inline ◆ getRParenLoc() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getRParenLoc ( ) const inline ◆ getTrailingReturnType() ParsedType clang::DeclaratorChunk::FunctionTypeInfo::getTrailingReturnType ( ) const inline ◆ getTrailingReturnTypeLoc() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getTrailingReturnTypeLoc ( ) const inline ◆ getVolatileQualifierLoc() SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::getVolatileQualifierLoc ( ) const inline ◆ hasMethodTypeQualifiers() bool clang::DeclaratorChunk::FunctionTypeInfo::hasMethodTypeQualifiers ( ) const inline ◆ hasMutableQualifier() bool clang::DeclaratorChunk::FunctionTypeInfo::hasMutableQualifier ( ) const inline ◆ hasRefQualifier() bool clang::DeclaratorChunk::FunctionTypeInfo::hasRefQualifier ( ) const inline ◆ hasTrailingReturnType() bool clang::DeclaratorChunk::FunctionTypeInfo::hasTrailingReturnType ( ) const inline ◆ isKNRPrototype() bool clang::DeclaratorChunk::FunctionTypeInfo::isKNRPrototype ( ) const inline

isKNRPrototype - Return true if this is a K&R style identifier list, like "void foo(a,b,c)".

In a function definition, this will be followed by the parameter type definitions.

Definition at line 1508 of file DeclSpec.h.

References hasPrototype, and NumParams.

◆  union { ... } clang::DeclaratorChunk::FunctionTypeInfo::@227 ◆ DeclsInPrototype NamedDecl** clang::DeclaratorChunk::FunctionTypeInfo::DeclsInPrototype ◆ DeleteParams unsigned clang::DeclaratorChunk::FunctionTypeInfo::DeleteParams ◆ EllipsisLoc ◆ Exceptions TypeAndRange* clang::DeclaratorChunk::FunctionTypeInfo::Exceptions ◆ ExceptionSpecLocBeg SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::ExceptionSpecLocBeg ◆ ExceptionSpecLocEnd SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::ExceptionSpecLocEnd ◆ ExceptionSpecTokens CachedTokens* clang::DeclaratorChunk::FunctionTypeInfo::ExceptionSpecTokens ◆ ExceptionSpecType unsigned clang::DeclaratorChunk::FunctionTypeInfo::ExceptionSpecType ◆ hasPrototype unsigned clang::DeclaratorChunk::FunctionTypeInfo::hasPrototype ◆ HasTrailingReturnType unsigned clang::DeclaratorChunk::FunctionTypeInfo::HasTrailingReturnType ◆ isAmbiguous unsigned clang::DeclaratorChunk::FunctionTypeInfo::isAmbiguous ◆ isVariadic unsigned clang::DeclaratorChunk::FunctionTypeInfo::isVariadic ◆ LParenLoc ◆ MethodQualifiers DeclSpec* clang::DeclaratorChunk::FunctionTypeInfo::MethodQualifiers ◆ MutableLoc ◆ NoexceptExpr Expr* clang::DeclaratorChunk::FunctionTypeInfo::NoexceptExpr ◆ NumExceptionsOrDecls unsigned clang::DeclaratorChunk::FunctionTypeInfo::NumExceptionsOrDecls ◆ NumParams unsigned clang::DeclaratorChunk::FunctionTypeInfo::NumParams

NumParams - This is the number of formal parameters specified by the declarator.

Definition at line 1403 of file DeclSpec.h.

Referenced by clang::Sema::ActOnFinishKNRParamDeclarations(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::CheckExplicitObjectMemberFunction(), clang::Sema::CheckExtraCXXDefaultArguments(), clang::Sema::containsUnexpandedParameterPacks(), freeParams(), clang::FTIHasNonVoidParameters(), clang::FTIHasSingleVoidParameter(), GetFullTypeForDeclarator(), clang::DeclaratorChunk::getFunction(), clang::Declarator::isExplicitObjectMemberFunction(), isKNRPrototype(), and warnAboutAmbiguousFunction().

◆ Params ParamInfo* clang::DeclaratorChunk::FunctionTypeInfo::Params

Params - This is a pointer to a new[]'d array of ParamInfo objects that describe the parameters specified by this function declarator.

null if there are no parameters specified.

Definition at line 1428 of file DeclSpec.h.

Referenced by clang::Sema::ActOnFinishKNRParamDeclarations(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::CheckConversionDeclarator(), clang::Sema::CheckExplicitObjectMemberFunction(), clang::Sema::CheckExtraCXXDefaultArguments(), clang::Sema::containsUnexpandedParameterPacks(), freeParams(), clang::FTIHasSingleVoidParameter(), GetFullTypeForDeclarator(), clang::DeclaratorChunk::getFunction(), clang::Declarator::isExplicitObjectMemberFunction(), and warnAboutAmbiguousFunction().

◆ QualAttrFactory ◆ RefQualifierIsLValueRef unsigned clang::DeclaratorChunk::FunctionTypeInfo::RefQualifierIsLValueRef ◆ RefQualifierLoc SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::RefQualifierLoc ◆ RParenLoc ◆ TrailingReturnType UnionParsedType clang::DeclaratorChunk::FunctionTypeInfo::TrailingReturnType ◆ TrailingReturnTypeLoc SourceLocation clang::DeclaratorChunk::FunctionTypeInfo::TrailingReturnTypeLoc

The documentation for this struct was generated from the following file:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4