Home
last modified time | relevance | path

Searched refs:getASTContext (Results 1 – 25 of 110) sorted by relevance

12345

/external/clang/lib/Frontend/
DASTMerge.cpp37 CI.getASTContext().getLangOpts()); in ExecuteAction()
39 &CI.getASTContext()); in ExecuteAction()
53 ASTImporter Importer(CI.getASTContext(), in ExecuteAction()
55 Unit->getASTContext(), in ExecuteAction()
59 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in ExecuteAction()
DFrontendAction.cpp200 CI.setASTContext(&AST->getASTContext()); in BeginSourceFile()
289 CI.getASTContext().setASTMutationListener(Consumer->GetASTMutationListener()); in BeginSourceFile()
299 CI.getASTContext().setExternalSource(source); in BeginSourceFile()
309 DeserialListener = new DeserializedDeclsChecker(CI.getASTContext(), in BeginSourceFile()
317 if (!CI.getASTContext().getExternalSource()) in BeginSourceFile()
328 if (!CI.hasASTContext() || !CI.getASTContext().getExternalSource()) { in BeginSourceFile()
337 CI.hasASTContext() && !CI.getASTContext().getExternalSource()) { in BeginSourceFile()
341 CI.getASTContext().setExternalSource(Override); in BeginSourceFile()
DChainedIncludesSource.cpp35 Reader.reset(new ASTReader(PP, CI.getASTContext(), /*isysroot=*/"", in createASTReader()
116 Clang->getASTContext().setASTMutationListener( in create()
147 Clang->getASTContext().setExternalSource(Reader); in create()
226 CIs[i]->getASTContext().getExternalSource()) { in getMemoryBufferSizes()
/external/clang/tools/libclang/
DCXComment.h51 inline ASTContext &getASTContext(CXComment CXC) { in getASTContext() function
52 return cxtu::getASTUnit(CXC.TranslationUnit)->getASTContext(); in getASTContext()
56 return getASTContext(CXC).getCommentCommandTraits(); in getCommandTraits()
DCIndexHigh.cpp64 ASTContext &getASTContext() const { in getASTContext() function
65 return cxtu::getASTUnit(TU)->getASTContext(); in getASTContext()
188 ASTContext &Ctx = data->getASTContext(); in findFileIdRefVisit()
258 ASTContext &getASTContext() const { in getASTContext() function
259 return Unit.getASTContext(); in getASTContext()
283 ASTContext &Ctx = data->getASTContext(); in findFileMacroRefVisit()
350 ASTContext &getASTContext() const { in getASTContext() function
351 return Unit.getASTContext(); in getASTContext()
361 ASTContext &Ctx = getASTContext(); in visit()
DCXType.cpp103 ASTContext &Ctx = cxtu::getASTUnit(TU)->getASTContext(); in MakeCXType()
140 ASTContext &Context = cxtu::getASTUnit(TU)->getASTContext(); in clang_getCursorType()
222 PrintingPolicy PP(cxtu::getASTUnit(TU)->getASTContext().getLangOpts()); in clang_getTypeSpelling()
322 return MakeCXType(cxtu::getASTUnit(TU)->getASTContext() in clang_getCanonicalType()
586 return T.isPODType(cxtu::getASTUnit(TU)->getASTContext()) ? 1 : 0; in clang_isPODType()
687 ASTContext &Ctx = cxtu::getASTUnit(GetTU(T))->getASTContext(); in clang_Type_getAlignOf()
707 ASTContext &Ctx = cxtu::getASTUnit(GetTU(T))->getASTContext(); in clang_Type_getSizeOf()
779 ASTContext &Ctx = cxtu::getASTUnit(GetTU(PT))->getASTContext(); in clang_Type_getOffsetOf()
/external/clang/lib/AST/
DDeclCXX.cpp69 return Bases.get(Definition->getASTContext().getExternalSource()); in getBasesSlowCase()
73 return VBases.get(Definition->getASTContext().getExternalSource()); in getVBasesSlowCase()
123 ASTContext &C = getASTContext(); in setBases()
511 if (getASTContext().getLangOpts().CPlusPlus11 in addedMember()
560 data().Conversions.addDecl(getASTContext(), FunTmpl, AS); in addedMember()
566 data().Conversions.addDecl(getASTContext(), Conversion, AS); in addedMember()
659 ASTContext &Context = getASTContext(); in addedMember()
695 if (!getASTContext().getLangOpts().CPlusPlus1y) in addedMember()
886 data().Conversions.addDecl(getASTContext(), Shadow, Shadow->getAccess()); in addedMember()
1091 CollectVisibleConversions(getASTContext(), this, data().VisibleConversions); in getVisibleConversionFunctions()
[all …]
DDecl.cpp207 if (D->getASTContext().getTargetInfo().getTriple().isOSDarwin()) { in getVisibilityOf()
480 const LangOptions &Opts = D->getASTContext().getLangOpts(); in useInlineVisibilityHidden()
522 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl()
1066 ASTContext &Context = D->getASTContext(); in getLVForLocalDecl()
1185 const LangOptions &Opts = D->getASTContext().getLangOpts(); in getLVForDecl()
1219 return getQualifiedNameAsString(getASTContext().getPrintingPolicy()); in getQualifiedNameAsString()
1230 printQualifiedName(OS, getASTContext().getPrintingPolicy()); in printQualifiedName()
1349 ASTContext &Context = getASTContext(); in declarationReplaces()
1426 DeclInfo = new (getASTContext()) ExtInfo; in setQualifierInfo()
1439 getASTContext().Deallocate(getExtInfo()); in setQualifierInfo()
[all …]
DMicrosoftMangle.cpp58 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anonbabab7a70111::MicrosoftCXXNameMangler
71 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler()
79 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler()
190 if (!getASTContext().getLangOpts().CPlusPlus && !D->hasAttrs()) in shouldMangleDeclName()
207 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleDeclName()
323 } else if (const ArrayType *AT = getASTContext().getAsArrayType(Ty)) { in mangleVariableEncoding()
853 if (E->isIntegerConstantExpr(Value, Context.getASTContext())) { in mangleExpression()
1036 void *TypePtr = getASTContext().getCanonicalType(T).getAsOpaquePtr(); in mangleArgumentType()
1044 if (const ArrayType *AT = getASTContext().getAsArrayType(OT)) { in mangleArgumentType()
1073 T = T.getDesugaredType(getASTContext()); in mangleType()
[all …]
DDeclBase.cpp45 getASTContext().getExternalSource()->updateOutOfDateIdentifier(II); in updateOutOfDate()
69 return getASTContext().getExternalSource()->getModule(getOwningModuleID()); in getOwningModuleSlow()
218 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext()
262 ASTContext &Decl::getASTContext() const { in getASTContext() function in Decl
263 return getTranslationUnitDecl()->getASTContext(); in getASTContext()
267 return getASTContext().getASTMutationListener(); in getASTMutationListener()
276 ASTContext &Ctx = getASTContext(); in getMaxAlignment()
413 AvailabilityResult AR = CheckAvailability(getASTContext(), Availability, in getAvailability()
454 getASTContext().getLangOpts().ObjCRuntime.hasWeakClassImport()) { in canBeWeakImported()
473 if (CheckAvailability(getASTContext(), Availability, 0) in isWeakImported()
[all …]
DDeclObjC.cpp373 Data.setPointer(new (getASTContext()) DefinitionData()); in allocateDefinitionData()
581 return Body.get(getASTContext().getExternalSource()); in getBody()
586 getASTContext().setObjCMethodRedeclaration(PrevMethod, this); in setAsRedeclaration()
632 ASTContext &Ctx = getASTContext(); in getNextRedeclaration()
1094 getASTContext().getExternalSource()->CompleteType( in LoadExternalDefinition()
1099 assert(getASTContext().getExternalSource() && in setExternallyCompleted()
1111 return getASTContext().getObjCImplementation( in getImplementation()
1120 getASTContext().setObjCImplementation(getDefinition(), ImplD); in setImplementation()
1192 IV->getASTContext().getTypeSize(IV->getType()), IV)); in all_declared_ivar_begin()
1282 if (getASTContext().ProtocolCompatibleWithProtocol(lProto, *PI)) in ClassImplementsProtocol()
[all …]
DItaniumMangle.cpp173 unsigned discriminator = getASTContext().getManglingNumber(ND); in getNextDiscriminator()
249 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anonda0505680111::CXXNameMangler
390 if (!getASTContext().getLangOpts().CPlusPlus && !D->hasAttrs()) in shouldMangleDeclName()
420 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleDeclName()
456 getASTContext().getTargetInfo().getUserLabelPrefix(); in mangle()
775 = getASTContext().getDependentTemplateName(DTST->getQualifier(), in manglePrefix()
1009 QualType type = getASTContext().getTypeDeclType(typeDecl); in mangleUnresolvedPrefix()
1012 newQualifier = NestedNameSpecifier::Create(getASTContext(), in mangleUnresolvedPrefix()
1018 newQualifier = NestedNameSpecifier::Create(getASTContext(), in mangleUnresolvedPrefix()
1023 newQualifier = NestedNameSpecifier::Create(getASTContext(), in mangleUnresolvedPrefix()
[all …]
DDeclPrinter.cpp95 print(Out, getASTContext().getPrintingPolicy(), Indentation, PrintInstantiation); in print()
176 ASTContext &Ctx = cast<TranslationUnitDecl>(DC)->getASTContext(); in dumpDeclContext()
622 Out << D->getASTContext().getUnqualifiedObjCPointerType(D->getType()). in VisitFieldDecl()
672 : D->getASTContext().getUnqualifiedObjCPointerType(D->getType()); in VisitVarDecl()
919 Out << '(' << OMD->getASTContext().getUnqualifiedObjCPointerType(OMD->getResultType()). in VisitObjCMethodDecl()
929 Out << ":(" << (*PI)->getASTContext().getUnqualifiedObjCPointerType((*PI)->getType()). in VisitObjCMethodDecl()
963 Indent() << I->getASTContext().getUnqualifiedObjCPointerType(I->getType()). in VisitObjCImplementationDecl()
1002 Indent() << I->getASTContext().getUnqualifiedObjCPointerType(I->getType()). in VisitObjCInterfaceDecl()
1054 Indent() << I->getASTContext().getUnqualifiedObjCPointerType(I->getType()). in VisitObjCCategoryDecl()
1141 Out << ' ' << PDecl->getASTContext().getUnqualifiedObjCPointerType(PDecl->getType()). in VisitObjCPropertyDecl()
DDeclTemplate.cpp151 Common = newCommon(getASTContext()); in getCommonPtr()
170 EntryType::Profile(ID,Args,NumArgs, getASTContext()); in findSpecializationImpl()
251 ASTContext &Context = getASTContext(); in LoadLazySpecializations()
286 = new (getASTContext()) TemplateArgument[Params->size()]; in getInjectedTemplateArgs()
287 GenerateInjectedTemplateArgs(getASTContext(), Params, in getInjectedTemplateArgs()
324 ASTContext &Context = getASTContext(); in LoadLazySpecializations()
411 ASTContext &Context = getASTContext(); in findPartialSpecialization()
453 ASTContext &Context = getASTContext(); in getInjectedClassNameSpecialization()
457 GenerateInjectedTemplateArgs(getASTContext(), Params, TemplateArgs.data()); in getInjectedClassNameSpecialization()
991 ASTContext &Context = getASTContext(); in LoadLazySpecializations()
DMangleNumberingContext.cpp25 ASTContext &Context = CallOperator->getASTContext(); in getManglingNumber()
/external/clang/lib/Parse/
DParseAST.cpp130 ExternalASTSource *External = S.getASTContext().getExternalSource(); in ParseAST()
153 Consumer->HandleTranslationUnit(S.getASTContext()); in ParseAST()
159 S.getASTContext().PrintStats(); in ParseAST()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp62 if (!checkForLiteralCreation(Msg, II, NS.getASTContext().getLangOpts())) in rewriteObjCRedundantCallWithLiteral()
207 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToArraySubscriptGet()
217 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToDictionarySubscriptGet()
227 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToArraySubscriptSet()
261 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToDictionarySubscriptSet()
300 NS.getASTContext().getObjContainingInterface(Method); in rewriteToObjCSubscriptSyntax()
343 if (!checkForLiteralCreation(Msg, II, NS.getASTContext().getLangOpts())) in rewriteToObjCLiteralSyntax()
413 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in rewriteToArrayLiteral()
451 if (!checkForLiteralCreation(Msg, Cls, NS.getASTContext().getLangOpts())) in getNSArrayObjects()
473 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in getNSArrayObjects()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DStackAddrEscapeChecker.cpp109 SourceRange range = genName(os, R, C.getASTContext()); in EmitStackError()
147 if (C.getASTContext().getLangOpts().ObjCAutoRefCount && in checkPreStmt()
191 if (Ctx.getASTContext().getLangOpts().ObjCAutoRefCount && in checkEndFunction()
229 SourceRange range = genName(os, cb.V[i].second, Ctx.getASTContext()); in checkEndFunction()
DCastSizeChecker.cpp34 ASTContext &Ctx = C.getASTContext(); in checkPreStmt()
63 CharUnits typeSize = C.getASTContext().getTypeSizeInChars(ToPointeeTy); in checkPreStmt()
DNSErrorChecker.cpp61 II = &D->getASTContext().Idents.get("NSError"); in checkASTDecl()
109 II = &D->getASTContext().Idents.get("CFErrorRef"); in checkASTDecl()
209 ASTContext &Ctx = C.getASTContext(); in checkLocation()
DChrootChecker.cpp69 ASTContext &Ctx = C.getASTContext(); in evalCall()
129 ASTContext &Ctx = C.getASTContext(); in checkPreStmt()
DBasicObjCFoundationChecks.cpp402 ASTContext &Ctx = C.getASTContext(); in checkPreStmt()
517 ASTContext &Ctx = C.getASTContext(); in checkPreStmt()
602 ASTContext &Ctx = C.getASTContext(); in checkPreObjCMessage()
708 ASTContext &Ctx = C.getASTContext(); in checkPreObjCMessage()
751 if (C.getASTContext().isObjCNSObjectType(ArgTy)) in checkPreObjCMessage()
981 CountSelectorII = &C.getASTContext().Idents.get("count"); in isCollectionCountMethod()
1095 ASTContext &Ctx = C.getASTContext(); in checkPostObjCMessage()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DAnalysisManager.h79 virtual ASTContext &getASTContext() { in getASTContext() function
84 return getASTContext().getSourceManager(); in getSourceManager()
/external/chromium_org/ppapi/tests/clang/
Dprint_names_and_sizes.cc132 tag->getASTContext().getTypeSizeInChars(type); in HandleTopLevelDecl()
139 clang::CharUnits size = td->getASTContext().getTypeSizeInChars(type); in HandleTopLevelDecl()
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp98 return getBodyFarm(getASTContext()).getBody(FD); in getBody()
179 &D->getASTContext(), cfgBuildOptions)); in getCFG()
194 completeCFG.reset(CFG::buildCFG(D, getBody(), &D->getASTContext(), in getUnoptimizedCFG()
231 getCFG()->dump(getASTContext().getLangOpts(), ShowColors); in dumpCFG()
414 ASTContext &Ctx = getAnalysisDeclContext()->getASTContext(); in dumpStack()

12345