/external/clang/lib/Sema/ |
D | SemaType.cpp | 48 static bool isOmittedBlockReturnType(const Declarator &D) { in isOmittedBlockReturnType() 49 if (D.getContext() != Declarator::BlockLiteralContext || in isOmittedBlockReturnType() 145 Declarator &declarator; 166 TypeProcessingState(Sema &sema, Declarator &declarator) in TypeProcessingState() 175 Declarator &getDeclarator() const { in getDeclarator() 325 static DeclaratorChunk *maybeMovePastReturnType(Declarator &declarator, in maybeMovePastReturnType() 396 Declarator &declarator = state.getDeclarator(); in distributeObjCPointerTypeAttr() 454 Declarator &declarator = state.getDeclarator(); in distributeObjCPointerTypeAttrFromDeclarator() 516 Declarator &declarator = state.getDeclarator(); in distributeFunctionTypeAttr() 550 Declarator &declarator = state.getDeclarator(); in distributeFunctionTypeAttrToInnermost() [all …]
|
D | DeclSpec.cpp | 178 Declarator &TheDeclarator, in getFunction() 261 bool Declarator::isDeclarationOfFunction() const { in isDeclarationOfFunction() 341 bool Declarator::isStaticMember() { in isStaticMember() 349 bool Declarator::isCtorOrDtor() { in isCtorOrDtor()
|
D | SemaDecl.cpp | 4422 Declarator Dc(DS, Declarator::MemberContext); in BuildAnonymousStructOrUnion() 4519 Declarator Dc(DS, Declarator::TypeNameContext); in BuildMicrosoftCAnonymousStruct() 4561 DeclarationNameInfo Sema::GetNameForDeclarator(Declarator &D) { in GetNameForDeclarator() 4719 static bool RebuildDeclaratorInCurrentInstantiation(Sema &S, Declarator &D, in RebuildDeclaratorInCurrentInstantiation() 4788 Decl *Sema::ActOnDeclarator(Scope *S, Declarator &D) { in ActOnDeclarator() 4916 NamedDecl *Sema::HandleDeclarator(Scope *S, Declarator &D, in HandleDeclarator() 5309 Sema::ActOnTypedefDeclarator(Scope* S, Declarator& D, DeclContext* DC, in ActOnTypedefDeclarator() 5481 static void SetNestedNameSpecifier(DeclaratorDecl *DD, Declarator &D) { in SetNestedNameSpecifier() 5797 static bool hasParsedAttr(Scope *S, const Declarator &PD, in hasParsedAttr() 5849 Sema::ActOnVariableDeclarator(Scope *S, Declarator &D, DeclContext *DC, in ActOnVariableDeclarator() [all …]
|
D | SemaTemplateInstantiate.cpp | 747 TypeSourceInfo *Declarator, 949 TypeSourceInfo *Declarator, in RebuildExceptionDecl() argument 953 VarDecl *Var = inherited::RebuildExceptionDecl(ExceptionDecl, Declarator, in RebuildExceptionDecl()
|
D | SemaTemplateVariadic.cpp | 699 bool Sema::containsUnexpandedParameterPacks(Declarator &D) { in containsUnexpandedParameterPacks()
|
D | SemaDeclCXX.cpp | 374 void Sema::CheckExtraCXXDefaultArguments(Declarator &D) { in CheckExtraCXXDefaultArguments() 2005 Sema::ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS, Declarator &D, in ActOnCXXMemberDeclarator() 6806 QualType Sema::CheckConstructorDeclarator(Declarator &D, QualType R, in CheckConstructorDeclarator() 6953 QualType Sema::CheckDestructorDeclarator(Declarator &D, QualType R, in CheckDestructorDeclarator() 7086 void Sema::CheckConversionDeclarator(Declarator &D, QualType &R, in CheckConversionDeclarator() 12312 Decl *Sema::ActOnExceptionDeclarator(Scope *S, Declarator &D) { in ActOnExceptionDeclarator() 12638 Declarator TheDeclarator(DS, Declarator::MemberContext); in ActOnFriendTypeDecl() 12696 NamedDecl *Sema::ActOnFriendFunctionDecl(Scope *S, Declarator &D, in ActOnFriendFunctionDecl() 13354 DeclResult Sema::ActOnCXXConditionDeclaration(Scope *S, Declarator &D) { in ActOnCXXConditionDeclaration() 13951 Declarator &D, Expr *BitWidth, in HandleMSProperty()
|
D | SemaExceptionSpec.cpp | 42 bool Sema::isLibstdcxxEagerExceptionSpecHack(const Declarator &D) { in isLibstdcxxEagerExceptionSpecHack()
|
D | SemaDeclObjC.cpp | 1494 Declarator D(DS, Declarator::TypeNameContext); in actOnObjCTypeArgsOrProtocolQualifiers() 4603 Decl *Sema::ActOnObjCExceptionDecl(Scope *S, Declarator &D) { in ActOnObjCExceptionDecl()
|
D | SemaLambda.cpp | 805 Declarator &ParamInfo, in ActOnStartOfLambdaDefinition()
|
D | SemaTemplate.cpp | 676 Decl *Sema::ActOnNonTypeTemplateParameter(Scope *S, Declarator &D, in ActOnNonTypeTemplateParameter() 2522 Scope *S, Declarator &D, TypeSourceInfo *DI, SourceLocation TemplateKWLoc, in ActOnVarTemplateSpecialization() 6579 Declarator &D) { in ActOnTemplateDeclarator() 7726 Declarator &D) { in ActOnExplicitInstantiation()
|
/external/clang/include/clang/Basic/ |
D | DeclNodes.td | 41 def Declarator : DDecl<Value, 1>; 42 def Field : DDecl<Declarator>; 45 def MSProperty : DDecl<Declarator>; 46 def Function : DDecl<Declarator>, DeclContext; 51 def Var : DDecl<Declarator>; 58 def NonTypeTemplateParm : DDecl<Declarator>;
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 1253 bool isStartOfFunctionDefinition(const ParsingDeclarator &Declarator); 1266 void ParseKNRParamDeclarations(Declarator &D); 1384 ParsedType ParseObjCTypeName(ObjCDeclSpec &DS, Declarator::TheContext Ctx, 1593 Declarator &D); 1594 void ParseDirectNewDeclarator(Declarator &D); 1840 Decl *ParseDeclarationAfterDeclarator(Declarator &D, 1842 bool ParseAsmAttributesAfterDeclarator(Declarator &D); 1844 Declarator &D, 1874 Declarator::TheContext Context); 2070 Declarator::TheContext Context [all …]
|
/external/clang/lib/Parse/ |
D | ParseDecl.cpp | 45 Declarator::TheContext Context, in ParseTypeName() 62 Declarator DeclaratorInfo(DS, Context); in ParseTypeName() 127 Declarator *D) { in ParseGNUAttributes() 342 Declarator *D) { in ParseGNUAttributeArgs() 1600 return Context == Declarator::MemberContext && getLangOpts().CPlusPlus11 && in MightBeDeclarator() 1604 return Context == Declarator::MemberContext || getLangOpts().CPlusPlus; in MightBeDeclarator() 1630 return Context == Declarator::MemberContext || in MightBeDeclarator() 1631 (getLangOpts().CPlusPlus && Context == Declarator::FileContext); in MightBeDeclarator() 1734 ParsingDeclarator D(*this, DS, static_cast<Declarator::TheContext>(Context)); in ParseDeclGroup() 1781 if (Context == Declarator::FileContext) { in ParseDeclGroup() [all …]
|
D | RAIIObjectsForParser.h | 200 class ParsingDeclarator : public Declarator { 205 : Declarator(DS, C), ParsingRAII(P, &DS.getDelayedDiagnosticPool()) { in ParsingDeclarator() 209 return static_cast<const ParsingDeclSpec&>(Declarator::getDeclSpec()); in getDeclSpec() 217 Declarator::clear(); in clear()
|
D | ParseObjc.cpp | 394 Declarator &D, in addContextSensitiveTypeNullability() 1151 Declarator::TheContext Context) { in ParseObjCTypeQualifierList() 1152 assert(Context == Declarator::ObjCParameterContext || in ParseObjCTypeQualifierList() 1153 Context == Declarator::ObjCResultContext); in ParseObjCTypeQualifierList() 1158 Context == Declarator::ObjCParameterContext); in ParseObjCTypeQualifierList() 1235 Declarator &D) { in takeDeclAttributes() 1253 Declarator::TheContext context, in ParseObjCTypeName() 1255 assert(context == Declarator::ObjCParameterContext || in ParseObjCTypeName() 1256 context == Declarator::ObjCResultContext); in ParseObjCTypeName() 1258 (context == Declarator::ObjCParameterContext)); in ParseObjCTypeName() [all …]
|
D | Parser.cpp | 750 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration() 760 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration() 771 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration() 780 return ParseDeclaration(Declarator::FileContext, DeclEnd, attrs); in ParseExternalDeclaration() 795 ParseExplicitInstantiation(Declarator::FileContext, in ParseExternalDeclaration() 837 bool Parser::isStartOfFunctionDefinition(const ParsingDeclarator &Declarator) { in isStartOfFunctionDefinition() argument 838 assert(Declarator.isFunctionDeclarator() && "Isn't a function declarator"); in isStartOfFunctionDefinition() 844 Declarator.getFunctionTypeInfo().isKNRPrototype()) in isStartOfFunctionDefinition() 936 Decl *TheDecl = ParseLinkage(DS, Declarator::FileContext); in ParseDeclOrFunctionDefInternal() 940 return ParseDeclGroup(DS, Declarator::FileContext); in ParseDeclOrFunctionDefInternal() [all …]
|
D | ParseTemplate.cpp | 190 if (Context == Declarator::MemberContext) { in ParseSingleDeclarationAfterTemplate() 234 ParsingDeclarator DeclaratorInfo(*this, DS, (Declarator::TheContext)Context); in ParseSingleDeclarationAfterTemplate() 255 if (Context != Declarator::FileContext) { in ParseSingleDeclarationAfterTemplate() 546 Declarator::TemplateTypeArgContext).get(); in ParseTypeParameter() 678 Declarator ParamDecl(DS, Declarator::TemplateParamContext); in ParseNonTypeTemplateParameter() 729 Declarator &D) { in DiagnoseMisplacedEllipsisInDeclarator() 1195 Declarator::TemplateTypeArgContext); in ParseTemplateArgument()
|
D | ParseExprCXX.cpp | 1125 Declarator D(DS, Declarator::LambdaExprContext); in ParseLambdaExpressionAfterIntroducer() 1366 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCXXCasts() 1671 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCXXTypeConstructExpression() 1773 Declarator::InitStmtContext, DeclEnd, attrs, /*RequireSemi=*/true); in ParseCXXCondition() 1789 Declarator DeclaratorInfo(DS, Declarator::ConditionContext); in ParseCXXCondition() 2417 Declarator D(DS, Declarator::ConversionIdContext); in ParseUnqualifiedIdOperator() 2707 Declarator DeclaratorInfo(DS, Declarator::CXXNewContext); in ParseCXXNewExpression() 2819 void Parser::ParseDirectNewDeclarator(Declarator &D) { in ParseDirectNewDeclarator() 2869 Declarator &D) { in ParseExpressionListOrTypeId() 3183 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCXXAmbiguousParenExpression()
|
D | ParseExpr.cpp | 939 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCastExpression() 1146 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseCastExpression() 1755 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseExprAfterUnaryExprOrTypeTrait() 2310 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseParenExpression() 2744 Declarator DeclaratorInfo(DS, Declarator::BlockLiteralContext); in ParseBlockId() 2782 Declarator ParamInfo(DS, Declarator::BlockLiteralContext); in ParseBlockLiteralExpression()
|
D | ParseDeclCXX.cpp | 544 if (getLangOpts().CPlusPlus11 && Context == Declarator::MemberContext && in ParseUsingDeclaration() 625 ? Declarator::AliasTemplateContext in ParseUsingDeclaration() 626 : Declarator::AliasDeclContext, in ParseUsingDeclaration() 963 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier() 1063 Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); in ParseBaseTypeSpecifier() 1963 void Parser::HandleMemberFunctionDeclDelays(Declarator& DeclaratorInfo, in HandleMemberFunctionDeclDelays() 2092 Declarator &DeclaratorInfo, VirtSpecifiers &VS, ExprResult &BitfieldSize, in ParseCXXMemberDeclaratorBeforeInitializer() 2163 Declarator &D, in MaybeParseAndDiagnoseDeclSpecAfterCXX11VirtSpecifierSeq() 2347 Declarator::MemberContext, DeclEnd, AS, AccessAttrs))); in ParseCXXClassMemberDeclaration() 2384 Declarator::MemberContext, TemplateInfo, UsingLoc, DeclEnd, AS))); in ParseCXXClassMemberDeclaration() [all …]
|
D | ParseStmt.cpp | 215 DeclGroupPtrTy Decl = ParseDeclaration(Declarator::BlockContext, in ParseStatementOrDeclarationAfterAttributes() 1008 DeclGroupPtrTy Res = ParseDeclaration(Declarator::BlockContext, DeclEnd, in ParseCompoundStatementBody() 1613 Declarator::ForContext, DeclEnd, attrs, false, in ParseForStatement() 2162 Declarator ExDecl(DS, Declarator::CXXCatchContext); in ParseCXXCatchBlock()
|
D | ParseOpenMP.cpp | 239 TypeResult TR = ParseTypeName(&Range, Declarator::PrototypeContext, AS); in ParseOpenMPDeclareReductionDirective()
|
/external/clang/include/clang/AST/ |
D | TemplateBase.h | 383 TypeSourceInfo *Declarator; member 389 TemplateArgumentLocInfo(TypeSourceInfo *TInfo) : Declarator(TInfo) {} in TemplateArgumentLocInfo() 404 return Declarator; in getAsTypeSourceInfo()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1295 TypeSourceInfo *GetTypeForDeclarator(Declarator &D, Scope *S); 1296 TypeSourceInfo *GetTypeForDeclaratorCast(Declarator &D, QualType FromTy); 1297 TypeSourceInfo *GetTypeSourceInfoForDeclarator(Declarator &D, QualType T, 1302 DeclarationNameInfo GetNameForDeclarator(Declarator &D); 1333 TypeResult ActOnTypeName(Scope *S, Declarator &D); 1668 Decl *ActOnDeclarator(Scope *S, Declarator &D); 1670 NamedDecl *HandleDeclarator(Scope *S, Declarator &D, 1706 NamedDecl* ActOnTypedefDeclarator(Scope* S, Declarator& D, DeclContext* DC, 1711 NamedDecl *ActOnVariableDeclarator(Scope *S, Declarator &D, DeclContext *DC, 1722 NamedDecl* ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC, [all …]
|
D | DeclSpec.h | 48 class Declarator; variable 1548 Declarator &TheDeclarator, 1624 class Declarator { 1714 Declarator(const DeclSpec &ds, TheContext C) in Declarator() function 1724 ~Declarator() { in ~Declarator() 2107 return const_cast<Declarator*>(this)->getFunctionTypeInfo(); in getFunctionTypeInfo() 2269 Declarator D; 2272 : D(DS, Declarator::MemberContext), BitfieldSize(nullptr) { } in FieldDeclarator()
|