Home
last modified time | relevance | path

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

1234567891011

/freebsd-14.2/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-14.2/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.cpp35 clang::ASTContext &dst_clang_ast = dst_ast.getASTContext(); in CopyType()
41 clang::ASTContext &src_clang_ast = src_ast->getASTContext(); in CopyType()
70 clang::ASTContext *src_ast = &decl->getASTContext(); in CopyDecl()
316 &src_ctxt->getASTContext(), &dst.getASTContext()); in DeportType()
332 clang::ASTContext *src_ctx = &decl->getASTContext(); in DeportDecl()
582 GetDelegate(&decl->getASTContext(), origin_ast_ctx)); in CompleteTagDeclWithOrigin()
1068 m_main.GetContextMetadata(&to->getASTContext()); in Imported()
1076 if (origin.ctx != &to->getASTContext()) { in Imported()
1085 &to->getASTContext()); in Imported()
1097 &from->getASTContext()); in Imported()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DDeclContextInternals.h50 ASTContext &C = getASTContext(); in erase_if()
100 ASTContext &C = getASTContext(); in MaybeDeallocList()
123 ASTContext &getASTContext() { in getASTContext() function
126 return ND->getASTContext(); in getASTContext()
127 return getAsList()->D->getASTContext(); in getASTContext()
180 ASTContext &C = Decls.front()->getASTContext(); in replaceExternalDecls()
231 ASTContext &C = D->getASTContext(); in addOrReplaceDecl()
255 ASTContext &C = D->getASTContext(); in addOrReplaceDecl()
271 ASTContext &C = D->getASTContext(); in prependDeclNoReplace()
H A DAbstractBasicReader.h129 using BasicReaderBase<Impl>::getASTContext;
201 elemTy = getASTContext().getRecordType(recordDecl); in readLValuePathSerializationHelper()
207 elemTy = getASTContext().getAsArrayType(elemTy)->getElementType(); in readLValuePathSerializationHelper()
248 auto &ctx = getASTContext(); in readNestedNameSpecifier()
/freebsd-14.2/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 DErrnoModeling.cpp127 ErrnoDecl = getErrnoVar(Mgr.getASTContext()); in checkASTDecl()
129 ErrnoDecl = getErrnoFunc(Mgr.getASTContext()); in checkASTDecl()
136 ASTContext &ACtx = C.getASTContext(); in checkBeginFunction()
174 RMgr.getSymbolicRegion(Sym, GlobalSystemSpace), C.getASTContext()); in checkBeginFunction()
216 QualType IntTy = State->getAnalysisManager().getASTContext().IntTy; in getErrnoValue()
239 C.getSValBuilder().makeIntVal(Value, C.getASTContext().IntTy), in setErrnoValue()
292 NonLoc ZeroVal = SVB.makeZeroVal(C.getASTContext().IntTy).castAs<NonLoc>(); in setErrnoForStdFailure()
H A DConversionChecker.cpp83 if (!Cast->IgnoreParenImpCasts()->isEvaluatable(C.getASTContext())) { in checkPreStmt()
106 if (!Cast->IgnoreParenImpCasts()->isEvaluatable(C.getASTContext())) { in checkPreStmt()
139 if (Cast->isEvaluatable(C.getASTContext())) in isLossOfPrecision()
149 const auto &AC = C.getASTContext(); in isLossOfPrecision()
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()
/freebsd-14.2/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-14.2/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/
H A DAppleObjCDeclVendor.cpp78 static_cast<void *>(&tag_decl->getASTContext()), in CompleteType()
95 static_cast<void *>(&interface_decl->getASTContext()), in CompleteType()
123 m_decl_vendor.m_ast_ctx->getASTContext().getTranslationUnitDecl(); in StartTranslationUnit()
141 m_ast_ctx->getASTContext().setExternalSource(external_source_owning_ptr); in AppleObjCDeclVendor()
151 clang::ASTContext &ast_ctx = m_ast_ctx->getASTContext(); in GetDeclForISA()
306 clang::ASTContext &ast_ctx(interface_decl->getASTContext()); in BuildMethod()
431 clang::ASTContext &context = m_ast_ctx->getASTContext(); in FinishDecl()
491 m_ast_ctx->getASTContext(), interface_decl, clang::SourceLocation(), in FinishDecl()
492 clang::SourceLocation(), &m_ast_ctx->getASTContext().Idents.get(name), in FinishDecl()
544 clang::ASTContext &ast_ctx = m_ast_ctx->getASTContext(); in FindDecls()
/freebsd-14.2/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()
311 SourceTag->getASTContext().getExternalSource()->CompleteType(SourceTag); in CompleteType()
330 SourceInterface->getASTContext().getExternalSource()->CompleteType( in CompleteType()
402 assert(&D->getASTContext() == &Target.AST); in FindOriginalDecl()
411 assert(&S.getASTContext() != &Target.AST); in AddSources()
413 assert(!S.getMerger() || &S.getMerger()->Target.AST == &S.getASTContext()); in AddSources()
423 << " removing source (ASTContext*)" << (void *)&S.getASTContext() in RemoveSources()
428 if (&Importer->getFromContext() == &S.getASTContext()) in RemoveSources()
[all …]
H A DMangle.cpp106 const ASTContext &ASTContext = getASTContext(); in shouldMangleDeclName()
119 if (!getASTContext().getLangOpts().CPlusPlus && in shouldMangleDeclName()
124 if (!getASTContext().getLangOpts().CPlusPlus && !D->hasAttrs()) in shouldMangleDeclName()
140 const ASTContext &ASTContext = getASTContext(); in mangleName()
161 getASTContext().getTargetInfo().getUserLabelPrefix(); in mangleName()
164 llvm::DataLayout(getASTContext().getTargetInfo().getDataLayoutString()) in mangleName()
202 if (getASTContext().getLangOpts().RegCall4) in mangleName()
333 if (getASTContext().getLangOpts().ObjCRuntime.isGNUFamily()) { in mangleObjCMethodName()
465 auto Prefix = getClassSymbolPrefix(Kind, OCD->getASTContext()); in getAllManglings()
485 ASTContext &Ctx = ND->getASTContext(); in getAllManglings()
[all …]
H A DMicrosoftMangle.cpp230 disc = getASTContext().getManglingNumber(ND, isAux()); in getNextDiscriminator()
334 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon2a0933b10111::MicrosoftCXXNameMangler
527 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName()
680 FieldOffset = getASTContext().getFieldOffset(VD); in mangleMemberDataPointer()
683 FieldOffset /= getASTContext().getCharWidth(); in mangleMemberDataPointer()
1559 if (getASTContext().getLangOpts().isCompatibleWithMSVC( in mangleIntegerLiteral()
2361 T = T.getDesugaredType(getASTContext()); in mangleType()
2585 if (!getASTContext().getLangOpts().HLSL) in mangleType()
2928 if (getASTContext().getLangOpts().RegCall4) in mangleCallingConvention()
3219 uint64_t Width = getASTContext().getTypeSize(T); in mangleType()
[all …]
H A DDecl.cpp614 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl()
1882 ASTContext &Context = getASTContext(); in declarationReplaces()
1888 ASTContext &Context = getASTContext(); in declarationReplaces()
2457 getASTContext().Deallocate(Eval); in setInit()
2571 ASTContext &Ctx = getASTContext(); in evaluateValueImpl()
3314 ->getASTContext(); in isReservedGlobalPlacementOperator()
3349 const ASTContext &Ctx = getASTContext(); in isReplaceableGlobalAllocationFunction()
3416 ASTContext &Context = getASTContext(); in isInlineBuiltinDeclaration()
3874 ASTContext &Context = getASTContext(); in isInlineDefinitionExternallyVisible()
5028 ASTContext &Ctx = getASTContext(); in completeDefinition()
[all …]
H A DItaniumMangle.cpp399 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anonf690f6f20111::CXXNameMangler
643 getASTContext(), getASTContext().getTranslationUnitDecl(), in getStdNamespace()
645 &getASTContext().Idents.get("std"), in getStdNamespace()
681 if (D == getASTContext().getVaListTagDecl()) { in getEffectiveDeclContext()
775 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName()
1747 if (getASTContext().getLangOpts().RegCall4) in mangleRegCallName()
4053 getASTContext().getLangOpts()); in mangleRISCVFixedRVVVectorType()
4168 auto &ASTCtx = getASTContext(); in mangleType()
6064 ASTContext &Ctx = Context.getASTContext(); in mangleTemplateArg()
6486 ASTContext &Ctx = Context.getASTContext(); in mangleValueInTemplateArg()
[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.cpp196 ASTContext &C = getASTContext(); in setBases()
874 ASTContext &Ctx = getASTContext(); in addedMember()
1367 ASTContext &Ctx = getASTContext(); in addedMember()
1831 ASTContext &Ctx = getASTContext(); in getVisibleConversionFunctions()
1973 ASTContext &Context = getASTContext(); in getDestructor()
2413 ASTContext &Context = getASTContext(); in isUsualDeallocationFunction()
2478 ASTContext &Context = getASTContext(); in isCopyAssignmentOperator()
2499 ASTContext &Context = getASTContext(); in isMoveAssignmentOperator()
2544 ASTContext &C = Decl->getASTContext(); in getThisType()
2781 ASTContext &Context = getASTContext(); in isCopyOrMoveConstructor()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Interpreter/
H A DValue.cpp124 setKind(ConvertQualTypeToKind(getASTContext(), getType())); in Value()
161 getASTContext().getTypeSizeInChars(getType()).getQuantity(); in Value()
250 ASTContext &Value::getASTContext() { return getInterpreter().getASTContext(); } in getASTContext() function in Value
252 const ASTContext &Value::getASTContext() const { in getASTContext() function in Value
253 return getInterpreter().getASTContext(); in getASTContext()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp125 lldbassert(&m1->getASTContext() == &m2->getASTContext() && in isOverload()
692 ASTContext &ast = getASTContext(); in SetExternalSource()
808 ASTContext &ast = getASTContext(); in GetBuiltinTypeForEncodingAndBitSize()
946 ASTContext &ast = getASTContext(); in GetBuiltinTypeForDWARFEncodingAndBitSize()
1163 ASTContext &ast = getASTContext(); in GetCStringType()
1276 ASTContext &ast = getASTContext(); in CreateRecordType()
2425 getASTContext().getTypeSize(getASTContext().VoidPtrTy), is_signed); in GetPointerSizedIntType()
4724 getASTContext().getTypeSize(getASTContext().ObjCBuiltinClassTy); in GetBitSize()
6110 getASTContext().getTypeSize(getASTContext().ObjCBuiltinClassTy) / in GetChildCompilerTypeAtIndex()
7613 getASTContext(), 0, 0); in AddMethodToCXXRecordType()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp45 ASTContext &AST = S.getASTContext(); in BuiltinTypeDeclBuilder()
89 ASTContext &AST = Record->getASTContext(); in addMemberVariable()
108 QualType Ty = Record->getASTContext().VoidPtrTy; in addHandleMember()
112 Ty = Record->getASTContext().getPointerType( in addHandleMember()
122 Record->addAttr(HLSLResourceAttr::CreateImplicit(Record->getASTContext(), in annotateResourceClass()
155 ASTContext &AST = Record->getASTContext(); in addDefaultHandleConstructor()
220 ASTContext &AST = Record->getASTContext(); in addArraySubscriptOperator()
318 : Builder(RB), AST(RB.Record->getASTContext()) {} in TemplateParameterListBuilder()
382 ASTContext &AST = SemaPtr->getASTContext(); in InitializeSema()
419 ASTContext &AST = SemaPtr->getASTContext(); in defineHLSLVectorAlias()
/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp502 : Var->getASTContext().getUnqualifiedObjCPointerType( in getFragmentsForVar()
505 Fragments.append(getFragmentsForType(T, Var->getASTContext(), After)) in getFragmentsForVar()
535 getFragmentsForType(T, Var->getASTContext(), After); in getFragmentsForVarTemplate()
557 : Param->getASTContext().getUnqualifiedObjCPointerType( in getFragmentsForParam()
608 Block.getTypePtr()->getReturnType(), BlockDecl->getASTContext(), After); in getFragmentsForBlock()
844 Method->getASTContext(), After)) in getFragmentsForCXXMethod()
906 Method->getASTContext(), After)) in getFragmentsForOverloadedOperator()
1091 Decl->getTemplateArgs().asArray(), Decl->getASTContext(), in getFragmentsForClassTemplatePartialSpecialization()
1132 Decl->getTemplateArgs().asArray(), Decl->getASTContext(), in getFragmentsForVarTemplatePartialSpecialization()
1251 Method->getASTContext(), After)) in getFragmentsForObjCMethod()
[all …]
/freebsd-14.2/contrib/llvm-project/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-14.2/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()
161 const SourceManager &SM = S.getASTContext().getSourceManager(); in isAutoGenerated()
252 ASTContext &Context = D->getASTContext(); in saveHash()
321 S, Sequence.getASTContext(), OutputData); in CollectStmtSequenceData()
426 ASTContext &Context = Seq.getASTContext(); in calculateStmtComplexity()

1234567891011