Home
last modified time | relevance | path

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

12

/external/clang/lib/Sema/
DSemaType.cpp57 D.getTypeObject(0).Kind == DeclaratorChunk::Function) in isOmittedBlockReturnType()
325 static DeclaratorChunk *maybeMovePastReturnType(Declarator &declarator, in maybeMovePastReturnType()
330 DeclaratorChunk *result = nullptr; in maybeMovePastReturnType()
334 DeclaratorChunk &fnChunk = declarator.getTypeObject(i-1); in maybeMovePastReturnType()
336 case DeclaratorChunk::Paren: in maybeMovePastReturnType()
340 case DeclaratorChunk::Pointer: in maybeMovePastReturnType()
341 case DeclaratorChunk::BlockPointer: in maybeMovePastReturnType()
342 case DeclaratorChunk::Array: in maybeMovePastReturnType()
343 case DeclaratorChunk::Reference: in maybeMovePastReturnType()
344 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.cpp751 const DeclaratorChunk &Chunk = D.getTypeObject(I); in containsUnexpandedParameterPacks()
753 case DeclaratorChunk::Pointer: in containsUnexpandedParameterPacks()
754 case DeclaratorChunk::Reference: in containsUnexpandedParameterPacks()
755 case DeclaratorChunk::Paren: in containsUnexpandedParameterPacks()
756 case DeclaratorChunk::Pipe: in containsUnexpandedParameterPacks()
757 case DeclaratorChunk::BlockPointer: in containsUnexpandedParameterPacks()
761 case DeclaratorChunk::Array: in containsUnexpandedParameterPacks()
766 case DeclaratorChunk::Function: in containsUnexpandedParameterPacks()
792 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()
6840 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckConstructorDeclarator()
7011 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckDestructorDeclarator()
7144 case DeclaratorChunk::Function: in CheckConversionDeclarator()
7155 case DeclaratorChunk::Array: in CheckConversionDeclarator()
7160 case DeclaratorChunk::Pointer: in CheckConversionDeclarator()
7161 case DeclaratorChunk::BlockPointer: in CheckConversionDeclarator()
7162 case DeclaratorChunk::Reference: in CheckConversionDeclarator()
[all …]
DSemaLambda.cpp852 DeclaratorChunk::FunctionTypeInfo &FTI = ParamInfo.getFunctionTypeInfo(); in ActOnStartOfLambdaDefinition()
DSemaExprCXX.cpp1408 D.getTypeObject(0).Kind == DeclaratorChunk::Array) { in ActOnCXXNew()
1409 DeclaratorChunk &Chunk = D.getTypeObject(0); in ActOnCXXNew()
1427 if (D.getTypeObject(I).Kind != DeclaratorChunk::Array) in ActOnCXXNew()
1430 DeclaratorChunk::ArrayTypeInfo &Array = D.getTypeObject(I).Arr; in ActOnCXXNew()
DSemaDecl.cpp4771 DeclaratorChunk &Chunk = D.getTypeObject(I); in RebuildDeclaratorInCurrentInstantiation()
4776 if (Chunk.Kind != DeclaratorChunk::MemberPointer) in RebuildDeclaratorInCurrentInstantiation()
8112 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFunctionDeclarator()
10283 D.AddTypeInfo(DeclaratorChunk::getReference(0, IdentLoc, /*lvalue*/false), in ActOnCXXForRangeIdentifier()
11037 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFinishKNRParamDeclarations()
11402 if (Outer.Kind == DeclaratorChunk::Function && in canDelayFunctionBody()
11774 D.AddTypeInfo(DeclaratorChunk::getFunction(/*HasProto=*/false, in ImplicitlyDefineFunction()
/external/llvm-project/clang/include/clang/Sema/
DDeclSpec.h1164 struct DeclaratorChunk { struct
1559 case DeclaratorChunk::Function: return Fun.destroy(); in destroy() argument
1560 case DeclaratorChunk::Pointer: return Ptr.destroy(); in destroy()
1561 case DeclaratorChunk::BlockPointer: return Cls.destroy(); in destroy()
1562 case DeclaratorChunk::Reference: return Ref.destroy(); in destroy()
1563 case DeclaratorChunk::Array: return Arr.destroy(); in destroy()
1564 case DeclaratorChunk::MemberPointer: return Mem.destroy(); in destroy()
1565 case DeclaratorChunk::Paren: return; in destroy()
1566 case DeclaratorChunk::Pipe: return PipeInfo.destroy(); in destroy()
1576 static DeclaratorChunk getPointer(unsigned TypeQuals, SourceLocation Loc, in getPointer() argument
[all …]
DSemaInternal.h29 FTIHasSingleVoidParameter(const DeclaratorChunk::FunctionTypeInfo &FTI) { in FTIHasSingleVoidParameter()
36 FTIHasNonVoidParameters(const DeclaratorChunk::FunctionTypeInfo &FTI) { in FTIHasNonVoidParameters()
/external/llvm-project/clang/lib/Sema/
DSemaType.cpp61 D.getTypeObject(0).Kind == DeclaratorChunk::Function) in isOmittedBlockReturnType()
394 static DeclaratorChunk *maybeMovePastReturnType(Declarator &declarator, in maybeMovePastReturnType()
399 DeclaratorChunk *result = nullptr; in maybeMovePastReturnType()
403 DeclaratorChunk &fnChunk = declarator.getTypeObject(i-1); in maybeMovePastReturnType()
405 case DeclaratorChunk::Paren: in maybeMovePastReturnType()
409 case DeclaratorChunk::Pointer: in maybeMovePastReturnType()
410 case DeclaratorChunk::BlockPointer: in maybeMovePastReturnType()
411 case DeclaratorChunk::Array: in maybeMovePastReturnType()
412 case DeclaratorChunk::Reference: in maybeMovePastReturnType()
413 case DeclaratorChunk::MemberPointer: in maybeMovePastReturnType()
[all …]
DDeclSpec.cpp160 DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, in getFunction()
190 DeclaratorChunk I; in getFunction()
246 I.Fun.Params = new DeclaratorChunk::ParamInfo[NumParams]; in getFunction()
260 I.Fun.Exceptions = new DeclaratorChunk::TypeAndRange[NumExceptions]; in getFunction()
327 case DeclaratorChunk::Function: in isDeclarationOfFunction()
329 case DeclaratorChunk::Paren: in isDeclarationOfFunction()
331 case DeclaratorChunk::Pointer: in isDeclarationOfFunction()
332 case DeclaratorChunk::Reference: in isDeclarationOfFunction()
333 case DeclaratorChunk::Array: in isDeclarationOfFunction()
334 case DeclaratorChunk::BlockPointer: in isDeclarationOfFunction()
[all …]
DSemaTemplateVariadic.cpp917 const DeclaratorChunk &Chunk = D.getTypeObject(I); in containsUnexpandedParameterPacks()
919 case DeclaratorChunk::Pointer: in containsUnexpandedParameterPacks()
920 case DeclaratorChunk::Reference: in containsUnexpandedParameterPacks()
921 case DeclaratorChunk::Paren: in containsUnexpandedParameterPacks()
922 case DeclaratorChunk::Pipe: in containsUnexpandedParameterPacks()
923 case DeclaratorChunk::BlockPointer: in containsUnexpandedParameterPacks()
927 case DeclaratorChunk::Array: in containsUnexpandedParameterPacks()
932 case DeclaratorChunk::Function: in containsUnexpandedParameterPacks()
958 case DeclaratorChunk::MemberPointer: in containsUnexpandedParameterPacks()
DSemaDeclCXX.cpp405 DeclaratorChunk &chunk = D.getTypeObject(i); in CheckExtraCXXDefaultArguments()
406 if (chunk.Kind == DeclaratorChunk::Function) { in CheckExtraCXXDefaultArguments()
434 } else if (chunk.Kind != DeclaratorChunk::Paren) { in CheckExtraCXXDefaultArguments()
824 D.getTypeObject(0).Kind != DeclaratorChunk::Reference)) { in ActOnDecompositionDeclarator()
828 D.getTypeObject(0).Kind == DeclaratorChunk::Paren)) in ActOnDecompositionDeclarator()
3926 for (auto &Param : ArrayRef<DeclaratorChunk::ParamInfo>(FTI.Params, in ActOnStartTrailingRequiresClause()
10149 const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in checkMethodTypeQualifiers()
10211 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckConstructorDeclarator()
10388 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckDestructorDeclarator()
10516 case DeclaratorChunk::Function: in CheckConversionDeclarator()
[all …]
DSemaLambda.cpp948 DeclaratorChunk::FunctionTypeInfo &FTI = ParamInfo.getFunctionTypeInfo(); in ActOnStartOfLambdaDefinition()
/external/clang/lib/Parse/
DParseDecl.cpp372 DeclaratorChunk::FunctionTypeInfo FTI = D->getFunctionTypeInfo(); in ParseGNUAttributeArgs()
4959 if (DeclaratorChunk::Pipe == D.getTypeObject(Idx).Kind) in isPipeDeclerator()
5032 D.AddTypeInfo(DeclaratorChunk::getMemberPointer(SS,DS.getTypeQualifiers(), in ParseDeclaratorInternal()
5047 DeclaratorChunk::getPipe(DS.getTypeQualifiers(), DS.getPipeLoc()), in ParseDeclaratorInternal()
5080 D.AddTypeInfo(DeclaratorChunk::getPointer(DS.getTypeQualifiers(), Loc, in ParseDeclaratorInternal()
5090 D.AddTypeInfo(DeclaratorChunk::getBlockPointer(DS.getTypeQualifiers(), in ParseDeclaratorInternal()
5130 DeclaratorChunk& InnerChunk = D.getTypeObject(D.getNumTypeObjects() - 1); in ParseDeclaratorInternal()
5131 if (InnerChunk.Kind == DeclaratorChunk::Reference) { in ParseDeclaratorInternal()
5146 D.AddTypeInfo(DeclaratorChunk::getReference(DS.getTypeQualifiers(), Loc, in ParseDeclaratorInternal()
5521 D.AddTypeInfo(DeclaratorChunk::getParen(T.getOpenLocation(), in ParseParenDeclarator()
[all …]
DParseExprCXX.cpp1143 SmallVector<DeclaratorChunk::ParamInfo, 16> ParamInfo; in ParseLambdaExpressionAfterIntroducer()
1208 D.AddTypeInfo(DeclaratorChunk::getFunction(/*hasProto=*/true, in ParseLambdaExpressionAfterIntroducer()
1275 D.AddTypeInfo(DeclaratorChunk::getFunction(/*hasProto=*/true, in ParseLambdaExpressionAfterIntroducer()
2845 D.AddTypeInfo(DeclaratorChunk::getArray(0, in ParseDirectNewDeclarator()
DParser.cpp979 const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseFunctionDefinition()
1202 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseKNRParamDeclarations()
DParseObjc.cpp411 DeclaratorChunk &chunk = D.getTypeObject(0); in addContextSensitiveTypeNullability()
1391 SmallVector<DeclaratorChunk::ParamInfo, 8> CParamInfo; in ParseObjCMethodDecl()
1512 CParamInfo.push_back(DeclaratorChunk::ParamInfo(ParmII, in ParseObjCMethodDecl()
/external/clang/include/clang/Sema/
DSemaInternal.h30 FTIHasSingleVoidParameter(const DeclaratorChunk::FunctionTypeInfo &FTI) { in FTIHasSingleVoidParameter()
37 FTIHasNonVoidParameters(const DeclaratorChunk::FunctionTypeInfo &FTI) { in FTIHasNonVoidParameters()
/external/llvm-project/clang/lib/Parse/
DParseDecl.cpp475 DeclaratorChunk::FunctionTypeInfo FTI = D->getFunctionTypeInfo(); in ParseGNUAttributeArgs()
5616 if (DeclaratorChunk::Pipe == D.getTypeObject(Idx).Kind) in isPipeDeclerator()
5695 D.AddTypeInfo(DeclaratorChunk::getMemberPointer( in ParseDeclaratorInternal()
5710 DeclaratorChunk::getPipe(DS.getTypeQualifiers(), DS.getPipeLoc()), in ParseDeclaratorInternal()
5743 D.AddTypeInfo(DeclaratorChunk::getPointer( in ParseDeclaratorInternal()
5751 DeclaratorChunk::getBlockPointer(DS.getTypeQualifiers(), Loc), in ParseDeclaratorInternal()
5789 DeclaratorChunk& InnerChunk = D.getTypeObject(D.getNumTypeObjects() - 1); in ParseDeclaratorInternal()
5790 if (InnerChunk.Kind == DeclaratorChunk::Reference) { in ParseDeclaratorInternal()
5805 D.AddTypeInfo(DeclaratorChunk::getReference(DS.getTypeQualifiers(), Loc, in ParseDeclaratorInternal()
6335 DeclaratorChunk::getParen(T.getOpenLocation(), T.getCloseLocation()), in ParseParenDeclarator()
[all …]
DParseExprCXX.cpp1318 SmallVector<DeclaratorChunk::ParamInfo, 16> ParamInfo; in ParseLambdaExpressionAfterIntroducer()
1399 D.AddTypeInfo(DeclaratorChunk::getFunction( in ParseLambdaExpressionAfterIntroducer()
1474 D.AddTypeInfo(DeclaratorChunk::getFunction( in ParseLambdaExpressionAfterIntroducer()
3223 D.AddTypeInfo(DeclaratorChunk::getArray(0, in ParseDirectNewDeclarator()
3393 llvm::SmallVector<DeclaratorChunk::ParamInfo, 2> LocalParameters; in ParseRequiresExpression()
DParser.cpp1173 const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseFunctionDefinition()
1403 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseKNRParamDeclarations()
DParseObjc.cpp1377 SmallVector<DeclaratorChunk::ParamInfo, 8> CParamInfo; in ParseObjCMethodDecl()
1491 CParamInfo.push_back(DeclaratorChunk::ParamInfo(ParmII, in ParseObjCMethodDecl()
/external/clang/include/clang/Parse/
DParser.h2362 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo);
2366 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo,
/external/llvm-project/clang/include/clang/Parse/
DParser.h2916 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo);
2920 SmallVectorImpl<DeclaratorChunk::ParamInfo> &ParamInfo,

12