Lines Matching refs:ast_ctx

65 AppleObjCTypeEncodingParser::ReadStructElement(TypeSystemClang &ast_ctx,
74 retval.type = BuildType(ast_ctx, type, for_expression, &bitfield_size);
80 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression) {
81 return BuildAggregate(ast_ctx, type, for_expression, '{', '}',
86 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression) { in GetNextRegionAddr()
87 return BuildAggregate(ast_ctx, type, for_expression, '(', ')', in GetNextRegionAddr()
92 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression, in GetFlagsForVTableAtAddress()
113 auto element = ReadStructElement(ast_ctx, type, for_expression); in GetFlagsForVTableAtAddress()
126 CompilerType union_type(ast_ctx.CreateRecordType( in GetFlagsForVTableAtAddress()
140 union_type, element.name.c_str(), ast_ctx.GetType(element.type), in GetFlagsForVTableAtAddress()
150 TypeSystemClang &ast_ctx, StringLexer &type, bool for_expression) {
154 clang::QualType element_type(BuildType(ast_ctx, type, for_expression));
157 CompilerType array_type(ast_ctx.CreateArrayType(
158 CompilerType(&ast_ctx, element_type.getAsOpaquePtr()), size, false));
172 clang::ASTContext &ast_ctx = clang_ast_ctx.getASTContext();
223 return ast_ctx.getObjCIdType();
241 return ast_ctx.getObjCIdType();
247 return ast_ctx.getObjCIdType();
258 clang::ASTContext &ast_ctx = clang_ast_ctx.getASTContext();
278 return ast_ctx.CharTy;
280 return ast_ctx.IntTy;
282 return ast_ctx.ShortTy;
284 return ast_ctx.getIntTypeForBitwidth(32, true);
290 return ast_ctx.LongLongTy;
292 return ast_ctx.UnsignedCharTy;
294 return ast_ctx.UnsignedIntTy;
296 return ast_ctx.UnsignedShortTy;
298 return ast_ctx.getIntTypeForBitwidth(32, false);
301 return ast_ctx.UnsignedLongLongTy;
303 return ast_ctx.FloatTy;
305 return ast_ctx.DoubleTy;
307 return ast_ctx.BoolTy;
309 return ast_ctx.VoidTy;
311 return ast_ctx.getPointerType(ast_ctx.CharTy);
313 return ast_ctx.getObjCClassType();
315 return ast_ctx.getObjCSelType();
320 return ast_ctx.UnsignedIntTy; // FIXME: the spec is fairly vague here.
329 else if (target_type == ast_ctx.UnknownAnyTy)
330 return ast_ctx.UnknownAnyTy;
332 return ast_ctx.getConstType(target_type);
341 return ast_ctx.VoidPtrTy;
347 else if (target_type == ast_ctx.UnknownAnyTy)
348 return ast_ctx.UnknownAnyTy;
350 return ast_ctx.getPointerType(target_type);
354 return for_expression ? ast_ctx.UnknownAnyTy : clang::QualType();
358 CompilerType AppleObjCTypeEncodingParser::RealizeType(TypeSystemClang &ast_ctx,
363 clang::QualType qual_type = BuildType(ast_ctx, lexer, for_expression);
364 return ast_ctx.GetType(qual_type);