Home
last modified time | relevance | path

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

12345678910

/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.cpp33 clang::ASTContext &dst_clang_ast = dst_ast.getASTContext(); in CopyType()
40 clang::ASTContext &src_clang_ast = src_ast->getASTContext(); in CopyType()
70 clang::ASTContext *src_ast = &decl->getASTContext(); in CopyDecl()
315 &src_ctxt->getASTContext(), &dst.getASTContext()); in DeportType()
331 clang::ASTContext *src_ctx = &decl->getASTContext(); in DeportDecl()
581 GetDelegate(&decl->getASTContext(), origin_ast_ctx)); in CompleteTagDeclWithOrigin()
1103 m_master.GetContextMetadata(&to->getASTContext()); in Imported()
1111 if (origin.ctx != &to->getASTContext()) { in Imported()
1126 &to->getASTContext()); in Imported()
1138 &from->getASTContext()); in Imported()
[all …]
H A DCxxModuleHandler.cpp71 IdentifierInfo &ident = sema.getASTContext().Idents.get(name); in emulateLookupInCtxt()
131 return sema.getASTContext().getTranslationUnitDecl(); in getEqualLocalDeclContext()
252 TemplateArgument(d->getASTContext(), integral, *type)); in tryInstantiateStdTemplate()
275 *m_importer, d, m_sema->getASTContext(), in tryInstantiateStdTemplate()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DASTMerge.cpp36 CI.getASTContext().getLangOpts()); in ExecuteAction()
38 &CI.getASTContext()); in ExecuteAction()
42 *CI.getASTContext().getTranslationUnitDecl()); in ExecuteAction()
56 ASTImporter Importer(CI.getASTContext(), CI.getFileManager(), in ExecuteAction()
57 Unit->getASTContext(), Unit->getFileManager(), in ExecuteAction()
60 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in ExecuteAction()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DDeclContextInternals.h50 ASTContext &C = getASTContext(); in erase_if()
101 ASTContext &C = getASTContext(); in MaybeDeallocList()
124 ASTContext &getASTContext() { in getASTContext() function
127 return ND->getASTContext(); in getASTContext()
128 return getAsList()->D->getASTContext(); in getASTContext()
181 ASTContext &C = Decls.front()->getASTContext(); in replaceExternalDecls()
232 ASTContext &C = D->getASTContext(); in addOrReplaceDecl()
256 ASTContext &C = D->getASTContext(); in addOrReplaceDecl()
272 ASTContext &C = D->getASTContext(); in prependDeclNoReplace()
H A DAbstractBasicReader.h129 using BasicReaderBase<Impl>::getASTContext;
200 elemTy = getASTContext().getRecordType(recordDecl); in readLValuePathSerializationHelper()
206 elemTy = getASTContext().getAsArrayType(elemTy)->getElementType(); in readLValuePathSerializationHelper()
247 auto &ctx = getASTContext(); in readNestedNameSpecifier()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckPlacementNew.cpp76 ASTContext &AstContext = C.getASTContext(); in getExtentSizeOfNewTarget()
95 C.getASTContext().getCharWidth(), in getExtentSizeOfNewTarget()
169 unsigned StorageTAlign = C.getASTContext().getTypeAlign(VD->getType()); in getStorageAlign()
173 return StorageTAlign / C.getASTContext().getCharWidth(); in getStorageAlign()
222 TheOffsetRegion.getOffset() / C.getASTContext().getCharWidth(); in checkElementRegionAlign()
252 Offset.getOffset() / C.getASTContext().getCharWidth(); in checkFieldRegionAlign()
279 unsigned AllocatedTAlign = C.getASTContext().getTypeAlign(AllocatedT) / in checkPlaceIsAlignedProperly()
280 C.getASTContext().getCharWidth(); in checkPlaceIsAlignedProperly()
H A DIdenticalExprChecker.cpp91 if (isIdenticalStmt(AC->getASTContext(), RHS, B2->getRHS())) { in checkBitwiseOrLogicalOp()
99 if (isIdenticalStmt(AC->getASTContext(), RHS, LHS)) { in checkBitwiseOrLogicalOp()
118 …if (InnerIf && isIdenticalStmt(AC->getASTContext(), I->getCond(), InnerIf->getCond(), /*IgnoreSide… in VisitIfStmt()
140 if (isIdenticalStmt(AC->getASTContext(), Cond1, Cond2, false)) { in VisitIfStmt()
170 if (isIdenticalStmt(AC->getASTContext(), Stmt1, Stmt2, true)) { in VisitIfStmt()
253 if (isIdenticalStmt(AC->getASTContext(), B->getLHS(), B->getRHS())) { in checkComparisonOp()
276 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()
165 SourceRange range = genName(os, R, C.getASTContext()); in EmitStackError()
204 SourceRange Range = genName(Out, Region, C.getASTContext()); in checkAsyncExecutedBlockCaptures()
228 SourceRange Range = genName(Out, Region, C.getASTContext()); in checkReturnedBlockCaptures()
350 SourceRange Range = genName(Out, P.second, Ctx.getASTContext()); in checkEndFunction()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DRenamingAction.cpp48 getUSRsForDeclaration(ND, Context.getASTContext()); in findSymbolOccurrences()
51 Context.getASTContext().getTranslationUnitDecl()); in findSymbolOccurrences()
69 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate()
87 *Occurrences, Context.getASTContext().getSourceManager(), Name); in createSourceReplacements()
95 getNamedDeclFor(Context.getASTContext(), OldQualifiedName); in initiate()
138 auto USRs = getUSRsForDeclaration(ND, Context.getASTContext()); in createSourceReplacements()
141 USRs, NewQualifiedName, Context.getASTContext().getTranslationUnitDecl()); in createSourceReplacements()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCDeclVendor.cpp77 static_cast<void *>(&tag_decl->getASTContext()), in CompleteType()
96 static_cast<void *>(&interface_decl->getASTContext()), in CompleteType()
125 m_decl_vendor.m_ast_ctx.getASTContext().getTranslationUnitDecl(); in StartTranslationUnit()
143 m_ast_ctx.getASTContext().setExternalSource(external_source_owning_ptr); in AppleObjCDeclVendor()
153 clang::ASTContext &ast_ctx = m_ast_ctx.getASTContext(); in GetDeclForISA()
308 clang::ASTContext &ast_ctx(interface_decl->getASTContext()); in BuildMethod()
433 clang::ASTContext &context = m_ast_ctx.getASTContext(); in FinishDecl()
493 m_ast_ctx.getASTContext(), interface_decl, clang::SourceLocation(), in FinishDecl()
494 clang::SourceLocation(), &m_ast_ctx.getASTContext().Idents.get(name), in FinishDecl()
546 clang::ASTContext &ast_ctx = m_ast_ctx.getASTContext(); in FindDecls()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DExternalASTMerger.cpp117 : ASTImporter(ToContext, ToFileManager, S.getASTContext(), in LazyASTImporter()
121 Reverse(S.getASTContext(), S.getFileManager(), ToContext, ToFileManager, in LazyASTImporter()
170 ASTContext &PersistentCtx = Persistent->getASTContext(); in ImportImpl()
314 SourceTag->getASTContext().getExternalSource()->CompleteType(SourceTag); in CompleteType()
333 SourceInterface->getASTContext().getExternalSource()->CompleteType( in CompleteType()
405 assert(&D->getASTContext() == &Target.AST); in FindOriginalDecl()
414 assert(&S.getASTContext() != &Target.AST); in AddSources()
416 assert(!S.getMerger() || &S.getMerger()->Target.AST == &S.getASTContext()); in AddSources()
426 << " removing source (ASTContext*)" << (void *)&S.getASTContext() in RemoveSources()
432 if (&Importer->getFromContext() == &S.getASTContext()) in RemoveSources()
[all …]
H A DDecl.cpp632 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl()
1765 ASTContext &Context = getASTContext(); in declarationReplaces()
1771 ASTContext &Context = getASTContext(); in declarationReplaces()
2321 getASTContext().Deallocate(Eval); in setInit()
3079 ->getASTContext(); in isReservedGlobalPlacementOperator()
3114 ASTContext &Ctx = getASTContext(); in isReplaceableGlobalAllocationFunction()
3299 ASTContext &Context = getASTContext(); in getBuiltinID()
3444 ASTContext &Context = getASTContext(); in doesDeclarationForceExternallyVisibleDefinition()
3565 ASTContext &Context = getASTContext(); in isInlineDefinitionExternallyVisible()
4577 ASTContext &Ctx = getASTContext(); in completeDefinition()
[all …]
H A DMangle.cpp108 const ASTContext &ASTContext = getASTContext(); in shouldMangleDeclName()
121 if (!getASTContext().getLangOpts().CPlusPlus && in shouldMangleDeclName()
126 if (!getASTContext().getLangOpts().CPlusPlus && !D->hasAttrs()) in shouldMangleDeclName()
142 const ASTContext &ASTContext = getASTContext(); in mangleName()
163 getASTContext().getTargetInfo().getUserLabelPrefix(); in mangleName()
166 llvm::DataLayout(getASTContext().getTargetInfo().getDataLayoutString()) in mangleName()
325 if (getASTContext().getLangOpts().ObjCRuntime.isGNUFamily()) { in mangleObjCMethodName()
457 auto Prefix = getClassSymbolPrefix(Kind, OCD->getASTContext()); in getAllManglings()
477 ASTContext &Ctx = ND->getASTContext(); in getAllManglings()
542 OS << getClassSymbolPrefix(ObjCClass, D->getASTContext()); in writeObjCClassName()
H A DMicrosoftMangle.cpp211 disc = getASTContext().getManglingNumber(ND); in getNextDiscriminator()
319 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anonb36581af0111::MicrosoftCXXNameMangler
506 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName()
658 FieldOffset = getASTContext().getFieldOffset(VD); in mangleMemberDataPointer()
661 FieldOffset /= getASTContext().getCharWidth(); in mangleMemberDataPointer()
762 getASTContext().getTargetInfo().getPointerWidth(0)); in mangleVirtualMemPtrThunk()
1461 if (getASTContext().getLangOpts().isCompatibleWithMSVC( in mangleIntegerLiteral()
2209 T = T.getDesugaredType(getASTContext()); in mangleType()
2527 CC = getASTContext().getDefaultCallingConvention( in mangleFunctionType()
3038 uint64_t Width = getASTContext().getTypeSize(T); in mangleType()
[all …]
H A DDeclOpenMP.cpp128 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope()
133 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope()
160 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope()
165 PrevDeclInScope.get(getASTContext().getExternalSource())); in getPrevDeclInScope()
H A DDeclCXX.cpp195 ASTContext &C = getASTContext(); in setBases()
1376 ASTContext &Ctx = getASTContext(); in addedMember()
1746 ASTContext &Ctx = getASTContext(); in getVisibleConversionFunctions()
1888 ASTContext &Context = getASTContext(); in getDestructor()
2326 ASTContext &Context = getASTContext(); in isUsualDeallocationFunction()
2379 ASTContext &Context = getASTContext(); in isCopyAssignmentOperator()
2400 ASTContext &Context = getASTContext(); in isMoveAssignmentOperator()
2445 ASTContext &C = Decl->getASTContext(); in getThisType()
2452 ASTContext &C = Decl->getASTContext(); in getThisObjectType()
2682 ASTContext &Context = getASTContext(); in isCopyOrMoveConstructor()
[all …]
H A DItaniumMangle.cpp74 return VD->getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext()
78 return FD->getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext()
428 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anond7e5ad700111::CXXNameMangler
696 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName()
2796 ty = Context.getASTContext().getAsArrayType(T); in mangleType()
3717 auto &ASTCtx = getASTContext(); in mangleType()
3961 TemplateArgument TA(Context.getASTContext(), BW, getASTContext().IntTy); in mangleType()
5322 ASTContext &Ctx = Context.getASTContext(); in mangleTemplateArg()
5360 ASTContext &Ctx = Context.getASTContext(); in mangleTemplateArgExpr()
5698 ASTContext &Ctx = Context.getASTContext(); in mangleValueInTemplateArg()
[all …]
H A DDeclBase.cpp120 return getASTContext().getLangOpts().trackLocalOwningModule(); in hasLocalOwningModuleStorage()
336 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext()
414 ASTContext &Decl::getASTContext() const { in getASTContext() function in Decl
415 return getTranslationUnitDecl()->getASTContext(); in getASTContext()
421 return getASTContext().getLangOpts(); in getLangOpts()
425 return getASTContext().getASTMutationListener(); in getASTMutationListener()
434 ASTContext &Ctx = getASTContext(); in getMaxAlignment()
675 const ASTContext &Context = getASTContext(); in getVersionIntroduced()
882 getASTContext().eraseDeclAttrs(this); in dropAttrs()
910 return getASTContext().getDeclAttrs(this); in getAttrs()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp120 lldbassert(&m1->getASTContext() == &m2->getASTContext() && in isOverload()
689 ASTContext &ast = getASTContext(); in SetExternalSource()
807 ASTContext &ast = getASTContext(); in GetBuiltinTypeForEncodingAndBitSize()
953 ASTContext &ast = getASTContext(); in GetBuiltinTypeForDWARFEncodingAndBitSize()
1174 ASTContext &ast = getASTContext(); in GetCStringType()
1288 ASTContext &ast = getASTContext(); in CreateRecordType()
2382 getASTContext().getTypeSize(getASTContext().VoidPtrTy), is_signed); in GetPointerSizedIntType()
4701 getASTContext().getTypeSize(getASTContext().ObjCBuiltinClassTy); in GetBitSize()
6139 getASTContext().getTypeSize(getASTContext().ObjCBuiltinClassTy) / in GetChildCompilerTypeAtIndex()
7570 getASTContext(), 0, 0); in AddMethodToCXXRecordType()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAnalysisManager.h82 ASTContext &getASTContext() override { in getASTContext() function
87 return getASTContext().getSourceManager(); in getSourceManager()
151 const SourceManager &SM = getASTContext().getSourceManager(); in isInCodeFile()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DDiagOutputUtils.h21 D->getNameForDiagnostic(Os, D->getASTContext().getPrintingPolicy(), in printQuotedQualifiedName()
29 D->getNameForDiagnostic(Os, D->getASTContext().getPrintingPolicy(), in printQuotedName()
/freebsd-13.1/contrib/llvm-project/clang/lib/Edit/
H A DRewriteObjCFoundationAPI.cpp206 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToArraySubscriptGet()
216 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToDictionarySubscriptGet()
226 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToArraySubscriptSet()
260 if (!canRewriteToSubscriptSyntax(IFace, Msg, NS.getASTContext(), in rewriteToDictionarySubscriptSet()
299 NS.getASTContext().getObjContainingInterface(Method); in rewriteToObjCSubscriptSyntax()
412 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in rewriteToArrayLiteral()
472 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in getNSArrayObjects()
529 if (!NS.getASTContext().isSentinelNullExpr(SentinelExpr)) in rewriteToDictionaryLiteral()
776 ASTContext &Ctx = NS.getASTContext(); in rewriteToNumberLiteral()
984 ASTContext &Ctx = NS.getASTContext(); in rewriteToNumericBoxedExpression()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/CrossTU/
H A DCrossTranslationUnit.cpp216 : Context(CI.getASTContext()), ASTStorage(CI) {} in CrossTranslationUnitContext()
272 &Unit->getASTContext().getSourceManager().getFileManager()); in getCrossTUDefinitionImpl()
276 Unit->getASTContext().getTargetInfo().getTriple(); in getCrossTUDefinitionImpl()
291 const auto &LangFrom = Unit->getASTContext().getLangOpts(); in getCrossTUDefinitionImpl()
322 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in getCrossTUDefinitionImpl()
373 LoadGuard(CI.getASTContext().getLangOpts().CPlusPlus in ASTUnitStorage()
708 assert(&D->getASTContext() == &Unit->getASTContext() && in importDefinitionImpl()
735 ToDecl->getASTContext().getParentMapContext().clear(); in importDefinitionImpl()
760 ASTContext &From = Unit->getASTContext(); in getOrCreateASTImporter()
/freebsd-13.1/contrib/llvm-project/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()
162 const SourceManager &SM = S.getASTContext().getSourceManager(); in isAutoGenerated()
253 ASTContext &Context = D->getASTContext(); in saveHash()
322 S, Sequence.getASTContext(), OutputData); in CollectStmtSequenceData()
427 ASTContext &Context = Seq.getASTContext(); in calculateStmtComplexity()
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParseAST.cpp144 ExternalASTSource *External = S.getASTContext().getExternalSource(); in ParseAST()
171 Consumer->HandleTranslationUnit(S.getASTContext()); in ParseAST()
184 S.getASTContext().PrintStats(); in ParseAST()

12345678910