|
clang 24.0.0git
|
Captures information about "declaration specifiers". More...
#include "clang/Sema/DeclSpec.h"
Public Types | |
| enum | SCS { SCS_unspecified = 0 , SCS_typedef , SCS_extern , SCS_static , SCS_auto , SCS_register , SCS_private_extern , SCS_mutable } |
| storage-class-specifier More... | |
| enum | TSC { TSC_unspecified , TSC_imaginary , TSC_complex } |
| enum | TQ { TQ_unspecified = 0 , TQ_const = 1 , TQ_restrict = 2 , TQ_volatile = 4 , TQ_unaligned = 8 , TQ_atomic = 16 } |
| enum | ParsedSpecifiers { PQ_None = 0 , PQ_StorageClassSpecifier = 1 , PQ_TypeSpecifier = 2 , PQ_TypeQualifier = 4 , PQ_FunctionSpecifier = 8 } |
| ParsedSpecifiers - Flags to query which specifiers were applied. More... | |
| enum | FriendSpecified : bool { No , Yes } |
| enum class | OverflowBehaviorState { Unspecified , Wrap , Trap } |
| typedef ThreadStorageClassSpecifier | TSCS |
| typedef TypeSpecifierType | TST |
Static Public Member Functions | |
| static bool | isDeclRep (TST T) |
| static bool | isTransformTypeTrait (TST T) |
| static const char * | getSpecifierName (DeclSpec::TST T, const PrintingPolicy &Policy) |
| Turn a type-specifier-type into a string like "_Bool" or "union". | |
| static const char * | getSpecifierName (DeclSpec::TQ Q) |
| static const char * | getSpecifierName (TypeSpecifierSign S) |
| static const char * | getSpecifierName (DeclSpec::TSC C) |
| static const char * | getSpecifierName (TypeSpecifierWidth W) |
| static const char * | getSpecifierName (DeclSpec::SCS S) |
| static const char * | getSpecifierName (DeclSpec::TSCS S) |
| static const char * | getSpecifierName (ConstexprSpecKind C) |
| static const char * | getSpecifierName (OverflowBehaviorState S) |
Static Public Attributes | |
| static const TSCS | TSCS_unspecified = clang::TSCS_unspecified |
| static const TSCS | TSCS___thread = clang::TSCS___thread |
| static const TSCS | TSCS_thread_local = clang::TSCS_thread_local |
| static const TSCS | TSCS__Thread_local = clang::TSCS__Thread_local |
| static const TST | TST_unspecified = clang::TST_unspecified |
| static const TST | TST_void = clang::TST_void |
| static const TST | TST_char = clang::TST_char |
| static const TST | TST_wchar = clang::TST_wchar |
| static const TST | TST_char8 = clang::TST_char8 |
| static const TST | TST_char16 = clang::TST_char16 |
| static const TST | TST_char32 = clang::TST_char32 |
| static const TST | TST_int = clang::TST_int |
| static const TST | TST_int128 = clang::TST_int128 |
| static const TST | TST_bitint = clang::TST_bitint |
| static const TST | TST_half = clang::TST_half |
| static const TST | TST_BFloat16 = clang::TST_BFloat16 |
| static const TST | TST_float = clang::TST_float |
| static const TST | TST_double = clang::TST_double |
| static const TST | TST_float16 = clang::TST_Float16 |
| static const TST | TST_accum = clang::TST_Accum |
| static const TST | TST_fract = clang::TST_Fract |
| static const TST | TST_float128 = clang::TST_float128 |
| static const TST | TST_ibm128 = clang::TST_ibm128 |
| static const TST | TST_bool = clang::TST_bool |
| static const TST | TST_decimal32 = clang::TST_decimal32 |
| static const TST | TST_decimal64 = clang::TST_decimal64 |
| static const TST | TST_decimal128 = clang::TST_decimal128 |
| static const TST | TST_enum = clang::TST_enum |
| static const TST | TST_union = clang::TST_union |
| static const TST | TST_struct = clang::TST_struct |
| static const TST | TST_interface = clang::TST_interface |
| static const TST | TST_class = clang::TST_class |
| static const TST | TST_typename = clang::TST_typename |
| static const TST | TST_typeofType = clang::TST_typeofType |
| static const TST | TST_typeofExpr = clang::TST_typeofExpr |
| static const TST | TST_typeof_unqualType = clang::TST_typeof_unqualType |
| static const TST | TST_typeof_unqualExpr = clang::TST_typeof_unqualExpr |
| static const TST | TST_decltype = clang::TST_decltype |
| static const TST | TST_decltype_auto = clang::TST_decltype_auto |
| static const TST | TST_typename_pack_indexing |
| static const TST | TST_auto = clang::TST_auto |
| static const TST | TST_auto_type = clang::TST_auto_type |
| static const TST | TST_unknown_anytype = clang::TST_unknown_anytype |
| static const TST | TST_atomic = clang::TST_atomic |
| static const TST | TST_error = clang::TST_error |
Captures information about "declaration specifiers".
"Declaration specifiers" encompasses storage-class-specifiers, type-specifiers, type-qualifiers, and function-specifiers.
Definition at line 220 of file DeclSpec.h.
Definition at line 237 of file DeclSpec.h.
Definition at line 250 of file DeclSpec.h.
| Enumerator | |
|---|---|
| No | |
| Yes | |
Definition at line 326 of file DeclSpec.h.
|
strong |
| Enumerator | |
|---|---|
| Unspecified | |
| Wrap | |
| Trap | |
Definition at line 328 of file DeclSpec.h.
ParsedSpecifiers - Flags to query which specifiers were applied.
This is returned by getParsedSpecifiers.
| Enumerator | |
|---|---|
| PQ_None | |
| PQ_StorageClassSpecifier | |
| PQ_TypeSpecifier | |
| PQ_TypeQualifier | |
| PQ_FunctionSpecifier | |
Definition at line 317 of file DeclSpec.h.
| enum clang::DeclSpec::SCS |
storage-class-specifier
| Enumerator | |
|---|---|
| SCS_unspecified | |
| SCS_typedef | |
| SCS_extern | |
| SCS_static | |
| SCS_auto | |
| SCS_register | |
| SCS_private_extern | |
| SCS_mutable | |
Definition at line 224 of file DeclSpec.h.
| enum clang::DeclSpec::TQ |
| Enumerator | |
|---|---|
| TQ_unspecified | |
| TQ_const | |
| TQ_restrict | |
| TQ_volatile | |
| TQ_unaligned | |
| TQ_atomic | |
Definition at line 304 of file DeclSpec.h.
| enum clang::DeclSpec::TSC |
| Enumerator | |
|---|---|
| TSC_unspecified | |
| TSC_imaginary | |
| TSC_complex | |
Definition at line 243 of file DeclSpec.h.
|
inline |
Definition at line 511 of file DeclSpec.h.
References false, clang::nullptr, SCS_unspecified, TQ_unspecified, TSC_unspecified, TSCS_unspecified, TST_unspecified, and Unspecified.
|
inline |
Concatenates two attribute lists.
The GCC attribute syntax allows for the following:
This declares 4 attributes using 2 lists. The following syntax is also allowed and equivalent to the previous declaration.
Definition at line 923 of file DeclSpec.h.
References clang::ParsedAttributesView::begin(), and clang::ParsedAttributesView::end().
Referenced by clang::Parser::ParseTypeName().
| void DeclSpec::CheckFriendSpec | ( | Sema & | S, |
| const PrintingPolicy & | Policy ) |
Definition at line 1624 of file DeclSpec.cpp.
References ClearStorageClassSpecs(), clang::FixItHint::CreateRemoval(), clang::SemaBase::Diag(), getExplicitSpecLoc(), getExplicitSpecRange(), getSpecifierName(), getStorageClassSpec(), getStorageClassSpecLoc(), getThreadStorageClassSpec(), getThreadStorageClassSpecLoc(), getVirtualSpecLoc(), hasExplicitSpecifier(), isFriendSpecified(), isVirtualSpecified(), and clang::Keyword.
Referenced by Finish().
| void DeclSpec::CheckTypeSpec | ( | Sema & | S, |
| const PrintingPolicy & | Policy ) |
Definition at line 1182 of file DeclSpec.cpp.
References clang::Consteval, clang::Constexpr, clang::Constinit, clang::Sema::Context, clang::FixItHint::CreateInsertion(), clang::FixItHint::CreateRemoval(), clang::SemaBase::Diag(), getConstexprSpecifier(), getConstexprSpecLoc(), clang::Sema::getLangOpts(), clang::Sema::getLocForEndOfToken(), clang::LangOptions::getOpenCLVersionString(), clang::Sema::getPrintingPolicy(), clang::Sema::getSourceManager(), getSpecifierName(), getStorageClassSpec(), getStorageClassSpecLoc(), clang::ASTContext::getTargetInfo(), getThreadStorageClassSpec(), getThreadStorageClassSpecLoc(), clang::TargetInfo::getTriple(), getTypeSpecComplexLoc(), getTypeSpecSign(), getTypeSpecType(), getTypeSpecWidth(), clang::TargetInfo::hasFeature(), clang::LangOptionsBase::HLSL_202y, clang::SourceManager::isBeforeInTranslationUnit(), clang::SourceLocation::isInvalid(), clang::Long, clang::LongLong, SCS_auto, SCS_extern, SCS_private_extern, SCS_static, SCS_unspecified, SetStorageClassSpec(), clang::Short, TSC_unspecified, TSCS_unspecified, TST_accum, TST_auto, TST_bitint, TST_char, TST_char16, TST_char32, TST_char8, TST_decltype_auto, TST_double, TST_error, TST_float, TST_float128, TST_float16, TST_fract, TST_ibm128, TST_int, TST_int128, TST_unspecified, TST_wchar, clang::Unsigned, and clang::Unspecified.
Referenced by Finish().
|
inline |
Definition at line 897 of file DeclSpec.h.
References clang::Unspecified.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), and CreateNewFunctionDecl().
|
inline |
Definition at line 720 of file DeclSpec.h.
|
inline |
Definition at line 546 of file DeclSpec.h.
References SCS_unspecified, and TSCS_unspecified.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnExplicitInstantiation(), clang::SemaObjC::ActOnObjCExceptionDecl(), clang::Sema::ActOnParamDeclarator(), CheckFriendSpec(), and getFunctionStorageClass().
|
inline |
Clear out all of the type qualifiers.
Definition at line 680 of file DeclSpec.h.
References Unspecified.
Referenced by clang::Sema::BuildAnonymousStructOrUnion(), and checkOmittedBlockReturnType().
|
inline |
Definition at line 554 of file DeclSpec.h.
References TST_unspecified.
| void DeclSpec::Finish | ( | Sema & | S, |
| const PrintingPolicy & | Policy ) |
Finish - This does final analysis of the declspec, issuing diagnostics for things like "_Complex" (lacking an FP type).
Finish - This does final analysis of the declspec, rejecting things like "_Complex" (lacking an FP type).
After calling this method, DeclSpec is guaranteed self-consistent, even if an error occurred.
After calling this method, DeclSpec is guaranteed to be self-consistent, even if an error occurred.
Definition at line 1163 of file DeclSpec.cpp.
References CheckFriendSpec(), CheckTypeSpec(), and isDeclRep().
| void DeclSpec::forEachCVRUQualifier | ( | llvm::function_ref< void(TQ, StringRef, SourceLocation)> | Handle | ) |
This method calls the passed in handler on each CVRU qual being set.
Handle - a handler to be invoked.
Definition at line 415 of file DeclSpec.cpp.
References TQ_const, TQ_restrict, TQ_unaligned, and TQ_volatile.
Referenced by forEachQualifier(), and clang::DeclaratorChunk::getFunction().
| void DeclSpec::forEachQualifier | ( | llvm::function_ref< void(TQ, StringRef, SourceLocation)> | Handle | ) |
This method calls the passed in handler on each qual being set.
Handle - a handler to be invoked.
Definition at line 427 of file DeclSpec.cpp.
References forEachCVRUQualifier().
Referenced by checkMethodTypeQualifiers(), and GetFullTypeForDeclarator().
|
inline |
Definition at line 617 of file DeclSpec.h.
|
inline |
Definition at line 655 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFriendTypeDecl(), clang::Sema::BuildAnonymousStructOrUnion(), clang::Sema::BuildQualifiedType(), clang::Sema::CheckConstructorDeclarator(), clang::Sema::CheckDestructorDeclarator(), diagnoseAndRemoveTypeQualifiers(), diagnoseRedundantReturnTypeQualifiers(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 902 of file DeclSpec.h.
Referenced by GetFullTypeForDeclarator(), clang::DeclaratorChunk::getFunction(), and takeDeclAttributes().
|
inline |
Definition at line 929 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnExplicitInstantiation(), addContextSensitiveTypeNullability(), checkOmittedBlockReturnType(), clang::Sema::checkUnusedDeclAttributes(), ConvertDeclSpecToType(), distributeObjCPointerTypeAttrFromDeclarator(), getCCForDeclaratorChunk(), GetDeclSpecTypeForDeclarator(), GetFullTypeForDeclarator(), clang::DeclaratorChunk::getFunction(), GetTypeSourceInfoForDeclarator(), hasParsedAttr(), clang::Sema::ImplicitlyDefineFunction(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Parser::ParseTypeName(), clang::Sema::ProcessDeclAttributes(), and takeDeclAttributes().
|
inline |
Definition at line 930 of file DeclSpec.h.
|
inline |
Definition at line 609 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierIndexedPack(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFriendTypeDecl(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnPseudoDestructorExpr(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::BuildAnonymousStructOrUnion(), clang::Sema::BuildMemInitializer(), clang::Sema::BuildMicrosoftCAnonymousStruct(), clang::Sema::CheckDeductionGuideDeclarator(), ConvertDeclSpecToType(), GetFullTypeForDeclarator(), clang::Sema::HandleDeclarator(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 888 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::SemaOpenMP::ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope(), clang::Sema::ActOnStartOfLambdaDefinition(), clang::Sema::ActOnVariableDeclarator(), CheckTypeSpec(), CreateNewFunctionDecl(), GetFullTypeForDeclarator(), hasConstexprSpecifier(), clang::Sema::ParsedFreeStandingDeclSpec(), and SetConstexprSpec().
|
inline |
Definition at line 892 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnTypedefDeclarator(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::CheckMain(), CheckTypeSpec(), CreateNewFunctionDecl(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 652 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFriendTypeDecl(), clang::Sema::BuildAnonymousStructOrUnion(), clang::Sema::CheckConstructorDeclarator(), clang::Sema::CheckDestructorDeclarator(), ConvertDeclSpecToType(), diagnoseAndRemoveTypeQualifiers(), diagnoseRedundantReturnTypeQualifiers(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 658 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierIndexedPack(), clang::Sema::ActOnPseudoDestructorExpr(), clang::Sema::BuildMemInitializer(), and ConvertDeclSpecToType().
|
inline |
Definition at line 610 of file DeclSpec.h.
Referenced by GetFullTypeForDeclarator().
|
inline |
Definition at line 700 of file DeclSpec.h.
Referenced by CreateNewFunctionDecl().
|
inline |
Definition at line 710 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::CheckConversionDeclarator(), CheckFriendSpec(), and clang::Sema::DiagnoseFunctionSpecifiers().
|
inline |
Definition at line 711 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::CheckConversionDeclarator(), and CheckFriendSpec().
|
inline |
Definition at line 883 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFriendFunctionDecl(), and clang::Sema::ActOnFriendTypeDecl().
|
inline |
Definition at line 696 of file DeclSpec.h.
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::SemaObjC::ActOnObjCExceptionDecl(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnTypedefDeclarator(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::CheckMain(), clang::Sema::HandleField(), clang::Sema::HandleMSProperty(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 886 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::ParsedFreeStandingDeclSpec(), and clang::Sema::ParseTypedefDecl().
|
inline |
Definition at line 718 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::CheckMain(), and clang::Sema::DiagnoseFunctionSpecifiers().
|
inline |
Definition at line 949 of file DeclSpec.h.
|
inline |
Definition at line 673 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType().
|
inline |
Definition at line 661 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), isOverflowBehaviorSpecified(), isTrapSpecified(), isWrapSpecified(), and SetOverflowBehavior().
|
inline |
Definition at line 594 of file DeclSpec.h.
References TST_typename_pack_indexing.
Referenced by clang::Sema::ActOnPseudoDestructorExpr(), clang::Sema::BuildMemInitializer(), and ConvertDeclSpecToType().
| unsigned DeclSpec::getParsedSpecifiers | ( | ) | const |
Return a bitmask of which flavors of specifiers this DeclSpec includes.
getParsedSpecifiers - Return a bitmask of which flavors of specifiers this declaration specifier includes.
Definition at line 442 of file DeclSpec.cpp.
References hasExplicitSpecifier(), hasTypeSpecifier(), PQ_FunctionSpecifier, PQ_StorageClassSpecifier, PQ_TypeQualifier, PQ_TypeSpecifier, SCS_unspecified, TQ_unspecified, and TSCS_unspecified.
Referenced by clang::SemaCodeCompletion::CodeCompleteDeclSpec(), GetDeclSpecTypeForDeclarator(), isEmpty(), and warnAboutRedundantParens().
|
inline |
Definition at line 657 of file DeclSpec.h.
|
inline |
Definition at line 585 of file DeclSpec.h.
References DeclRep, and isDeclRep().
Referenced by ConvertDeclSpecToType(), DiagnoseCountAttributedTypeInUnnamedAnon(), clang::Sema::FinalizeDeclaratorGroup(), GetDeclSpecTypeForDeclarator(), GetDiagnosticTypeSpecifierID(), GetFullTypeForDeclarator(), hasTagDefinition(), isMissingDeclaratorOk(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Sema::ParseTypedefDecl(), and clang::Parser::ParseTypeName().
|
inline |
Definition at line 589 of file DeclSpec.h.
References ExprRep.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierDecltype(), clang::Sema::ActOnPseudoDestructorExpr(), clang::Sema::BuildMemInitializer(), clang::Sema::containsUnexpandedParameterPacks(), ConvertDeclSpecToType(), clang::Sema::getDestructorTypeForDecltype(), and RebuildDeclaratorInCurrentInstantiation().
|
inline |
Definition at line 600 of file DeclSpec.h.
References TemplateIdRep.
Referenced by ConvertDeclSpecToType(), and InventTemplateParameter().
|
inline |
Definition at line 581 of file DeclSpec.h.
References isTypeRep(), and TypeRep.
Referenced by clang::Sema::ActOnPseudoDestructorExpr(), clang::Sema::BuildMemInitializer(), clang::SemaCodeCompletion::CodeCompleteDeclSpec(), clang::Sema::containsUnexpandedParameterPacks(), ConvertDeclSpecToType(), CreateNewFunctionDecl(), clang::Sema::ParsedFreeStandingDeclSpec(), and RebuildDeclaratorInCurrentInstantiation().
|
inline |
Definition at line 653 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFriendTypeDecl(), clang::Sema::BuildAnonymousStructOrUnion(), clang::Sema::BuildQualifiedType(), clang::Sema::CheckConstructorDeclarator(), clang::Sema::CheckDestructorDeclarator(), diagnoseAndRemoveTypeQualifiers(), diagnoseRedundantReturnTypeQualifiers(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 608 of file DeclSpec.h.
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFriendTypeDecl(), clang::Sema::BuildAnonymousStructOrUnion(), ConvertDeclSpecToType(), GetFullTypeForDeclarator(), clang::Sema::HandleDeclarator(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
static |
Definition at line 593 of file DeclSpec.cpp.
References clang::C, clang::Consteval, clang::Constexpr, clang::Constinit, and clang::Unspecified.
|
static |
Definition at line 473 of file DeclSpec.cpp.
References SCS_auto, SCS_extern, SCS_mutable, SCS_private_extern, SCS_register, SCS_static, SCS_typedef, and SCS_unspecified.
|
static |
Definition at line 607 of file DeclSpec.cpp.
References TQ_atomic, TQ_const, TQ_restrict, TQ_unaligned, TQ_unspecified, and TQ_volatile.
|
static |
Definition at line 511 of file DeclSpec.cpp.
References clang::C, TSC_complex, TSC_imaginary, and TSC_unspecified.
|
static |
Definition at line 487 of file DeclSpec.cpp.
References TSCS___thread, TSCS__Thread_local, TSCS_thread_local, and TSCS_unspecified.
|
static |
Turn a type-specifier-type into a string like "_Bool" or "union".
Definition at line 532 of file DeclSpec.cpp.
References clang::PrintingPolicy::Bool, clang::PrintingPolicy::MSWChar, TST_accum, TST_atomic, TST_auto, TST_auto_type, TST_BFloat16, TST_bitint, TST_bool, TST_char, TST_char16, TST_char32, TST_char8, TST_class, TST_decimal128, TST_decimal32, TST_decimal64, TST_decltype, TST_decltype_auto, TST_double, TST_enum, TST_error, TST_float, TST_float128, TST_float16, TST_fract, TST_half, TST_ibm128, TST_int, TST_int128, TST_interface, TST_struct, TST_typename, TST_typename_pack_indexing, TST_typeof_unqualExpr, TST_typeof_unqualType, TST_typeofExpr, TST_typeofType, TST_union, TST_unknown_anytype, TST_unspecified, TST_void, and TST_wchar.
Referenced by clang::Sema::ActOnDecompositionDeclarator(), clang::Sema::ActOnFunctionDeclarator(), clang::SemaObjC::ActOnObjCExceptionDecl(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnVariableDeclarator(), BadSpecifier(), CheckFriendSpec(), CheckTypeSpec(), ConvertDeclSpecToType(), diagnoseAndRemoveTypeQualifiers(), GetFullTypeForDeclarator(), clang::Sema::HandleField(), clang::Sema::HandleMSProperty(), clang::Sema::ParsedFreeStandingDeclSpec(), SetBitIntType(), SetStorageClassSpec(), SetTypeAltiVecBool(), SetTypeAltiVecPixel(), SetTypeAltiVecVector(), SetTypePipe(), SetTypeSpecType(), SetTypeSpecType(), SetTypeSpecType(), and SetTypeSpecType().
|
static |
Definition at line 619 of file DeclSpec.cpp.
References Trap, Unspecified, and Wrap.
|
static |
Definition at line 520 of file DeclSpec.cpp.
References clang::Signed, clang::Unsigned, and clang::Unspecified.
|
static |
Definition at line 497 of file DeclSpec.cpp.
References clang::Long, clang::LongLong, clang::Short, and clang::Unspecified.
|
inline |
Definition at line 532 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXConditionDeclaration(), clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFriendFunctionDecl(), clang::Sema::ActOnFriendTypeDecl(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::SemaObjC::ActOnObjCExceptionDecl(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnStartOfLambdaDefinition(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::BuildAnonymousStructOrUnion(), clang::Sema::CheckExplicitObjectMemberFunction(), CheckFriendSpec(), CheckTypeSpec(), ConvertDeclSpecToType(), getCCForDeclaratorChunk(), GetDeclSpecTypeForDeclarator(), GetFullTypeForDeclarator(), getFunctionStorageClass(), getLambdaType(), clang::Sema::HandleDeclarator(), clang::Declarator::isStaticMember(), clang::Sema::ParsedFreeStandingDeclSpec(), StorageClassSpecToVarDeclStorageClass(), and warnAboutAmbiguousFunction().
|
inline |
Definition at line 541 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::SemaObjC::ActOnObjCExceptionDecl(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::BuildAnonymousStructOrUnion(), clang::Sema::CheckConstructorDeclarator(), clang::Sema::CheckConversionDeclarator(), clang::Sema::CheckDestructorDeclarator(), clang::Sema::CheckFieldDecl(), CheckFriendSpec(), clang::Sema::CheckMain(), CheckTypeSpec(), getFunctionStorageClass(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 533 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::SemaObjC::ActOnObjCExceptionDecl(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnVariableDeclarator(), CheckFriendSpec(), CheckTypeSpec(), clang::Sema::HandleField(), clang::Sema::HandleMSProperty(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 542 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::SemaObjC::ActOnObjCExceptionDecl(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnVariableDeclarator(), CheckFriendSpec(), CheckTypeSpec(), clang::Sema::HandleField(), clang::Sema::HandleMSProperty(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 626 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierDecltype(), clang::Sema::ActOnPseudoDestructorExpr(), and clang::Sema::getDestructorTypeForDecltype().
|
inline |
getTypeQualifiers - Return a set of TQs.
Definition at line 651 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnFriendTypeDecl(), AddTypeQualifierResults(), clang::Sema::BuildAnonymousStructOrUnion(), clang::Sema::CheckConstructorDeclarator(), clang::Sema::CheckConversionDeclarator(), clang::Sema::CheckDestructorDeclarator(), checkOmittedBlockReturnType(), ConvertDeclSpecToType(), diagnoseRedundantReturnTypeQualifiers(), GetFullTypeForDeclarator(), clang::DeclaratorChunk::getFunction(), clang::Sema::ParsedFreeStandingDeclSpec(), and warnAboutRedundantParens().
|
inline |
Definition at line 564 of file DeclSpec.h.
Referenced by clang::SemaCodeCompletion::CodeCompleteDeclSpec(), ConvertDeclSpecToType(), and hasTypeSpecifier().
|
inline |
Definition at line 614 of file DeclSpec.h.
Referenced by CheckTypeSpec(), and ConvertDeclSpecToType().
|
inline |
Definition at line 618 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType().
|
inline |
Definition at line 605 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), and InventTemplateParameter().
|
inline |
Definition at line 606 of file DeclSpec.h.
|
inline |
Definition at line 565 of file DeclSpec.h.
Referenced by CheckTypeSpec(), clang::SemaCodeCompletion::CodeCompleteDeclSpec(), ConvertDeclSpecToType(), hasTypeSpecifier(), and SetTypeSpecSign().
|
inline |
Definition at line 615 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType().
|
inline |
Definition at line 568 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierDecltype(), clang::Sema::ActOnCXXNestedNameSpecifierIndexedPack(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnPseudoDestructorExpr(), clang::Sema::BuildMemInitializer(), CheckTypeSpec(), clang::SemaCodeCompletion::CodeCompleteDeclSpec(), clang::Sema::containsUnexpandedParameterPacks(), ConvertDeclSpecToType(), DiagnoseCountAttributedTypeInUnnamedAnon(), clang::Sema::FinalizeDeclaratorGroup(), clang::Sema::getDestructorTypeForDecltype(), GetDiagnosticTypeSpecifierID(), GetFullTypeForDeclarator(), hasTypeSpecifier(), isMissingDeclaratorOk(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Sema::ParseTypedefDecl(), and RebuildDeclaratorInCurrentInstantiation().
|
inline |
Definition at line 616 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierDecltype(), clang::Sema::ActOnPseudoDestructorExpr(), clang::Sema::BuildMemInitializer(), clang::Sema::CheckConversionDeclarator(), clang::Sema::CheckDestructorDeclarator(), ConvertDeclSpecToType(), CreateNewFunctionDecl(), GetDeclSpecTypeForDeclarator(), clang::Sema::getDestructorTypeForDecltype(), GetFullTypeForDeclarator(), InventTemplateParameter(), and RebuildDeclaratorInCurrentInstantiation().
|
inline |
Definition at line 620 of file DeclSpec.h.
References isDeclRep(), and isTypeRep().
Referenced by ConvertDeclSpecToType().
|
inline |
Definition at line 561 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), hasTypeSpecifier(), and SetTypeSpecWidth().
|
inline |
Definition at line 612 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType().
|
inline |
Definition at line 613 of file DeclSpec.h.
|
inline |
Definition at line 656 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFriendTypeDecl(), clang::Sema::BuildAnonymousStructOrUnion(), diagnoseRedundantReturnTypeQualifiers(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 705 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::CheckConstructorDeclarator(), CheckFriendSpec(), and clang::Sema::DiagnoseFunctionSpecifiers().
|
inline |
Definition at line 654 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFriendTypeDecl(), clang::Sema::BuildAnonymousStructOrUnion(), clang::Sema::CheckConstructorDeclarator(), clang::Sema::CheckDestructorDeclarator(), ConvertDeclSpecToType(), diagnoseAndRemoveTypeQualifiers(), and diagnoseRedundantReturnTypeQualifiers().
|
inline |
Definition at line 945 of file DeclSpec.h.
|
inline |
Definition at line 927 of file DeclSpec.h.
|
inline |
Definition at line 629 of file DeclSpec.h.
References TST_auto, TST_auto_type, and TST_decltype_auto.
Referenced by clang::Sema::ActOnCXXNew(), clang::Sema::canDelayFunctionBody(), clang::Sema::FinalizeDeclaratorGroup(), and GetFullTypeForDeclarator().
|
inline |
Definition at line 569 of file DeclSpec.h.
References TST_unspecified.
|
inline |
Definition at line 893 of file DeclSpec.h.
References getConstexprSpecifier(), and clang::Unspecified.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnTypedefDeclarator(), clang::Sema::canDelayFunctionBody(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 707 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::CheckConversionDeclarator(), CheckFriendSpec(), clang::Sema::DiagnoseFunctionSpecifiers(), getParsedSpecifiers(), and setFunctionSpecExplicit().
| bool DeclSpec::hasTagDefinition | ( | ) | const |
Definition at line 433 of file DeclSpec.cpp.
References clang::cast(), and getRepAsDecl().
Referenced by GetFullTypeForDeclarator().
|
inline |
Return true if any type-specifier has been found.
Definition at line 747 of file DeclSpec.h.
References getTypeSpecComplex(), getTypeSpecSign(), getTypeSpecType(), getTypeSpecWidth(), TSC_unspecified, TST_unspecified, and clang::Unspecified.
Referenced by clang::Sema::CheckConversionDeclarator(), clang::Sema::CheckDestructorDeclarator(), ConvertDeclSpecToType(), getParsedSpecifiers(), and isOmittedBlockReturnType().
|
inline |
Definition at line 579 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType().
Definition at line 497 of file DeclSpec.h.
References TST_class, TST_enum, TST_interface, TST_struct, and TST_union.
Referenced by clang::Sema::FinalizeDeclaratorGroup(), Finish(), getRepAsDecl(), getTypeSpecTypeNameLoc(), isMissingDeclaratorOk(), SetTypeSpecType(), SetTypeSpecType(), and UpdateDeclRep().
|
inline |
isEmpty - Return true if this declaration specifier is completely empty: no tokens were parsed in the production of it.
Definition at line 760 of file DeclSpec.h.
References getParsedSpecifiers(), and PQ_None.
Referenced by SetFriendSpec().
|
inline |
Definition at line 536 of file DeclSpec.h.
Referenced by getFunctionStorageClass(), clang::Sema::ParsedFreeStandingDeclSpec(), and StorageClassSpecToVarDeclStorageClass().
|
inline |
Definition at line 877 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnFriendFunctionDecl(), clang::Sema::ActOnFriendTypeDecl(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::CheckExplicitObjectMemberFunction(), CheckFriendSpec(), CreateNewFunctionDecl(), GetDeclSpecTypeForDeclarator(), GetFullTypeForDeclarator(), clang::Sema::HandleDeclarator(), clang::Sema::isDeclaratorFunctionLike(), clang::Declarator::isFirstDeclarationOfMember(), clang::Sema::ParsedFreeStandingDeclSpec(), and SetFriendSpec().
|
inline |
Definition at line 881 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFriendTypeDecl().
|
inline |
Definition at line 693 of file DeclSpec.h.
Referenced by clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::SemaObjC::ActOnObjCExceptionDecl(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnTypedefDeclarator(), clang::Sema::ActOnVariableDeclarator(), CreateNewFunctionDecl(), clang::Sema::HandleField(), clang::Sema::HandleMSProperty(), and clang::Sema::ParsedFreeStandingDeclSpec().
| bool DeclSpec::isMissingDeclaratorOk | ( | ) |
Checks if this DeclSpec can stand alone, without a Declarator.
Only tag declspecs can stand alone.
Definition at line 1684 of file DeclSpec.cpp.
References getRepAsDecl(), getTypeSpecType(), isDeclRep(), and SCS_typedef.
Referenced by clang::Sema::ParsedFreeStandingDeclSpec().
|
inline |
Definition at line 885 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::SemaObjC::ActOnIvar(), clang::Sema::ActOnParamDeclarator(), clang::Sema::ActOnVariableDeclarator(), clang::Sema::HandleField(), clang::Sema::HandleMSProperty(), clang::Sema::ParsedFreeStandingDeclSpec(), clang::Sema::ParseTypedefDecl(), and setModulePrivateSpec().
|
inline |
Definition at line 717 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::CheckMain(), and clang::Sema::DiagnoseFunctionSpecifiers().
|
inline |
Definition at line 670 of file DeclSpec.h.
References getOverflowBehaviorState(), and Unspecified.
Referenced by ConvertDeclSpecToType().
Definition at line 502 of file DeclSpec.h.
|
inline |
Definition at line 667 of file DeclSpec.h.
References getOverflowBehaviorState(), and Trap.
Referenced by HandleOverflowBehaviorAttr().
|
inline |
Definition at line 574 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType().
|
inline |
Definition at line 573 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType().
|
inline |
Definition at line 572 of file DeclSpec.h.
Referenced by clang::SemaCodeCompletion::CodeCompleteDeclSpec(), and ConvertDeclSpecToType().
|
inline |
Definition at line 576 of file DeclSpec.h.
References isTypeRep().
Referenced by getRepAsType(), getTypeSpecTypeNameLoc(), isTypeRep(), SetTypeSpecType(), SetTypeSpecType(), and UpdateTypeRep().
|
inline |
Definition at line 575 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), clang::Sema::FinalizeDeclaratorGroup(), GetDeclSpecTypeForDeclarator(), and clang::Parser::ParseTypeName().
|
inline |
Definition at line 577 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType().
|
inline |
Definition at line 578 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType().
|
inline |
Definition at line 704 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFunctionDeclarator(), clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::CheckConstructorDeclarator(), clang::Sema::CheckExplicitObjectMemberFunction(), CheckFriendSpec(), and clang::Sema::DiagnoseFunctionSpecifiers().
|
inline |
Definition at line 664 of file DeclSpec.h.
References getOverflowBehaviorState(), and Wrap.
Referenced by ConvertDeclSpecToType(), and HandleOverflowBehaviorAttr().
| bool DeclSpec::SetBitIntType | ( | SourceLocation | KWLoc, |
| Expr * | BitWidth, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 961 of file DeclSpec.cpp.
References ExprRep, getSpecifierName(), TST_bitint, TST_error, and TST_unspecified.
| bool DeclSpec::SetConstexprSpec | ( | ConstexprSpecKind | ConstexprKind, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 1141 of file DeclSpec.cpp.
References BadSpecifier(), getConstexprSpecifier(), and clang::Unspecified.
Referenced by addConstevalToLambdaDeclSpecifier(), and addConstexprToLambdaDeclSpecifier().
|
inline |
Definition at line 537 of file DeclSpec.h.
| bool DeclSpec::SetFriendSpec | ( | SourceLocation | Loc, |
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 1116 of file DeclSpec.cpp.
References isEmpty(), and isFriendSpecified().
| bool DeclSpec::setFunctionSpecExplicit | ( | SourceLocation | Loc, |
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| ExplicitSpecifier | ExplicitSpec, | ||
| SourceLocation | CloseParenLoc ) |
Definition at line 1082 of file DeclSpec.cpp.
References clang::ExplicitSpecifier::getExpr(), and hasExplicitSpecifier().
| bool DeclSpec::setFunctionSpecForceInline | ( | SourceLocation | Loc, |
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 1055 of file DeclSpec.cpp.
| bool DeclSpec::setFunctionSpecInline | ( | SourceLocation | Loc, |
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 1041 of file DeclSpec.cpp.
| bool DeclSpec::setFunctionSpecNoreturn | ( | SourceLocation | Loc, |
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 1101 of file DeclSpec.cpp.
| bool DeclSpec::setFunctionSpecVirtual | ( | SourceLocation | Loc, |
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 1067 of file DeclSpec.cpp.
| bool DeclSpec::setModulePrivateSpec | ( | SourceLocation | Loc, |
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 1129 of file DeclSpec.cpp.
References isModulePrivateSpecified().
|
inline |
Definition at line 950 of file DeclSpec.h.
| bool DeclSpec::SetOverflowBehavior | ( | OverflowBehaviorType::OverflowBehaviorKind | Kind, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 1022 of file DeclSpec.cpp.
References BadSpecifier(), getOverflowBehaviorState(), Trap, Unspecified, and Wrap.
| void DeclSpec::SetPackIndexingExpr | ( | SourceLocation | EllipsisLoc, |
| Expr * | Pack ) |
Definition at line 982 of file DeclSpec.cpp.
References TST_typename, and TST_typename_pack_indexing.
|
inline |
Definition at line 765 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFinishKNRParamDeclarations(), and clang::SemaObjC::actOnObjCTypeArgsOrProtocolQualifiers().
|
inline |
Definition at line 764 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFinishKNRParamDeclarations(), and clang::SemaObjC::actOnObjCTypeArgsOrProtocolQualifiers().
| bool DeclSpec::SetStorageClassSpec | ( | Sema & | S, |
| SCS | SC, | ||
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| const PrintingPolicy & | Policy ) |
These methods set the specified attribute of the DeclSpec and return false if there was no error.
If an error occurs (for example, if we tried to set "auto" on a spec with "extern" already set), they return true and set PrevSpec and DiagID such that Diag(Loc, DiagID) << PrevSpec; will yield a useful result.
TODO: use a more general approach that still allows these diagnostics to be ignored when desired.
Definition at line 631 of file DeclSpec.cpp.
References BadSpecifier(), clang::Sema::getLangOpts(), clang::LangOptions::getOpenCLCompatibleVersion(), clang::Sema::getOpenCLOptions(), getSpecifierName(), clang::OpenCLOptions::isAvailableOption(), isInvalid(), SCS_auto, SCS_extern, SCS_private_extern, SCS_register, SCS_static, SCS_typedef, SCS_unspecified, SetTypeSpecType(), TST_auto, and TST_unspecified.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), addStaticToLambdaDeclSpecifier(), clang::Sema::BuildAnonymousStructOrUnion(), and CheckTypeSpec().
| bool DeclSpec::SetStorageClassSpecThread | ( | TSCS | TSC, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 693 of file DeclSpec.cpp.
References BadSpecifier(), and TSCS_unspecified.
| bool DeclSpec::SetTypeAltiVecBool | ( | bool | isAltiVecBool, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 936 of file DeclSpec.cpp.
References getSpecifierName(), TST_error, and TST_unspecified.
| bool DeclSpec::SetTypeAltiVecPixel | ( | bool | isAltiVecPixel, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 919 of file DeclSpec.cpp.
References getSpecifierName(), TST_error, and TST_unspecified.
| bool DeclSpec::SetTypeAltiVecVector | ( | bool | isAltiVecVector, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 887 of file DeclSpec.cpp.
References getSpecifierName(), TST_error, and TST_unspecified.
|
inline |
Definition at line 627 of file DeclSpec.h.
| bool DeclSpec::SetTypePipe | ( | bool | isPipe, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 902 of file DeclSpec.cpp.
References getSpecifierName(), clang::Pipe, TST_error, and TST_unspecified.
| bool DeclSpec::SetTypeQual | ( | TQ | T, |
| SourceLocation | Loc ) |
Definition at line 1007 of file DeclSpec.cpp.
References TQ_atomic, TQ_const, TQ_restrict, TQ_unaligned, TQ_unspecified, and TQ_volatile.
Referenced by clang::Sema::ActOnCXXMemberDeclarator(), clang::DeclaratorChunk::getFunction(), getLambdaType(), and SetTypeQual().
| bool DeclSpec::SetTypeQual | ( | TQ | T, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| const LangOptions & | Lang ) |
Definition at line 991 of file DeclSpec.cpp.
References BadSpecifier(), and SetTypeQual().
| bool DeclSpec::SetTypeSpecComplex | ( | TSC | C, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 724 of file DeclSpec.cpp.
References BadSpecifier(), clang::C, and TSC_unspecified.
| bool DeclSpec::SetTypeSpecError | ( | ) |
| bool DeclSpec::SetTypeSpecSat | ( | SourceLocation | Loc, |
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 874 of file DeclSpec.cpp.
| bool DeclSpec::SetTypeSpecSign | ( | TypeSpecifierSign | S, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID ) |
Definition at line 734 of file DeclSpec.cpp.
References BadSpecifier(), getTypeSpecSign(), and clang::Unspecified.
| bool DeclSpec::SetTypeSpecType | ( | TST | T, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 849 of file DeclSpec.cpp.
References getSpecifierName(), isDeclRep(), isTypeRep(), TST_bool, TST_error, and TST_unspecified.
Referenced by clang::Sema::ActOnCXXForRangeIdentifier(), clang::Sema::ActOnFinishKNRParamDeclarations(), clang::SemaObjC::actOnObjCTypeArgsOrProtocolQualifiers(), clang::Sema::ImplicitlyDefineFunction(), SetStorageClassSpec(), SetTypeSpecType(), SetTypeSpecType(), SetTypeSpecType(), and SetTypeSpecType().
| bool DeclSpec::SetTypeSpecType | ( | TST | T, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| Decl * | Rep, | ||
| bool | Owned, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 807 of file DeclSpec.cpp.
References SetTypeSpecType().
| bool DeclSpec::SetTypeSpecType | ( | TST | T, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| Expr * | Rep, | ||
| const PrintingPolicy & | policy ) |
Definition at line 784 of file DeclSpec.cpp.
References ExprRep, getSpecifierName(), TST_error, and TST_unspecified.
| bool DeclSpec::SetTypeSpecType | ( | TST | T, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| ParsedType | Rep, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 743 of file DeclSpec.cpp.
References SetTypeSpecType().
| bool DeclSpec::SetTypeSpecType | ( | TST | T, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| TemplateIdAnnotation * | Rep, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 840 of file DeclSpec.cpp.
References SetTypeSpecType(), TemplateIdRep, TST_auto, and TST_decltype_auto.
|
inline |
Definition at line 794 of file DeclSpec.h.
References clang::ActionResult< PtrTy, Compress >::get(), clang::ActionResult< PtrTy, Compress >::isInvalid(), SetTypeSpecError(), and SetTypeSpecType().
| bool DeclSpec::SetTypeSpecType | ( | TST | T, |
| SourceLocation | TagKwLoc, | ||
| SourceLocation | TagNameLoc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| Decl * | Rep, | ||
| bool | Owned, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 815 of file DeclSpec.cpp.
References DeclRep, getSpecifierName(), isDeclRep(), TST_error, and TST_unspecified.
| bool DeclSpec::SetTypeSpecType | ( | TST | T, |
| SourceLocation | TagKwLoc, | ||
| SourceLocation | TagNameLoc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| ParsedType | Rep, | ||
| const PrintingPolicy & | Policy ) |
Definition at line 751 of file DeclSpec.cpp.
References clang::cast(), clang::OpaquePtr< PtrTy >::get(), getSpecifierName(), isTypeRep(), clang::OpaquePtr< QualType >::make(), TST_error, TST_typename_pack_indexing, TST_unspecified, and TypeRep.
| bool DeclSpec::SetTypeSpecWidth | ( | TypeSpecifierWidth | W, |
| SourceLocation | Loc, | ||
| const char *& | PrevSpec, | ||
| unsigned & | DiagID, | ||
| const PrintingPolicy & | Policy ) |
These methods set the specified attribute of the DeclSpec, but return true and ignore the request if invalid (e.g.
"extern" then "auto" is specified).
Definition at line 707 of file DeclSpec.cpp.
References BadSpecifier(), getTypeSpecWidth(), clang::Long, clang::LongLong, and clang::Unspecified.
|
inline |
Definition at line 932 of file DeclSpec.h.
|
inline |
Definition at line 840 of file DeclSpec.h.
References DeclRep, and isDeclRep().
|
inline |
Definition at line 848 of file DeclSpec.h.
References ExprRep.
Referenced by RebuildDeclaratorInCurrentInstantiation().
|
inline |
Definition at line 844 of file DeclSpec.h.
References isTypeRep(), and TypeRep.
Referenced by RebuildDeclaratorInCurrentInstantiation().
| Decl* clang::DeclSpec::DeclRep |
Definition at line 399 of file DeclSpec.h.
Referenced by getRepAsDecl(), SetTypeSpecType(), and UpdateDeclRep().
| Expr* clang::DeclSpec::ExprRep |
Definition at line 400 of file DeclSpec.h.
Referenced by getRepAsExpr(), SetBitIntType(), SetTypeSpecType(), and UpdateExprRep().
| TemplateIdAnnotation* clang::DeclSpec::TemplateIdRep |
Definition at line 401 of file DeclSpec.h.
Referenced by getRepAsTemplateId(), and SetTypeSpecType().
|
static |
Definition at line 239 of file DeclSpec.h.
Referenced by getSpecifierName().
|
static |
Definition at line 241 of file DeclSpec.h.
Referenced by getSpecifierName().
|
static |
Definition at line 240 of file DeclSpec.h.
Referenced by clang::Sema::ActOnVariableDeclarator(), and getSpecifierName().
|
static |
Definition at line 238 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ClearStorageClassSpecs(), DeclSpec(), getParsedSpecifiers(), getSpecifierName(), and SetStorageClassSpecThread().
|
static |
Definition at line 266 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 294 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), getSpecifierName(), and RebuildDeclaratorInCurrentInstantiation().
|
static |
Definition at line 291 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXForRangeIdentifier(), clang::Sema::ActOnDecompositionDeclarator(), CheckTypeSpec(), ConvertDeclSpecToType(), GetFullTypeForDeclarator(), getSpecifierName(), hasAutoTypeSpec(), SetStorageClassSpec(), and SetTypeSpecType().
|
static |
Definition at line 292 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), getSpecifierName(), and hasAutoTypeSpec().
|
static |
Definition at line 262 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 260 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), getSpecifierName(), and SetBitIntType().
|
static |
Definition at line 270 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), getSpecifierName(), and SetTypeSpecType().
|
static |
Definition at line 253 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 256 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 257 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 255 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 278 of file DeclSpec.h.
Referenced by clang::SemaCodeCompletion::CodeCompleteDeclSpec(), clang::SemaCodeCompletion::CodeCompleteTag(), ConvertDeclSpecToType(), GetDiagnosticTypeSpecifierID(), getSpecifierName(), isDeclRep(), clang::Sema::isTagName(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
static |
Definition at line 273 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 271 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 272 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 284 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierDecltype(), clang::Sema::ActOnPseudoDestructorExpr(), ConvertDeclSpecToType(), clang::Sema::getDestructorTypeForDecltype(), getSpecifierName(), and RebuildDeclaratorInCurrentInstantiation().
|
static |
Definition at line 285 of file DeclSpec.h.
Referenced by clang::Sema::ActOnPseudoDestructorExpr(), CheckTypeSpec(), ConvertDeclSpecToType(), clang::Sema::getDestructorTypeForDecltype(), getSpecifierName(), hasAutoTypeSpec(), and SetTypeSpecType().
|
static |
Definition at line 264 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 274 of file DeclSpec.h.
Referenced by clang::SemaCodeCompletion::CodeCompleteTag(), ConvertDeclSpecToType(), GetDiagnosticTypeSpecifierID(), getSpecifierName(), isDeclRep(), clang::Sema::isTagName(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
static |
Definition at line 301 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierDecltype(), clang::Sema::ActOnCXXNestedNameSpecifierIndexedPack(), clang::Sema::ActOnPseudoDestructorExpr(), CheckTypeSpec(), ConvertDeclSpecToType(), clang::Sema::getDestructorTypeForDecltype(), getSpecifierName(), clang::Declarator::isInvalidType(), clang::Sema::ParsedFreeStandingDeclSpec(), SetBitIntType(), SetTypeAltiVecBool(), SetTypeAltiVecPixel(), SetTypeAltiVecVector(), SetTypePipe(), SetTypeSpecError(), SetTypeSpecType(), SetTypeSpecType(), SetTypeSpecType(), and SetTypeSpecType().
|
static |
Definition at line 263 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 268 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 265 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 267 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 261 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 269 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 258 of file DeclSpec.h.
Referenced by clang::Sema::ActOnFinishKNRParamDeclarations(), CheckTypeSpec(), ConvertDeclSpecToType(), getSpecifierName(), and clang::Sema::ImplicitlyDefineFunction().
|
static |
Definition at line 259 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 277 of file DeclSpec.h.
Referenced by clang::SemaCodeCompletion::CodeCompleteTag(), ConvertDeclSpecToType(), GetDiagnosticTypeSpecifierID(), getSpecifierName(), isDeclRep(), clang::Sema::isTagName(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
static |
Definition at line 276 of file DeclSpec.h.
Referenced by clang::SemaCodeCompletion::CodeCompleteDeclSpec(), clang::SemaCodeCompletion::CodeCompleteTag(), ConvertDeclSpecToType(), DiagnoseCountAttributedTypeInUnnamedAnon(), GetDiagnosticTypeSpecifierID(), getSpecifierName(), isDeclRep(), clang::Sema::isTagName(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
static |
Definition at line 279 of file DeclSpec.h.
Referenced by clang::SemaObjC::actOnObjCTypeArgsOrProtocolQualifiers(), clang::SemaCodeCompletion::CodeCompleteDeclSpec(), ConvertDeclSpecToType(), getSpecifierName(), clang::Sema::ParsedFreeStandingDeclSpec(), RebuildDeclaratorInCurrentInstantiation(), and SetPackIndexingExpr().
|
static |
Definition at line 286 of file DeclSpec.h.
Referenced by clang::Sema::ActOnCXXNestedNameSpecifierIndexedPack(), clang::Sema::ActOnPseudoDestructorExpr(), ConvertDeclSpecToType(), getPackIndexingExpr(), getSpecifierName(), SetPackIndexingExpr(), and SetTypeSpecType().
|
static |
Definition at line 283 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), getSpecifierName(), and RebuildDeclaratorInCurrentInstantiation().
|
static |
Definition at line 282 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), getSpecifierName(), and RebuildDeclaratorInCurrentInstantiation().
|
static |
Definition at line 281 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), getSpecifierName(), and RebuildDeclaratorInCurrentInstantiation().
|
static |
Definition at line 280 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), getSpecifierName(), and RebuildDeclaratorInCurrentInstantiation().
|
static |
Definition at line 275 of file DeclSpec.h.
Referenced by clang::SemaCodeCompletion::CodeCompleteTag(), ConvertDeclSpecToType(), GetDiagnosticTypeSpecifierID(), getSpecifierName(), isDeclRep(), clang::Sema::isTagName(), and clang::Sema::ParsedFreeStandingDeclSpec().
|
static |
Definition at line 293 of file DeclSpec.h.
Referenced by ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 251 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ClearTypeSpecType(), ConvertDeclSpecToType(), DeclSpec(), getSpecifierName(), hasConflictingTypeSpecifier(), hasTypeSpecifier(), clang::Sema::isTagName(), SetBitIntType(), SetStorageClassSpec(), SetTypeAltiVecBool(), SetTypeAltiVecPixel(), SetTypeAltiVecVector(), SetTypePipe(), SetTypeSpecType(), SetTypeSpecType(), SetTypeSpecType(), and SetTypeSpecType().
|
static |
Definition at line 252 of file DeclSpec.h.
Referenced by clang::Sema::ActOnParamDeclarator(), ConvertDeclSpecToType(), and getSpecifierName().
|
static |
Definition at line 254 of file DeclSpec.h.
Referenced by CheckTypeSpec(), ConvertDeclSpecToType(), and getSpecifierName().
| UnionParsedType clang::DeclSpec::TypeRep |
Definition at line 398 of file DeclSpec.h.
Referenced by getRepAsType(), SetTypeSpecType(), and UpdateTypeRep().