Home
last modified time | relevance | path

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

1234567

/external/lldb/source/Symbol/
DClangASTImporter.cpp232 MinionSP minion_sp (GetMinion(&decl->getASTContext(), decl_origin.ctx)); in CompleteTagDecl()
245 clang::ASTContext *origin_ast_ctx = &origin_decl->getASTContext(); in CompleteTagDeclWithOrigin()
250 MinionSP minion_sp (GetMinion(&decl->getASTContext(), origin_ast_ctx)); in CompleteTagDeclWithOrigin()
255 ASTContextMetadataSP context_md = GetContextMetadata(&decl->getASTContext()); in CompleteTagDeclWithOrigin()
277 MinionSP minion_sp (GetMinion(&interface_decl->getASTContext(), decl_origin.ctx)); in CompleteObjCInterfaceDecl()
322 return ClangASTContext::GetMetadata(&decl->getASTContext(), decl); in GetDeclMetadata()
328 ASTContextMetadataSP context_md = GetContextMetadata(&decl->getASTContext()); in GetDeclOrigin()
343 ASTContextMetadataSP context_md = GetContextMetadata(&decl->getASTContext()); in SetDeclOrigin()
352 iter->second.ctx = &original_decl->getASTContext(); in SetDeclOrigin()
356 origins[decl] = DeclOrigin(&original_decl->getASTContext(), original_decl); in SetDeclOrigin()
[all …]
DClangASTContext.cpp343 ASTContext *ast = getASTContext(); in HasExternalSource()
352 ASTContext *ast = getASTContext(); in SetExternalSource()
364 ASTContext *ast = getASTContext(); in RemoveExternalSource()
378 ClangASTContext::getASTContext() in getASTContext() function in ClangASTContext
539 … return ClangASTContext::GetBuiltinTypeForEncodingAndBitSize (getASTContext(), encoding, bit_size); in GetBuiltinTypeForEncodingAndBitSize()
691 return GetBasicType (getASTContext(), basic_type); in GetBasicType()
811 ASTContext *ast = getASTContext(); in GetBuiltinTypeForDWARFEncodingAndBitSize()
1031 ASTContext *ast = getASTContext(); in GetCStringType()
1136 ASTContext *ast = getASTContext(); in CreateRecordType()
1238 ASTContext *ast = getASTContext(); in CreateFunctionTemplateDecl()
[all …]
/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.cpp206 CI.setASTContext(&AST->getASTContext()); in BeginSourceFile()
313 CI.getASTContext().setASTMutationListener(Consumer->GetASTMutationListener()); in BeginSourceFile()
322 CI.getASTContext().setExternalSource(source); in BeginSourceFile()
336 CI.getASTContext(), in BeginSourceFile()
346 if (!CI.getASTContext().getExternalSource()) in BeginSourceFile()
357 if (!CI.hasASTContext() || !CI.getASTContext().getExternalSource()) { in BeginSourceFile()
379 CI.hasASTContext() && !CI.getASTContext().getExternalSource()) { in BeginSourceFile()
383 CI.getASTContext().setExternalSource(Override); in BeginSourceFile()
DChainedIncludesSource.cpp82 Reader.reset(new ASTReader(PP, CI.getASTContext(), /*isysroot=*/"", in createASTReader()
164 Clang->getASTContext().setASTMutationListener( in createChainedIncludesSource()
191 Clang->getASTContext().setExternalSource(Reader); in createChainedIncludesSource()
266 CIs[i]->getASTContext().getExternalSource()) { in getMemoryBufferSizes()
/external/clang/tools/libclang/
DCXComment.h52 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()
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()
/external/lldb/include/lldb/Symbol/
DClangASTContext.h49 getASTContext();
105 return ClangASTContext::GetCompleteDecl(getASTContext(), decl); in GetCompleteDecl()
118 SetMetadata(getASTContext(), object, meta_data); in SetMetadata()
129 return GetMetadata(getASTContext(), object); in GetMetadata()
175 return ClangASTContext::GetUnknownAnyType(getASTContext()); in GetUnknownAnyType()
187 return GetTranslationUnitDecl (getASTContext()); in GetTranslationUnitDecl()
361 return ClangASTContext::CreateFunctionType(getASTContext(), in CreateFunctionType()
404 return GetFloatTypeFromBitSize (getASTContext(), bit_size); in GetFloatTypeFromBitSize()
/external/clang/lib/AST/
DDeclCXX.cpp79 return Bases.get(Definition->getASTContext().getExternalSource()); in getBasesSlowCase()
83 return VBases.get(Definition->getASTContext().getExternalSource()); in getVBasesSlowCase()
140 ASTContext &C = getASTContext(); in setBases()
530 if (getASTContext().getLangOpts().CPlusPlus11 in addedMember()
578 ASTContext &Ctx = getASTContext(); in addedMember()
685 ASTContext &Context = getASTContext(); in addedMember()
723 if (!getASTContext().getLangOpts().CPlusPlus1y) in addedMember()
926 ASTContext &Ctx = getASTContext(); in addedMember()
986 getASTContext().DeclarationNames.getCXXOperatorName(OO_Call); in getLambdaCallOperator()
1003 &getASTContext().Idents.get(getLambdaStaticInvokerName()); in getLambdaStaticInvoker()
[all …]
DDecl.cpp38 return D->getASTContext().getPrimaryMergedDecl(D); in getPrimaryMergedDecl()
210 if (D->getASTContext().getTargetInfo().getTriple().isOSDarwin()) { in getVisibilityOf()
528 const LangOptions &Opts = D->getASTContext().getLangOpts(); in useInlineVisibilityHidden()
570 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl()
1153 ASTContext &Context = D->getASTContext(); in getLVForLocalDecl()
1300 const LangOptions &Opts = D->getASTContext().getLangOpts(); in getLVForDecl()
1333 printQualifiedName(OS, getASTContext().getPrintingPolicy()); in getQualifiedNameAsString()
1338 printQualifiedName(OS, getASTContext().getPrintingPolicy()); in printQualifiedName()
1461 ASTContext &Context = getASTContext(); in declarationReplaces()
1470 ASTContext &Context = getASTContext(); in declarationReplaces()
[all …]
DMicrosoftMangle.cpp150 disc = getASTContext().getManglingNumber(ND); in getNextDiscriminator()
200 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon40de12740111::MicrosoftCXXNameMangler
211 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler()
217 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth(0) == in MicrosoftCXXNameMangler()
316 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName()
427 Ty.getDesugaredType(getASTContext()).getLocalQualifiers(), nullptr); in mangleVariableEncoding()
435 } else if (const ArrayType *AT = getASTContext().getAsArrayType(Ty)) { in mangleVariableEncoding()
458 FieldOffset = getASTContext().getFieldOffset(VD); in mangleMemberDataPointer()
459 assert(FieldOffset % getASTContext().getCharWidth() == 0 && in mangleMemberDataPointer()
461 FieldOffset /= getASTContext().getCharWidth(); in mangleMemberDataPointer()
[all …]
DMangle.cpp94 const ASTContext &ASTContext = getASTContext(); in shouldMangleDeclName()
101 if (!getASTContext().getLangOpts().CPlusPlus && !D->hasAttrs()) in shouldMangleDeclName()
125 getASTContext().getTargetInfo().getUserLabelPrefix(); in mangleName()
133 const ASTContext &ASTContext = getASTContext(); in mangleName()
DDeclObjC.cpp464 Data.setPointer(new (getASTContext()) DefinitionData()); in allocateDefinitionData()
674 return Body.get(getASTContext().getExternalSource()); in getBody()
679 getASTContext().setObjCMethodRedeclaration(PrevMethod, this); in setAsRedeclaration()
725 ASTContext &Ctx = getASTContext(); in getNextRedeclarationImpl()
1173 getASTContext().getExternalSource()->CompleteType( in LoadExternalDefinition()
1178 assert(getASTContext().getExternalSource() && in setExternallyCompleted()
1207 return getASTContext().getObjCImplementation( in getImplementation()
1216 getASTContext().setObjCImplementation(getDefinition(), ImplD); in setImplementation()
1283 IV->getASTContext().getTypeSize(IV->getType()), IV)); in all_declared_ivar_begin()
1362 if (getASTContext().ProtocolCompatibleWithProtocol(lProto, PI)) in ClassImplementsProtocol()
[all …]
DDeclBase.cpp45 getASTContext().getExternalSource()->updateOutOfDateIdentifier(II); in updateOutOfDate()
74 return getASTContext().getExternalSource()->getModule(getOwningModuleID()); in getOwningModuleSlow()
225 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext()
273 ASTContext &Decl::getASTContext() const { in getASTContext() function in Decl
274 return getTranslationUnitDecl()->getASTContext(); in getASTContext()
278 return getASTContext().getASTMutationListener(); in getASTMutationListener()
287 ASTContext &Ctx = getASTContext(); in getMaxAlignment()
434 AvailabilityResult AR = CheckAvailability(getASTContext(), Availability, in getAvailability()
475 getASTContext().getLangOpts().ObjCRuntime.hasWeakClassImport()) { in canBeWeakImported()
494 if (CheckAvailability(getASTContext(), Availability, in isWeakImported()
[all …]
/external/clang/lib/Parse/
DParseAST.cpp131 ExternalASTSource *External = S.getASTContext().getExternalSource(); in ParseAST()
154 Consumer->HandleTranslationUnit(S.getASTContext()); in ParseAST()
160 S.getASTContext().PrintStats(); in ParseAST()
/external/clang/unittests/AST/
DExternalASTSourceTest.cpp32 getCompilerInstance().getASTContext().setExternalSource(Source); in ExecuteAction()
33 getCompilerInstance().getASTContext().getTranslationUnitDecl() in ExecuteAction()
DEvaluateAsRValueTest.cpp48 bool WasEvaluated = Init->EvaluateAsRValue(Result, VD->getASTContext()); in VisitVarDecl()
50 EXPECT_EQ(WasEvaluated, Init->isConstantInitializer(VD->getASTContext(), in VisitVarDecl()
/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()
DIdenticalExprChecker.cpp92 if (isIdenticalStmt(AC->getASTContext(), RHS, B2->getRHS())) { in checkBitwiseOrLogicalOp()
100 if (isIdenticalStmt(AC->getASTContext(), RHS, LHS)) { in checkBitwiseOrLogicalOp()
123 if (isIdenticalStmt(AC->getASTContext(), Cond1, Cond2, false)) { in VisitIfStmt()
153 if (isIdenticalStmt(AC->getASTContext(), Stmt1, Stmt2, true)) { in VisitIfStmt()
236 if (isIdenticalStmt(AC->getASTContext(), B->getLHS(), B->getRHS())) { in checkComparisonOp()
256 if (isIdenticalStmt(AC->getASTContext(), C->getTrueExpr(), in VisitConditionalOperator()
DNoReturnFunctionChecker.cpp123 lazyInitKeywordSelector(HandleFailureInFunctionSel, C.getASTContext(), in checkPostObjCMessage()
130 lazyInitKeywordSelector(HandleFailureInMethodSel, C.getASTContext(), in checkPostObjCMessage()
/external/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
DAppleObjCTypeVendor.cpp94 &tag_decl->getASTContext(), in CompleteType()
124 &interface_decl->getASTContext(), in CompleteType()
157 …clang::TranslationUnitDecl *translation_unit_decl = m_type_vendor.m_ast_ctx.getASTContext()->getTr… in StartTranslationUnit()
172 m_ast_ctx.getASTContext()->setExternalSource(external_source_owning_ptr); in AppleObjCTypeVendor()
183 clang::ASTContext *ast_ctx = m_ast_ctx.getASTContext(); in GetDeclForISA()
332 clang::ASTContext &ast_ctx(interface_decl->getASTContext()); in BuildMethod()
612 clang::ASTContext *ast_ctx = m_ast_ctx.getASTContext(); in FindTypes()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DAnalysisManager.h79 ASTContext &getASTContext() override { in getASTContext() function
84 return getASTContext().getSourceManager(); in getSourceManager()
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp97 Body = getBodyFarm(getASTContext()).getBody(FD); in getBody()
106 Body = getBodyFarm(getASTContext()).getBody(MD); in getBody()
185 &D->getASTContext(), cfgBuildOptions)); in getCFG()
203 completeCFG.reset(CFG::buildCFG(D, getBody(), &D->getASTContext(), in getUnoptimizedCFG()
243 getCFG()->dump(getASTContext().getLangOpts(), ShowColors); in dumpCFG()
424 ASTContext &Ctx = getAnalysisDeclContext()->getASTContext(); in dumpStack()
/external/lldb/source/Expression/
DClangExpressionDeclMap.cpp198 ASTContext *context(target->GetScratchClangASTContext()->getASTContext()); in AddPersistentVariable()
238 ASTContext *context(target->GetScratchClangASTContext()->getASTContext()); in AddPersistentVariable()
932 &class_decl->getASTContext()); in FindExternalVisibleDecls()
967 … QualType class_pointer_type = method_decl->getASTContext().getPointerType(class_qual_type); in FindExternalVisibleDecls()
970 &method_decl->getASTContext()); in FindExternalVisibleDecls()
1060 &method_decl->getASTContext()); in FindExternalVisibleDecls()
1074 …QualType class_pointer_type = method_decl->getASTContext().getObjCObjectPointerType(QualType(inter… in FindExternalVisibleDecls()
1077 &method_decl->getASTContext()); in FindExternalVisibleDecls()
1084 QualType class_type = method_decl->getASTContext().getObjCClassType(); in FindExternalVisibleDecls()
1087 &method_decl->getASTContext()); in FindExternalVisibleDecls()
[all …]

1234567