Home
last modified time | relevance | path

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

12345678

/freebsd-12.1/contrib/llvm/tools/lldb/source/Symbol/
H A DClangASTContext.cpp134 lldbassert(&m1->getASTContext() == &m2->getASTContext() && in isOverload()
2927 getASTContext(), in IsArrayType()
2940 getASTContext(), in IsArrayType()
4057 getASTContext(), getASTContext()->ObjCBuiltinClassTy); in GetTypeInfo()
4564 getASTContext(), in GetFullyUnqualifiedType()
6624 getASTContext()->getTypeSize(getASTContext()->ObjCBuiltinClassTy) / in GetChildCompilerTypeAtIndex()
6771 getASTContext(), getASTContext()->getObjCInterfaceType( in GetChildCompilerTypeAtIndex()
7043 getASTContext(), in GetChildCompilerTypeAtIndex()
7054 getASTContext(), in GetChildCompilerTypeAtIndex()
7065 getASTContext(), in GetChildCompilerTypeAtIndex()
[all …]
H A DClangASTImporter.cpp76 clang::ASTContext *dst_clang_ast = dst_ast.getASTContext(); in CopyType()
81 clang::ASTContext *src_clang_ast = src_ast->getASTContext(); in CopyType()
569 clang::ASTContext *origin_ast_ctx = &origin_decl->getASTContext(); in CompleteTagDeclWithOrigin()
728 iter->second.ctx = &original_decl->getASTContext(); in SetDeclOrigin()
970 m_master.GetContextMetadata(&to->getASTContext()); in Imported()
982 if (origin_iter->second.ctx != &to->getASTContext()) in Imported()
998 static_cast<void *>(&from->getASTContext()), in Imported()
999 static_cast<void *>(&to->getASTContext())); in Imported()
1022 static_cast<void *>(&from->getASTContext())); in Imported()
1046 static_cast<void *>(&to->getASTContext())); in Imported()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/
H A DASTMerge.cpp37 CI.getASTContext().getLangOpts()); in ExecuteAction()
39 &CI.getASTContext()); in ExecuteAction()
43 *CI.getASTContext().getTranslationUnitDecl()); in ExecuteAction()
57 ASTImporter Importer(CI.getASTContext(), CI.getFileManager(), in ExecuteAction()
58 Unit->getASTContext(), Unit->getFileManager(), in ExecuteAction()
61 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in ExecuteAction()
H A DChainedIncludesSource.cpp45 CIs[i]->getASTContext().getExternalSource()) { in getMemoryBufferSizes()
86 Reader.reset(new ASTReader(PP, &CI.getASTContext(), in createASTReader()
165 Clang->getASTContext().setASTMutationListener( in createChainedIncludesSource()
193 Clang->getASTContext().setExternalSource(Reader); in createChainedIncludesSource()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCDeclVendor.cpp82 current_id, static_cast<void *>(&tag_decl->getASTContext()), in CompleteType()
110 static_cast<void *>(&interface_decl->getASTContext()), in CompleteType()
141 m_decl_vendor.m_ast_ctx.getASTContext()->getTranslationUnitDecl(); in StartTranslationUnit()
161 m_ast_ctx.getASTContext()->setExternalSource(external_source_owning_ptr); in AppleObjCDeclVendor()
171 clang::ASTContext *ast_ctx = m_ast_ctx.getASTContext(); in GetDeclForISA()
325 clang::ASTContext &ast_ctx(interface_decl->getASTContext()); in BuildMethod()
367 interface_decl->getASTContext(), m_type_vector[0].c_str(), in BuildMethod()
449 clang::ASTContext *context = m_ast_ctx.getASTContext(); in FinishDecl()
512 *m_ast_ctx.getASTContext(), interface_decl, clang::SourceLocation(), in FinishDecl()
573 clang::ASTContext *ast_ctx = m_ast_ctx.getASTContext(); in FindDecls()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/Rename/
H A DRenamingAction.cpp49 getUSRsForDeclaration(ND, Context.getASTContext()); in findSymbolOccurrences()
52 Context.getASTContext().getTranslationUnitDecl()); in findSymbolOccurrences()
70 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate()
86 *Occurrences, Context.getASTContext().getSourceManager(), Name); in createSourceReplacements()
94 getNamedDeclFor(Context.getASTContext(), OldQualifiedName); in initiate()
137 auto USRs = getUSRsForDeclaration(ND, Context.getASTContext()); in createSourceReplacements()
140 USRs, NewQualifiedName, Context.getASTContext().getTranslationUnitDecl()); in createSourceReplacements()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DMicrosoftMangle.cpp212 disc = getASTContext().getManglingNumber(ND); in getNextDiscriminator()
273 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon34da63ca0111::MicrosoftCXXNameMangler
443 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName()
587 FieldOffset = getASTContext().getFieldOffset(VD); in mangleMemberDataPointer()
590 FieldOffset /= getASTContext().getCharWidth(); in mangleMemberDataPointer()
691 getASTContext().getTargetInfo().getPointerWidth(0)); in mangleVirtualMemPtrThunk()
1338 E = E->IgnoreParenNoopCasts(Context.getASTContext()); in mangleExpression()
1850 T = T.getDesugaredType(getASTContext()); in mangleType()
2159 CC = getASTContext().getDefaultCallingConvention( in mangleFunctionType()
2653 uint64_t Width = getASTContext().getTypeSize(T); in mangleType()
[all …]
H A DDecl.cpp617 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl()
1675 ASTContext &Context = getASTContext(); in declarationReplaces()
1681 ASTContext &Context = getASTContext(); in declarationReplaces()
1978 ASTContext &Context = D.getASTContext(); in getDeclLanguageLinkage()
2208 getASTContext().Deallocate(Eval); in setInit()
2811 ->getASTContext(); in isReservedGlobalPlacementOperator()
2845 ASTContext &Ctx = getASTContext(); in isReplaceableGlobalAllocationFunction()
3002 ASTContext &Context = getASTContext(); in getBuiltinID()
3146 ASTContext &Context = getASTContext(); in doesDeclarationForceExternallyVisibleDefinition()
3255 ASTContext &Context = getASTContext(); in isInlineDefinitionExternallyVisible()
[all …]
H A DDeclCXX.cpp187 ASTContext &C = getASTContext(); in setBases()
820 ASTContext &Ctx = getASTContext(); in addedMember()
1266 ASTContext &Ctx = getASTContext(); in addedMember()
1556 ASTContext &Ctx = getASTContext(); in getVisibleConversionFunctions()
1698 ASTContext &Context = getASTContext(); in getDestructor()
2070 ASTContext &Context = getASTContext(); in isUsualDeallocationFunction()
2118 ASTContext &Context = getASTContext(); in isCopyAssignmentOperator()
2139 ASTContext &Context = getASTContext(); in isMoveAssignmentOperator()
2178 ASTContext &C = Decl->getASTContext(); in getThisType()
2401 ASTContext &Context = getASTContext(); in isCopyOrMoveConstructor()
[all …]
H A DDeclBase.cpp64 getASTContext().getExternalSource()->updateOutOfDateIdentifier(II); in updateOutOfDate()
120 return getASTContext().getLangOpts().trackLocalOwningModule(); in hasLocalOwningModuleStorage()
304 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext()
376 ASTContext &Decl::getASTContext() const { in getASTContext() function in Decl
377 return getTranslationUnitDecl()->getASTContext(); in getASTContext()
381 return getASTContext().getASTMutationListener(); in getASTMutationListener()
390 ASTContext &Ctx = getASTContext(); in getMaxAlignment()
642 const ASTContext &Context = getASTContext(); in getVersionIntroduced()
837 getASTContext().eraseDeclAttrs(this); in dropAttrs()
865 return getASTContext().getDeclAttrs(this); in getAttrs()
[all …]
H A DMangle.cpp94 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()
H A DDeclObjC.cpp603 Data.setPointer(new (getASTContext()) DefinitionData()); in allocateDefinitionData()
853 return Body.get(getASTContext().getExternalSource()); in getBody()
907 ASTContext &Ctx = getASTContext(); in getNextRedeclarationImpl()
1164 ASTContext &Ctx = getASTContext(); in getSendResultType()
1503 getASTContext().getExternalSource()->CompleteType( in LoadExternalDefinition()
1508 assert(getASTContext().getExternalSource() && in setExternallyCompleted()
1554 return getASTContext().getObjCImplementation( in getImplementation()
1912 Data.setPointer(new (getASTContext()) DefinitionData); in allocateDefinitionData()
2021 return getASTContext().getObjCImplementation( in getImplementation()
2026 getASTContext().setObjCImplementation(this, ImplD); in setImplementation()
[all …]
H A DItaniumMangle.cpp70 return VD->getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext()
74 return FD->getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext()
380 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon56f54ccb0111::CXXNameMangler
601 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName()
2403 isTypeSubstitutable(quals, ty, Context.getASTContext()); in mangleType()
2410 ty = Context.getASTContext().getAsArrayType(T); in mangleType()
3005 getASTContext().getTypeSize(EltType)); in mangleNeonVectorType()
3112 getASTContext().getTargetInfo().getTriple().getArch(); in mangleType()
3134 getASTContext().getTargetInfo().getTriple().getArch(); in mangleType()
3277 getASTContext().getDependentTemplateName(T->getQualifier(), in mangleType()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h80 ASTContext &getASTContext() override { in getASTContext() function
85 return getASTContext().getSourceManager(); in getSourceManager()
153 const SourceManager &SM = getASTContext().getSourceManager(); in isInCodeFile()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTSource.cpp80 lldbassert(module_ast_ctx->getASTContext()); in InstallASTContext()
82 sources.push_back({*module_ast_ctx->getASTContext(), in InstallASTContext()
127 sources.push_back({*scratch_ast_context->getASTContext(), in InstallASTContext()
153 scratch_clang_ast_context->getASTContext(); in ~ClangASTSource()
595 original_ctx = &complete_iface_decl->getASTContext(); in FindExternalLexicalDecls()
1440 origin_iface_decl->getASTContext().Idents.get(name)); in FindObjCPropertyAndIvarDeclsWithOrigin()
1740 &origin_record->getASTContext(), in layoutRecordType()
1766 lldbassert(&record->getASTContext() == m_ast_context); in layoutRecordType()
1973 clang::ASTContext &from_context = src_decl->getASTContext(); in CopyDecl()
2057 clang::ASTContext *ast = lldb_ast->getASTContext(); in AddVarDecl()
[all …]
H A DClangExpressionDeclMap.cpp285 assert (source.getASTContext() == m_ast_context); in DeportType()
289 target.getASTContext(), source.getASTContext(), in DeportType()
294 source.getASTContext()->getSourceManager().getFileID( in DeportType()
300 *source.getASTContext(), *source.getFileManager(), in DeportType()
892 scratch_clang_ast_context->getASTContext(); in FindExternalVisibleDecls()
1073 method_decl->getASTContext().getObjCObjectPointerType( in FindExternalVisibleDecls()
1591 ASTContext *ast = clang_ast->getASTContext(); in GetVariableValue()
1773 target->GetScratchClangASTContext()->getASTContext(); in AddOneGenericVariable()
1854 ClangASTContext::GetASTContext(&var_decl->getASTContext())); in ResolveUnknownTypes()
1859 scratch_ast_context->getASTContext(), &var_decl->getASTContext(), in ResolveUnknownTypes()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp207 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()
413 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in rewriteToArrayLiteral()
473 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in getNSArrayObjects()
530 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in rewriteToDictionaryLiteral()
777 ASTContext &Ctx = NS.getASTContext(); in rewriteToNumberLiteral()
985 ASTContext &Ctx = NS.getASTContext(); in rewriteToNumericBoxedExpression()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp160 : CI(CI), Context(CI.getASTContext()) {} in CrossTranslationUnitContext()
212 &Unit->getASTContext().getSourceManager().getFileManager()); in getCrossTUDefinition()
216 Unit->getASTContext().getTargetInfo().getTriple(); in getCrossTUDefinition()
231 const auto &LangFrom = Unit->getASTContext().getLangOpts(); in getCrossTUDefinition()
239 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in getCrossTUDefinition()
334 ASTImporter &Importer = getOrCreateASTImporter(FD->getASTContext()); in importDefinition()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp92 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()
277 if (isIdenticalStmt(AC->getASTContext(), C->getTrueExpr(), in VisitConditionalOperator()
H A DStackAddrEscapeChecker.cpp116 return C.getASTContext().getLangOpts().ObjCAutoRefCount && in isArcManagedBlock()
128 dispatch_semaphore_tII = &B.getASTContext().Idents.get("dispatch_semaphore_t"); in isSemaphoreCaptured()
164 SourceRange range = genName(os, R, C.getASTContext()); in EmitStackError()
201 SourceRange Range = genName(Out, Region, C.getASTContext()); in checkAsyncExecutedBlockCaptures()
224 SourceRange Range = genName(Out, Region, C.getASTContext()); in checkReturnedBlockCaptures()
345 SourceRange Range = genName(Out, P.second, Ctx.getASTContext()); in checkEndFunction()
H A DNoReturnFunctionChecker.cpp124 lazyInitKeywordSelector(HandleFailureInFunctionSel, C.getASTContext(), in checkPostObjCMessage()
131 lazyInitKeywordSelector(HandleFailureInMethodSel, C.getASTContext(), in checkPostObjCMessage()
H A DDynamicTypePropagation.cpp144 ASTContext &Ctx = C.getASTContext(); in recordFixedType()
225 C.getASTContext().getObjCObjectPointerType(QualType(ObjTy, 0)); in checkPostCall()
545 ASTContext &ASTCtxt = C.getASTContext(); in checkPostStmt()
727 ASTContext &ASTCtxt = C.getASTContext(); in checkPreObjCMessage()
840 C.getASTContext().getObjCObjectPointerType( in checkPostObjCMessage()
864 ASTContext &ASTCtxt = C.getASTContext(); in checkPostObjCMessage()
954 const LangOptions &LangOpts = BRC.getASTContext().getLangOpts(); in VisitNode()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Parse/
H A DParseAST.cpp144 ExternalASTSource *External = S.getASTContext().getExternalSource(); in ParseAST()
170 Consumer->HandleTranslationUnit(S.getASTContext()); in ParseAST()
183 S.getASTContext().PrintStats(); in ParseAST()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DCloneDetection.cpp43 const SourceManager &SM = getASTContext().getSourceManager(); in contains()
75 ASTContext &StmtSequence::getASTContext() const { in getASTContext() function in StmtSequence
77 return D->getASTContext(); in getASTContext()
163 const SourceManager &SM = S.getASTContext().getSourceManager(); in isAutoGenerated()
254 ASTContext &Context = D->getASTContext(); in saveHash()
323 S, Sequence.getASTContext(), OutputData); in CollectStmtSequenceData()
432 ASTContext &Context = Seq.getASTContext(); in calculateStmtComplexity()
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Symbol/
H A DClangASTContext.h90 clang::ASTContext *getASTContext();
132 return ClangASTContext::GetCompleteDecl(getASTContext(), decl); in GetCompleteDecl()
146 SetMetadata(getASTContext(), object, meta_data); in SetMetadata()
153 return GetMetadata(getASTContext(), object); in GetMetadata()
187 return ClangASTContext::GetUnknownAnyType(getASTContext()); in GetUnknownAnyType()
199 return GetTranslationUnitDecl(getASTContext()); in GetTranslationUnitDecl()
222 clang::ASTContext *ast = getASTContext();
395 getASTContext(), result_type, args, num_args, is_variadic, type_quals); in CreateFunctionType()
402 return ClangASTContext::CreateFunctionType(getASTContext(), result_type, in CreateFunctionType()
441 return GetPointerSizedIntType(getASTContext(), is_signed); in GetPointerSizedIntType()

12345678