Home
last modified time | relevance | path

Searched refs:DeclaratorChunk (Results 1 – 18 of 18) sorted by relevance

/external/clang/include/clang/Sema/
DDeclSpec.h1082 struct DeclaratorChunk { struct
1424 case DeclaratorChunk::Function: return Fun.destroy(); in destroy() argument
1425 case DeclaratorChunk::Pointer: return Ptr.destroy(); in destroy()
1426 case DeclaratorChunk::BlockPointer: return Cls.destroy(); in destroy()
1427 case DeclaratorChunk::Reference: return Ref.destroy(); in destroy()
1428 case DeclaratorChunk::Array: return Arr.destroy(); in destroy()
1429 case DeclaratorChunk::MemberPointer: return Mem.destroy(); in destroy()
1430 case DeclaratorChunk::Paren: return; in destroy()
1445 static DeclaratorChunk getPointer(unsigned TypeQuals, SourceLocation Loc, in getPointer() argument
1450 DeclaratorChunk I; in getPointer()
[all …]
DSemaInternal.h30 FTIHasSingleVoidParameter(const DeclaratorChunk::FunctionTypeInfo &FTI) { in FTIHasSingleVoidParameter()
37 FTIHasNonVoidParameters(const DeclaratorChunk::FunctionTypeInfo &FTI) { in FTIHasNonVoidParameters()
DSema.h7381 DeclaratorChunk::ParamInfo *CParamInfo, unsigned CNumArgs, // c-style args
/external/clang/lib/Sema/
DSemaType.cpp57 D.getTypeObject(0).Kind == DeclaratorChunk::Function) in isOmittedBlockReturnType()
318 static DeclaratorChunk *maybeMovePastReturnType(Declarator &declarator, in maybeMovePastReturnType()
323 DeclaratorChunk *result = nullptr; in maybeMovePastReturnType()
327 DeclaratorChunk &fnChunk = declarator.getTypeObject(i-1); in maybeMovePastReturnType()
329 case DeclaratorChunk::Paren: in maybeMovePastReturnType()
333 case DeclaratorChunk::Pointer: in maybeMovePastReturnType()
334 case DeclaratorChunk::BlockPointer: in maybeMovePastReturnType()
335 case DeclaratorChunk::Array: in maybeMovePastReturnType()
336 case DeclaratorChunk::Reference: in maybeMovePastReturnType()
337 case DeclaratorChunk::MemberPointer: in maybeMovePastReturnType()
[all …]
DDeclSpec.cpp152 DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, in getFunction()
183 DeclaratorChunk I; in getFunction()
229 I.Fun.Params = new DeclaratorChunk::ParamInfo[NumParams]; in getFunction()
242 I.Fun.Exceptions = new DeclaratorChunk::TypeAndRange[NumExceptions]; in getFunction()
264 case DeclaratorChunk::Function: in isDeclarationOfFunction()
266 case DeclaratorChunk::Paren: in isDeclarationOfFunction()
268 case DeclaratorChunk::Pointer: in isDeclarationOfFunction()
269 case DeclaratorChunk::Reference: in isDeclarationOfFunction()
270 case DeclaratorChunk::Array: in isDeclarationOfFunction()
271 case DeclaratorChunk::BlockPointer: in isDeclarationOfFunction()
[all …]
DSemaTemplateVariadic.cpp748 const DeclaratorChunk &Chunk = D.getTypeObject(I); in containsUnexpandedParameterPacks()
750 case DeclaratorChunk::Pointer: in containsUnexpandedParameterPacks()
751 case DeclaratorChunk::Reference: in containsUnexpandedParameterPacks()
752 case DeclaratorChunk::Paren: in containsUnexpandedParameterPacks()
753 case DeclaratorChunk::BlockPointer: in containsUnexpandedParameterPacks()
757 case DeclaratorChunk::Array: in containsUnexpandedParameterPacks()
762 case DeclaratorChunk::Function: in containsUnexpandedParameterPacks()
788 case DeclaratorChunk::MemberPointer: in containsUnexpandedParameterPacks()
DSemaDeclCXX.cpp384 DeclaratorChunk &chunk = D.getTypeObject(i); in CheckExtraCXXDefaultArguments()
385 if (chunk.Kind == DeclaratorChunk::Function) { in CheckExtraCXXDefaultArguments()
414 } else if (chunk.Kind != DeclaratorChunk::Paren) { in CheckExtraCXXDefaultArguments()
6677 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckConstructorDeclarator()
6848 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckDestructorDeclarator()
6981 case DeclaratorChunk::Function: in CheckConversionDeclarator()
6992 case DeclaratorChunk::Array: in CheckConversionDeclarator()
6997 case DeclaratorChunk::Pointer: in CheckConversionDeclarator()
6998 case DeclaratorChunk::BlockPointer: in CheckConversionDeclarator()
6999 case DeclaratorChunk::Reference: in CheckConversionDeclarator()
[all …]
DSemaExprCXX.cpp1175 D.getTypeObject(0).Kind == DeclaratorChunk::Array) { in ActOnCXXNew()
1176 DeclaratorChunk &Chunk = D.getTypeObject(0); in ActOnCXXNew()
1194 if (D.getTypeObject(I).Kind != DeclaratorChunk::Array) in ActOnCXXNew()
1197 DeclaratorChunk::ArrayTypeInfo &Array = D.getTypeObject(I).Arr; in ActOnCXXNew()
DSemaLambda.cpp855 DeclaratorChunk::FunctionTypeInfo &FTI = ParamInfo.getFunctionTypeInfo(); in ActOnStartOfLambdaDefinition()
DSemaDecl.cpp4640 DeclaratorChunk &Chunk = D.getTypeObject(I); in RebuildDeclaratorInCurrentInstantiation()
4645 if (Chunk.Kind != DeclaratorChunk::MemberPointer) in RebuildDeclaratorInCurrentInstantiation()
7812 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFunctionDeclarator()
9933 D.AddTypeInfo(DeclaratorChunk::getReference(0, IdentLoc, /*lvalue*/false), in ActOnCXXForRangeIdentifier()
10627 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFinishKNRParamDeclarations()
10996 if (Outer.Kind == DeclaratorChunk::Function && in canDelayFunctionBody()
11366 D.AddTypeInfo(DeclaratorChunk::getFunction(/*HasProto=*/false, in ImplicitlyDefineFunction()
DSemaDeclObjC.cpp1492 D.AddTypeInfo(DeclaratorChunk::getPointer(/*typeQuals=*/0, starLoc, in actOnObjCTypeArgsOrProtocolQualifiers()
4139 DeclaratorChunk::ParamInfo *CParamInfo, unsigned CNumArgs, // c-style args in ActOnMethodDeclaration()
/external/clang/lib/Parse/
DParseDecl.cpp371 DeclaratorChunk::FunctionTypeInfo FTI = D->getFunctionTypeInfo(); in ParseGNUAttributeArgs()
4935 D.AddTypeInfo(DeclaratorChunk::getMemberPointer(SS,DS.getTypeQualifiers(), in ParseDeclaratorInternal()
4973 D.AddTypeInfo(DeclaratorChunk::getPointer(DS.getTypeQualifiers(), Loc, in ParseDeclaratorInternal()
4982 D.AddTypeInfo(DeclaratorChunk::getBlockPointer(DS.getTypeQualifiers(), in ParseDeclaratorInternal()
5022 DeclaratorChunk& InnerChunk = D.getTypeObject(D.getNumTypeObjects() - 1); in ParseDeclaratorInternal()
5023 if (InnerChunk.Kind == DeclaratorChunk::Reference) { in ParseDeclaratorInternal()
5038 D.AddTypeInfo(DeclaratorChunk::getReference(DS.getTypeQualifiers(), Loc, in ParseDeclaratorInternal()
5416 D.AddTypeInfo(DeclaratorChunk::getParen(T.getOpenLocation(), in ParseParenDeclarator()
5478 SmallVector<DeclaratorChunk::ParamInfo, 16> ParamInfo; in ParseFunctionDeclarator()
5620 D.AddTypeInfo(DeclaratorChunk::getFunction(HasProto, in ParseFunctionDeclarator()
[all …]
DParseExprCXX.cpp1080 SmallVector<DeclaratorChunk::ParamInfo, 16> ParamInfo; in ParseLambdaExpressionAfterIntroducer()
1142 D.AddTypeInfo(DeclaratorChunk::getFunction(/*hasProto=*/true, in ParseLambdaExpressionAfterIntroducer()
1207 D.AddTypeInfo(DeclaratorChunk::getFunction(/*hasProto=*/true, in ParseLambdaExpressionAfterIntroducer()
2769 D.AddTypeInfo(DeclaratorChunk::getArray(0, in ParseDirectNewDeclarator()
DParser.cpp966 const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseFunctionDefinition()
1176 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseKNRParamDeclarations()
DParseObjc.cpp411 DeclaratorChunk &chunk = D.getTypeObject(0); in addContextSensitiveTypeNullability()
1403 SmallVector<DeclaratorChunk::ParamInfo, 8> CParamInfo; in ParseObjCMethodDecl()
1524 CParamInfo.push_back(DeclaratorChunk::ParamInfo(ParmII, in ParseObjCMethodDecl()
DParseExpr.cpp2767 ParamInfo.AddTypeInfo(DeclaratorChunk::getFunction(/*HasProto=*/true, in ParseBlockLiteralExpression()
DParseDeclCXX.cpp1950 DeclaratorChunk::FunctionTypeInfo &FTI in HandleMemberFunctionDeclDelays()
/external/clang/include/clang/Parse/
DParser.h2312 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo);
2316 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo,