Home
last modified time | relevance | path

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

/external/clang/include/clang/Sema/
DDeclSpec.h1009 struct DeclaratorChunk { struct
1297 case DeclaratorChunk::Function: return Fun.destroy(); in destroy() argument
1298 case DeclaratorChunk::Pointer: return Ptr.destroy(); in destroy()
1299 case DeclaratorChunk::BlockPointer: return Cls.destroy(); in destroy()
1300 case DeclaratorChunk::Reference: return Ref.destroy(); in destroy()
1301 case DeclaratorChunk::Array: return Arr.destroy(); in destroy()
1302 case DeclaratorChunk::MemberPointer: return Mem.destroy(); in destroy()
1303 case DeclaratorChunk::Paren: return; in destroy()
1318 static DeclaratorChunk getPointer(unsigned TypeQuals, SourceLocation Loc, in getPointer() argument
1322 DeclaratorChunk I; in getPointer()
[all …]
DSema.h6138 DeclaratorChunk::ParamInfo *CParamInfo, unsigned CNumArgs, // c-style args
/external/clang/lib/Sema/
DSemaType.cpp48 D.getTypeObject(0).Kind == DeclaratorChunk::Function) in isOmittedBlockReturnType()
303 DeclaratorChunk &chunk = declarator.getTypeObject(i-1); in distributeObjCPointerTypeAttr()
305 case DeclaratorChunk::Pointer: in distributeObjCPointerTypeAttr()
306 case DeclaratorChunk::BlockPointer: in distributeObjCPointerTypeAttr()
311 case DeclaratorChunk::Paren: in distributeObjCPointerTypeAttr()
312 case DeclaratorChunk::Array: in distributeObjCPointerTypeAttr()
316 case DeclaratorChunk::Reference: in distributeObjCPointerTypeAttr()
317 case DeclaratorChunk::Function: in distributeObjCPointerTypeAttr()
318 case DeclaratorChunk::MemberPointer: in distributeObjCPointerTypeAttr()
340 DeclaratorChunk &chunk = declarator.getTypeObject(i); in distributeObjCPointerTypeAttrFromDeclarator()
[all …]
DDeclSpec.cpp147 DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, bool isVariadic, in getFunction()
170 DeclaratorChunk I; in getFunction()
209 I.Fun.ArgInfo = new DeclaratorChunk::ParamInfo[NumArgs]; in getFunction()
222 I.Fun.Exceptions = new DeclaratorChunk::TypeAndRange[NumExceptions]; in getFunction()
240 case DeclaratorChunk::Function: in isDeclarationOfFunction()
242 case DeclaratorChunk::Paren: in isDeclarationOfFunction()
244 case DeclaratorChunk::Pointer: in isDeclarationOfFunction()
245 case DeclaratorChunk::Reference: in isDeclarationOfFunction()
246 case DeclaratorChunk::Array: in isDeclarationOfFunction()
247 case DeclaratorChunk::BlockPointer: in isDeclarationOfFunction()
[all …]
DSemaTemplateVariadic.cpp739 const DeclaratorChunk &Chunk = D.getTypeObject(I); in containsUnexpandedParameterPacks()
741 case DeclaratorChunk::Pointer: in containsUnexpandedParameterPacks()
742 case DeclaratorChunk::Reference: in containsUnexpandedParameterPacks()
743 case DeclaratorChunk::Paren: in containsUnexpandedParameterPacks()
747 case DeclaratorChunk::Array: in containsUnexpandedParameterPacks()
748 case DeclaratorChunk::Function: in containsUnexpandedParameterPacks()
749 case DeclaratorChunk::BlockPointer: in containsUnexpandedParameterPacks()
755 case DeclaratorChunk::MemberPointer: in containsUnexpandedParameterPacks()
DSemaLambda.cpp397 DeclaratorChunk::FunctionTypeInfo &FTI = ParamInfo.getFunctionTypeInfo(); in ActOnStartOfLambdaDefinition()
DSemaExprCXX.cpp965 D.getTypeObject(0).Kind == DeclaratorChunk::Array) { in ActOnCXXNew()
966 DeclaratorChunk &Chunk = D.getTypeObject(0); in ActOnCXXNew()
984 if (D.getTypeObject(I).Kind != DeclaratorChunk::Array) in ActOnCXXNew()
987 DeclaratorChunk::ArrayTypeInfo &Array = D.getTypeObject(I).Arr; in ActOnCXXNew()
DSemaDeclCXX.cpp355 DeclaratorChunk &chunk = D.getTypeObject(i); in CheckExtraCXXDefaultArguments()
356 if (chunk.Kind == DeclaratorChunk::Function) { in CheckExtraCXXDefaultArguments()
4970 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckConstructorDeclarator()
5075 FTIHasSingleVoidArgument(DeclaratorChunk::FunctionTypeInfo &FTI) { in FTIHasSingleVoidArgument()
5135 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in CheckDestructorDeclarator()
DSemaDecl.cpp3442 DeclaratorChunk &Chunk = D.getTypeObject(I); in RebuildDeclaratorInCurrentInstantiation()
3447 if (Chunk.Kind != DeclaratorChunk::MemberPointer) in RebuildDeclaratorInCurrentInstantiation()
5468 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFunctionDeclarator()
7496 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnFinishKNRParamDeclarations()
7987 D.AddTypeInfo(DeclaratorChunk::getFunction(false, false, false, in ImplicitlyDefineFunction()
DSemaDeclObjC.cpp2790 DeclaratorChunk::ParamInfo *CParamInfo, unsigned CNumArgs, // c-style args in ActOnMethodDeclaration()
DSemaTemplate.cpp5624 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ActOnStartOfFunctionTemplateDef()
/external/clang/lib/Parse/
DParseDecl.cpp4090 D.AddTypeInfo(DeclaratorChunk::getMemberPointer(SS,DS.getTypeQualifiers(), in ParseDeclaratorInternal()
4123 D.AddTypeInfo(DeclaratorChunk::getPointer(DS.getTypeQualifiers(), Loc, in ParseDeclaratorInternal()
4131 D.AddTypeInfo(DeclaratorChunk::getBlockPointer(DS.getTypeQualifiers(), in ParseDeclaratorInternal()
4167 DeclaratorChunk& InnerChunk = D.getTypeObject(D.getNumTypeObjects() - 1); in ParseDeclaratorInternal()
4168 if (InnerChunk.Kind == DeclaratorChunk::Reference) { in ParseDeclaratorInternal()
4183 D.AddTypeInfo(DeclaratorChunk::getReference(DS.getTypeQualifiers(), Loc, in ParseDeclaratorInternal()
4495 D.AddTypeInfo(DeclaratorChunk::getParen(T.getOpenLocation(), in ParseParenDeclarator()
4555 SmallVector<DeclaratorChunk::ParamInfo, 16> ParamInfo; in ParseFunctionDeclarator()
4660 D.AddTypeInfo(DeclaratorChunk::getFunction(HasProto, in ParseFunctionDeclarator()
4721 SmallVector<DeclaratorChunk::ParamInfo, 16> &ParamInfo) { in ParseFunctionDeclaratorIdentifierList()
[all …]
DParseExprCXX.cpp766 llvm::SmallVector<DeclaratorChunk::ParamInfo, 16> ParamInfo; in ParseLambdaExpressionAfterIntroducer()
810 D.AddTypeInfo(DeclaratorChunk::getFunction(/*hasProto=*/true, in ParseLambdaExpressionAfterIntroducer()
855 D.AddTypeInfo(DeclaratorChunk::getFunction(/*hasProto=*/true, in ParseLambdaExpressionAfterIntroducer()
2352 D.AddTypeInfo(DeclaratorChunk::getArray(0, in ParseDirectNewDeclarator()
DParser.cpp921 const DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseFunctionDefinition()
1110 DeclaratorChunk::FunctionTypeInfo &FTI = D.getFunctionTypeInfo(); in ParseKNRParamDeclarations()
DParseObjc.cpp1009 SmallVector<DeclaratorChunk::ParamInfo, 8> CParamInfo; in ParseObjCMethodDecl()
1129 CParamInfo.push_back(DeclaratorChunk::ParamInfo(ParmII, in ParseObjCMethodDecl()
DParseExpr.cpp2467 ParamInfo.AddTypeInfo(DeclaratorChunk::getFunction(true, false, false, in ParseBlockLiteralExpression()
DParseDeclCXX.cpp1607 DeclaratorChunk::FunctionTypeInfo &FTI in HandleMemberFunctionDeclDelays()
/external/clang/include/clang/Parse/
DParser.h1964 SmallVector<DeclaratorChunk::ParamInfo, 16> &ParamInfo);
1968 SmallVector<DeclaratorChunk::ParamInfo, 16> &ParamInfo,