/external/clang/lib/Frontend/ |
D | ASTMerge.cpp | 37 CI.getASTContext().getLangOpts()); in ExecuteAction() 39 &CI.getASTContext()); in ExecuteAction() 55 ASTImporter Importer(CI.getASTContext(), in ExecuteAction() 57 Unit->getASTContext(), in ExecuteAction() 61 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in ExecuteAction()
|
D | FrontendAction.cpp | 227 CI.setASTContext(&AST->getASTContext()); in BeginSourceFile() 343 CI.getASTContext().setASTMutationListener(Consumer->GetASTMutationListener()); in BeginSourceFile() 352 CI.getASTContext().setExternalSource(source); in BeginSourceFile() 366 CI.getASTContext(), in BeginSourceFile() 376 if (!CI.getASTContext().getExternalSource()) in BeginSourceFile() 387 if (!CI.hasASTContext() || !CI.getASTContext().getExternalSource()) { in BeginSourceFile() 423 CI.hasASTContext() && !CI.getASTContext().getExternalSource()) { in BeginSourceFile() 427 CI.getASTContext().setExternalSource(Override); in BeginSourceFile()
|
D | ChainedIncludesSource.cpp | 83 Reader.reset(new ASTReader(PP, CI.getASTContext(), in createASTReader() 168 Clang->getASTContext().setASTMutationListener( in createChainedIncludesSource() 196 Clang->getASTContext().setExternalSource(Reader); in createChainedIncludesSource() 278 CIs[i]->getASTContext().getExternalSource()) { in getMemoryBufferSizes()
|
/external/clang/lib/AST/ |
D | Decl.cpp | 40 return D->getASTContext().getPrimaryMergedDecl(D); in getPrimaryMergedDecl() 223 if (D->getASTContext().getTargetInfo().getTriple().isOSDarwin()) { in getVisibilityOf() 540 const LangOptions &Opts = D->getASTContext().getLangOpts(); in useInlineVisibilityHidden() 582 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl() 1185 ASTContext &Context = D->getASTContext(); in getLVForLocalDecl() 1262 if (!D->getASTContext().getLangOpts().CPlusPlus || in computeLVForDecl() 1368 const LangOptions &Opts = D->getASTContext().getLangOpts(); in getLVForDecl() 1401 printQualifiedName(OS, getASTContext().getPrintingPolicy()); in getQualifiedNameAsString() 1406 printQualifiedName(OS, getASTContext().getPrintingPolicy()); in printQualifiedName() 1545 ASTContext &Context = getASTContext(); in declarationReplaces() [all …]
|
D | MicrosoftMangle.cpp | 210 disc = getASTContext().getManglingNumber(ND); in getNextDiscriminator() 217 !getASTContext().getDeclaratorForUnnamedTagDecl(Tag) && in getNextDiscriminator() 218 !getASTContext().getTypedefNameForUnnamedTagDecl(Tag)) in getNextDiscriminator() 265 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anone76415da0111::MicrosoftCXXNameMangler 276 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler() 282 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler() 288 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler() 394 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName() 506 Ty.getDesugaredType(getASTContext()).getLocalQualifiers(), QualType()); in mangleVariableEncoding() 514 } else if (const ArrayType *AT = getASTContext().getAsArrayType(Ty)) { in mangleVariableEncoding() [all …]
|
D | DeclCXX.cpp | 78 return Bases.get(Definition->getASTContext().getExternalSource()); in getBasesSlowCase() 82 return VBases.get(Definition->getASTContext().getExternalSource()); in getVBasesSlowCase() 139 ASTContext &C = getASTContext(); in setBases() 559 if (getASTContext().getLangOpts().CPlusPlus11 in addedMember() 608 ASTContext &Ctx = getASTContext(); in addedMember() 710 ASTContext &Context = getASTContext(); in addedMember() 769 if (!getASTContext().getLangOpts().CPlusPlus14) in addedMember() 974 ASTContext &Ctx = getASTContext(); in addedMember() 1043 getASTContext().DeclarationNames.getCXXOperatorName(OO_Call); in getLambdaCallOperator() 1060 &getASTContext().Idents.get(getLambdaStaticInvokerName()); in getLambdaStaticInvoker() [all …]
|
D | DeclBase.cpp | 45 getASTContext().getExternalSource()->updateOutOfDateIdentifier(II); in updateOutOfDate() 96 return getASTContext().getExternalSource()->getModule(getOwningModuleID()); in getOwningModuleSlow() 100 return getASTContext().getLangOpts().ModulesLocalVisibility; in hasLocalOwningModuleStorage() 262 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext() 323 ASTContext &Decl::getASTContext() const { in getASTContext() function in Decl 324 return getTranslationUnitDecl()->getASTContext(); in getASTContext() 328 return getASTContext().getASTMutationListener(); in getASTMutationListener() 337 ASTContext &Ctx = getASTContext(); in getMaxAlignment() 523 AvailabilityResult AR = CheckAvailability(getASTContext(), Availability, in getAvailability() 564 getASTContext().getLangOpts().ObjCRuntime.hasWeakClassImport()) { in canBeWeakImported() [all …]
|
D | Mangle.cpp | 99 const ASTContext &ASTContext = getASTContext(); in shouldMangleDeclName() 106 if (!getASTContext().getLangOpts().CPlusPlus && !D->hasAttrs()) in shouldMangleDeclName() 130 getASTContext().getTargetInfo().getDataLayout().getGlobalPrefix(); in mangleName() 138 const ASTContext &ASTContext = getASTContext(); in mangleName()
|
D | DeclObjC.cpp | 573 Data.setPointer(new (getASTContext()) DefinitionData()); in allocateDefinitionData() 785 return Body.get(getASTContext().getExternalSource()); in getBody() 790 getASTContext().setObjCMethodRedeclaration(PrevMethod, this); in setAsRedeclaration() 840 ASTContext &Ctx = getASTContext(); in getNextRedeclarationImpl() 1091 ASTContext &Ctx = getASTContext(); in getSendResultType() 1099 return getReturnType().getNonLValueExprType(getASTContext()) in getSendResultType() 1435 getASTContext().getExternalSource()->CompleteType( in LoadExternalDefinition() 1440 assert(getASTContext().getExternalSource() && in setExternallyCompleted() 1486 return getASTContext().getObjCImplementation( in getImplementation() 1495 getASTContext().setObjCImplementation(getDefinition(), ImplD); in setImplementation() [all …]
|
D | DeclOpenMP.cpp | 78 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope() 83 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope()
|
D | ItaniumMangle.cpp | 76 return VD->getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext() 80 return FD->getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext() 192 unsigned discriminator = getASTContext().getManglingNumber(ND); in getNextDiscriminator() 385 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon5c4b3adb0111::CXXNameMangler 592 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName() 1041 TemplateName Template = getASTContext().getDependentTemplateName( in manglePrefix() 1290 unsigned UnnamedMangle = getASTContext().getManglingNumber(TD); in mangleUnqualifiedName() 2093 if (Context.getASTContext().addressSpaceMapManglingFor(AS)) { in mangleQualifiers() 2095 unsigned TargetAS = Context.getASTContext().getTargetAddressSpace(AS); in mangleQualifiers() 2223 = T.getSingleStepDesugaredType(Context.getASTContext()); in mangleType() [all …]
|
/external/clang/tools/libclang/ |
D | CXComment.h | 52 static inline ASTContext &getASTContext(CXComment CXC) { in getASTContext() function 53 return cxtu::getASTUnit(CXC.TranslationUnit)->getASTContext(); in getASTContext() 57 return getASTContext(CXC).getCommentCommandTraits(); in getCommandTraits()
|
D | CIndexHigh.cpp | 64 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()
|
/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 62 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/ |
D | IdenticalExprChecker.cpp | 92 if (isIdenticalStmt(AC->getASTContext(), RHS, B2->getRHS())) { in checkBitwiseOrLogicalOp() 100 if (isIdenticalStmt(AC->getASTContext(), RHS, LHS)) { in checkBitwiseOrLogicalOp() 119 …if (InnerIf && isIdenticalStmt(AC->getASTContext(), I->getCond(), InnerIf->getCond(), /*ignoreSide… in VisitIfStmt() 141 if (isIdenticalStmt(AC->getASTContext(), Cond1, Cond2, false)) { in VisitIfStmt() 171 if (isIdenticalStmt(AC->getASTContext(), Stmt1, Stmt2, true)) { in VisitIfStmt() 254 if (isIdenticalStmt(AC->getASTContext(), B->getLHS(), B->getRHS())) { in checkComparisonOp() 274 if (isIdenticalStmt(AC->getASTContext(), C->getTrueExpr(), in VisitConditionalOperator()
|
D | StackAddrEscapeChecker.cpp | 109 SourceRange range = genName(os, R, C.getASTContext()); in EmitStackError() 147 if (C.getASTContext().getLangOpts().ObjCAutoRefCount && in checkPreStmt() 200 if (Ctx.getASTContext().getLangOpts().ObjCAutoRefCount && in checkEndFunction() 238 SourceRange range = genName(os, cb.V[i].second, Ctx.getASTContext()); in checkEndFunction()
|
D | NoReturnFunctionChecker.cpp | 124 lazyInitKeywordSelector(HandleFailureInFunctionSel, C.getASTContext(), in checkPostObjCMessage() 131 lazyInitKeywordSelector(HandleFailureInMethodSel, C.getASTContext(), in checkPostObjCMessage()
|
D | BasicObjCFoundationChecks.cpp | 234 ASTContext &Ctx = C.getASTContext(); in checkPreObjCMessage() 264 ASTContext &Ctx = C.getASTContext(); in checkPreObjCMessage() 293 ASTContext &Ctx = C.getASTContext(); in checkPreObjCMessage() 435 ASTContext &Ctx = C.getASTContext(); in checkPreStmt() 553 ASTContext &Ctx = C.getASTContext(); in checkPreStmt() 641 ASTContext &Ctx = C.getASTContext(); in checkPreObjCMessage() 750 ASTContext &Ctx = C.getASTContext(); in checkPreObjCMessage() 792 if (C.getASTContext().isObjCNSObjectType(ArgTy)) in checkPreObjCMessage() 1033 CountSelectorII = &C.getASTContext().Idents.get("count"); in isCollectionCountMethod() 1220 ASTContext &Ctx = C.getASTContext(); in checkPostObjCMessage()
|
/external/clang/lib/Parse/ |
D | ParseAST.cpp | 146 ExternalASTSource *External = S.getASTContext().getExternalSource(); in ParseAST() 167 Consumer->HandleTranslationUnit(S.getASTContext()); in ParseAST() 173 S.getASTContext().PrintStats(); in ParseAST()
|
/external/clang/unittests/AST/ |
D | ExternalASTSourceTest.cpp | 32 getCompilerInstance().getASTContext().setExternalSource(Source); in ExecuteAction() 33 getCompilerInstance().getASTContext().getTranslationUnitDecl() in ExecuteAction()
|
D | EvaluateAsRValueTest.cpp | 46 bool WasEvaluated = Init->EvaluateAsRValue(Result, VD->getASTContext()); in VisitVarDecl() 48 EXPECT_EQ(WasEvaluated, Init->isConstantInitializer(VD->getASTContext(), in VisitVarDecl()
|
D | PostOrderASTVisitor.cpp | 83 auto TU = ASTUnit->getASTContext().getTranslationUnitDecl(); in TEST() 108 auto TU = ASTUnit->getASTContext().getTranslationUnitDecl(); in TEST()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | AnalysisManager.h | 82 ASTContext &getASTContext() override { in getASTContext() function 87 return getASTContext().getSourceManager(); in getSourceManager()
|
/external/clang/lib/Analysis/ |
D | AnalysisDeclContext.cpp | 99 getBodyFarm(getASTContext(), Manager->Injector.get()).getBody(FD); in getBody() 111 getBodyFarm(getASTContext(), Manager->Injector.get()).getBody(MD); in getBody() 219 cfg = CFG::buildCFG(D, getBody(), &D->getASTContext(), cfgBuildOptions); in getCFG() 238 CFG::buildCFG(D, getBody(), &D->getASTContext(), cfgBuildOptions); in getUnoptimizedCFG() 277 getCFG()->dump(getASTContext().getLangOpts(), ShowColors); in dumpCFG() 473 ASTContext &Ctx = getAnalysisDeclContext()->getASTContext(); in dumpStack()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersInternalTest.cpp | 144 Finder.matchAST(AST->getASTContext()); in TEST() 170 Finder.matchAST(AST->getASTContext()); in TEST() 179 "x", match(pointerType().bind("x"), AST->getASTContext())); in TEST()
|