Home
last modified time | relevance | path

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

12345678910>>...12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaWasm.cpp58 TheCall->setType(getASTContext().getWebAssemblyExternrefType()); in BuiltinWasmRefNullExtern()
64 ASTContext &Context = getASTContext(); in BuiltinWasmRefNullFunc()
120 if (!getASTContext().hasSameType(ElTy, TheCall->getArg(2)->getType())) in BuiltinWasmTableSet()
150 if (!getASTContext().hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableGrow()
177 if (!getASTContext().hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableFill()
205 if (!getASTContext().hasSameType(XElTy, YElTy)) { in BuiltinWasmTableCopy()
261 return ::new (getASTContext()) in mergeImportModuleAttr()
262 WebAssemblyImportModuleAttr(getASTContext(), AL, AL.getImportModule()); in mergeImportModuleAttr()
281 return ::new (getASTContext()) in mergeImportNameAttr()
282 WebAssemblyImportNameAttr(getASTContext(), AL, AL.getImportName()); in mergeImportNameAttr()
[all …]
H A DSemaCUDA.cpp57 FunctionDecl *ConfigDecl = getASTContext().getcudaConfigureCallDecl(); in ActOnExecConfigExpr()
63 DeclRefExpr *ConfigDR = new (getASTContext()) DeclRefExpr( in ActOnExecConfigExpr()
64 getASTContext(), ConfigDecl, false, ConfigQTy, VK_LValue, LLLLoc); in ActOnExecConfigExpr()
441 CUDAInvalidTargetAttr::CreateImplicit(getASTContext())); in inferTargetForImplicitSpecialMember()
454 getASTContext().getBaseElementType(F->getType())->getAs<RecordType>(); in inferTargetForImplicitSpecialMember()
485 CUDAInvalidTargetAttr::CreateImplicit(getASTContext())); in inferTargetForImplicitSpecialMember()
505 MemberDecl->addAttr(CUDADeviceAttr::CreateImplicit(getASTContext())); in inferTargetForImplicitSpecialMember()
507 MemberDecl->addAttr(CUDAHostAttr::CreateImplicit(getASTContext())); in inferTargetForImplicitSpecialMember()
641 ASTContext::CUDAConstantEvalContextRAII EvalCtx(S.getASTContext(), in HasAllowedCUDADeviceStaticInitializer()
643 return Init->isConstantInitializer(S.getASTContext(), in HasAllowedCUDADeviceStaticInitializer()
[all …]
H A DSemaSwift.cpp39 return ::new (getASTContext()) SwiftNameAttr(getASTContext(), SNA, Name); in mergeNameAttr()
82 D->addAttr(::new (getASTContext()) SwiftAttrAttr(getASTContext(), AL, Str)); in handleAttrAttr()
100 D->addAttr(::new (getASTContext()) SwiftBridgeAttr(getASTContext(), AL, BT)); in handleBridge()
196 D->addAttr(::new (getASTContext()) in handleError()
197 SwiftErrorAttr(getASTContext(), AL, Convention)); in handleError()
312 auto *ErrorAttr = ::new (getASTContext()) in handleAsyncError()
313 SwiftAsyncErrorAttr(getASTContext(), AL, ConvKind, ParamIdx); in handleAsyncError()
613 D->addAttr(::new (getASTContext()) SwiftNameAttr(getASTContext(), AL, Name)); in handleName()
625 D->addAttr(::new (getASTContext()) in handleAsyncName()
626 SwiftAsyncNameAttr(getASTContext(), AL, Name)); in handleAsyncName()
[all …]
H A DSemaM68k.cpp36 auto MaybeNumParams = NumParamsExpr->getIntegerConstantExpr(getASTContext()); in handleInterruptAttr()
52 D->addAttr(::new (getASTContext()) in handleInterruptAttr()
53 M68kInterruptAttr(getASTContext(), AL, Num)); in handleInterruptAttr()
54 D->addAttr(UsedAttr::CreateImplicit(getASTContext())); in handleInterruptAttr()
H A DSemaObjC.cpp38 ASTContext &Context = getASTContext(); in ActOnObjCForCollectionStmt()
122 ASTContext &Context = getASTContext(); in CheckObjCForCollectionOperand()
209 ASTContext &Context = getASTContext(); in ActOnObjCAtCatchStmt()
218 ASTContext &Context = getASTContext(); in ActOnObjCAtFinallyStmt()
225 ASTContext &Context = getASTContext(); in ActOnObjCAtTryStmt()
243 ASTContext &Context = getASTContext(); in BuildObjCAtThrowStmt()
327 ASTContext &Context = getASTContext(); in ActOnObjCAtSynchronizedStmt()
335 ASTContext &Context = getASTContext(); in ActOnObjCAutoreleasePoolStmt()
343 ASTContext &Context = getASTContext(); in actOnObjCProtocolQualifierType()
383 ASTContext &Context = getASTContext(); in actOnObjCTypeArgsAndProtocolQualifiers()
[all …]
H A DSemaAMDGPU.cpp74 if (!ArgExpr->EvaluateAsInt(ArgResult, getASTContext())) in CheckAMDGCNBuiltinFunctionCall()
104 if (!ArgExpr->EvaluateAsConstantExpr(ArgResult1, getASTContext())) in CheckAMDGCNBuiltinFunctionCall()
144 ASTContext &Context = getASTContext(); in CreateAMDGPUFlatWorkGroupSizeAttr()
205 ASTContext &Context = getASTContext(); in CreateAMDGPUWavesPerEUAttr()
236 D->addAttr(::new (getASTContext()) in handleAMDGPUNumSGPRAttr()
237 AMDGPUNumSGPRAttr(getASTContext(), AL, NumSGPR)); in handleAMDGPUNumSGPRAttr()
246 D->addAttr(::new (getASTContext()) in handleAMDGPUNumVGPRAttr()
247 AMDGPUNumVGPRAttr(getASTContext(), AL, NumVGPR)); in handleAMDGPUNumVGPRAttr()
285 ASTContext &Context = getASTContext(); in CreateAMDGPUMaxNumWorkGroupsAttr()
H A DSemaMSP430.cpp58 if (!(NumParams = NumParamsExpr->getIntegerConstantExpr(getASTContext()))) { in handleInterruptAttr()
73 D->addAttr(::new (getASTContext()) in handleInterruptAttr()
74 MSP430InterruptAttr(getASTContext(), AL, Num)); in handleInterruptAttr()
75 D->addAttr(UsedAttr::CreateImplicit(getASTContext())); in handleInterruptAttr()
H A DSemaOpenCL.cpp76 D->addAttr(::new (getASTContext()) OpenCLAccessAttr(getASTContext(), AL)); in handleAccessAttr()
95 D->addAttr(::new (getASTContext()) in handleSubGroupSize()
96 OpenCLIntelReqdSubGroupSizeAttr(getASTContext(), AL, SGSize)); in handleSubGroupSize()
240 ASTContext &Context = getASTContext(); in checkBuiltinEnqueueKernel()
258 << TheCall->getDirectCallee() << getASTContext().OCLQueueTy; in checkBuiltinEnqueueKernel()
455 << Call->getDirectCallee() << getASTContext().OCLReserveIDTy in checkBuiltinRWPipe()
465 << Call->getDirectCallee() << getASTContext().UnsignedIntTy in checkBuiltinRWPipe()
494 << Call->getDirectCallee() << getASTContext().UnsignedIntTy in checkBuiltinReserveRWPipe()
502 Call->setType(getASTContext().OCLReserveIDTy); in checkBuiltinReserveRWPipe()
517 << Call->getDirectCallee() << getASTContext().OCLReserveIDTy in checkBuiltinCommitRWPipe()
[all …]
H A DSemaHLSL.cpp39 getASTContext(), LexicalParent, CBuffer, KwLoc, Ident, IdentLoc, LBrace); in ActOnStartBuffer()
106 ASTContext &Context = getASTContext(); in ActOnFinishBuffer()
143 return ::new (getASTContext()) in mergeNumThreadsAttr()
144 HLSLNumThreadsAttr(getASTContext(), AL, X, Y, Z); in mergeNumThreadsAttr()
157 return HLSLShaderAttr::Create(getASTContext(), ShaderType, AL); in mergeShaderAttr()
171 getASTContext(), /*MergedSpelling=*/true, AdjustedRange, in mergeParamModifierAttr()
178 return HLSLParamModifierAttr::Create(getASTContext(), AL); in mergeParamModifierAttr()
182 auto &TargetInfo = getASTContext().getTargetInfo(); in ActOnTopLevelFunction()
200 FD->addAttr(HLSLShaderAttr::CreateImplicit(getASTContext(), Env, in ActOnTopLevelFunction()
302 getASTContext().getTargetInfo().getTriple().getOSVersion(); in handleNumThreadsAttr()
[all …]
H A DSemaBPF.cpp118 ASTContext &Context = getASTContext(); in CheckBPFBuiltinFunctionCall()
181 D->addAttr(BPFPreserveAccessIndexAttr::CreateImplicit(getASTContext())); in handlePreserveAIRecord()
190 Rec->addAttr(::new (getASTContext()) in handlePreserveAccessIndexAttr()
191 BPFPreserveAccessIndexAttr(getASTContext(), AL)); in handlePreserveAccessIndexAttr()
H A DSemaPPC.cpp46 CharUnits Alignment = getASTContext().toCharUnitsFromBits( in checkAIXMemberAlignment()
47 AA->getAlignment(getASTContext())); in checkAIXMemberAlignment()
95 ASTContext &Context = getASTContext(); in CheckPPCBuiltinFunctionCall()
257 ASTContext &Context = getASTContext(); in CheckPPCMMAType()
337 ASTContext &Context = getASTContext(); in BuiltinPPCMMACall()
403 if (!TheCall->getArg(2)->isIntegerConstantExpr(getASTContext())) in BuiltinVSX()
424 if (!getASTContext().hasSameUnqualifiedType(Arg1Ty, Arg2Ty)) { in BuiltinVSX()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.cpp38 clang::ASTContext &dst_clang_ast = dst_ast.getASTContext(); in CopyType()
44 clang::ASTContext &src_clang_ast = src_ast->getASTContext(); in CopyType()
73 clang::ASTContext *src_ast = &decl->getASTContext(); in CopyDecl()
125 decl->setDeclContext(decl->getASTContext().getTranslationUnitDecl()); in OverrideOne()
126 decl->setLexicalDeclContext(decl->getASTContext().getTranslationUnitDecl()); in OverrideOne()
319 &src_ctxt->getASTContext(), &dst.getASTContext()); in DeportType()
326 CompleteTagDeclsScope complete_scope(*this, &dst.getASTContext(), in DeportType()
327 &src_ctxt->getASTContext()); in DeportType()
335 clang::ASTContext *src_ctx = &decl->getASTContext(); in DeportDecl()
638 clang::ASTContext &dest_ctx = record->getASTContext(); in importRecordLayoutFromOrigin()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclContextInternals.h51 ASTContext &C = getASTContext(); in erase_if()
112 ASTContext &C = getASTContext(); in MaybeDeallocList()
135 ASTContext &getASTContext() { in getASTContext() function
138 return ND->getASTContext(); in getASTContext()
139 return getAsList()->D->getASTContext(); in getASTContext()
196 ASTContext &C = Decls.front()->getASTContext(); in replaceExternalDecls()
238 ASTContext &C = D->getASTContext(); in addOrReplaceDecl()
262 ASTContext &C = D->getASTContext(); in addOrReplaceDecl()
278 ASTContext &C = D->getASTContext(); in prependDeclNoReplace()
/freebsd/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.cpp82 ASTContext &ACtx = Mgr.getASTContext(); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
100 ASTContext &ACtx = C.getASTContext(); in checkBeginFunction()
134 RMgr.getSymbolicRegion(Sym, GlobalSystemSpace), C.getASTContext()); in checkBeginFunction()
177 QualType IntTy = State->getAnalysisManager().getASTContext().IntTy; in getErrnoValue()
200 C.getSValBuilder().makeIntVal(Value, C.getASTContext().IntTy), in setErrnoValue()
247 NonLoc ZeroVal = SVB.makeZeroVal(C.getASTContext().IntTy).castAs<NonLoc>(); in setErrnoForStdFailure()
/freebsd/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/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/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()
332 if (getASTContext().getLangOpts().ObjCRuntime.isGNUFamily()) { in mangleObjCMethodName()
464 auto Prefix = getClassSymbolPrefix(Kind, OCD->getASTContext()); in getAllManglings()
484 ASTContext &Ctx = ND->getASTContext(); in getAllManglings()
[all …]
H A DDecl.cpp78 return D->getASTContext().getPrimaryMergedDecl(D); in getPrimaryMergedDecl()
548 const LangOptions &Opts = D->getASTContext().getLangOpts(); in useInlineVisibilityHidden()
614 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl()
998 ASTContext &Context = D->getASTContext(); in getLVForClassMember()
1400 ASTContext &Context = D->getASTContext(); in getLVForLocalDecl()
1481 if (D->getASTContext().getLangOpts().CPlusPlus) in computeLVForDecl()
1591 const LangOptions &Opts = D->getASTContext().getLangOpts(); in getLVForDecl()
1619 return getLVForDecl(D, D->getASTContext().getLangOpts().IgnoreXCOFFVisibility in getDeclLinkageAndVisibility()
1665 printName(OS, getASTContext().getPrintingPolicy()); in printName()
1671 printQualifiedName(OS, getASTContext().getPrintingPolicy()); in getQualifiedNameAsString()
[all …]
H A DMicrosoftMangle.cpp232 disc = getASTContext().getManglingNumber(ND, isAux()); in getNextDiscriminator()
239 !getASTContext().getDeclaratorForUnnamedTagDecl(Tag) && in getNextDiscriminator()
240 !getASTContext().getTypedefNameForUnnamedTagDecl(Tag)) in getNextDiscriminator()
336 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon77df3dfb0111::MicrosoftCXXNameMangler
347 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth( in MicrosoftCXXNameMangler()
354 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth( in MicrosoftCXXNameMangler()
361 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth( in MicrosoftCXXNameMangler()
538 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName()
659 Ty.getDesugaredType(getASTContext()).getLocalQualifiers(), QualType()); in mangleVariableEncoding()
667 } else if (const ArrayType *AT = getASTContext().getAsArrayType(Ty)) { in mangleVariableEncoding()
[all …]
H A DItaniumMangle.cpp152 unsigned discriminator = getASTContext().getManglingNumber(ND, isAux()); in getNextDiscriminator()
398 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon01ebe6bc0111::CXXNameMangler
401 return Context.getASTContext().getLangOpts().getClangABICompat() <= Ver; in isCompatibleWith()
490 NNS = Context.getASTContext().getCanonicalNestedNameSpecifier(NNS); in addSubstitution()
642 getASTContext(), getASTContext().getTranslationUnitDecl(), in getStdNamespace()
644 &getASTContext().Idents.get("std"), in getStdNamespace()
680 if (D == getASTContext().getVaListTagDecl()) { in getEffectiveDeclContext()
681 const llvm::Triple &T = getASTContext().getTargetInfo().getTriple(); in getEffectiveDeclContext()
694 return getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext()
698 return getASTContext().getTranslationUnitDecl(); in getEffectiveDeclContext()
[all …]
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp46 (!D->getASTContext().getLangOpts().CPlusPlus && in isInlined()
47 !D->getASTContext().getTargetInfo().getCXXABI().isMicrosoft() && in isInlined()
181 (!D->getASTContext().getLangOpts().ObjCRuntime.isFragile() && in VisitObjCInterfaceDecl()
193 recordObjCInstanceVariables(D->getASTContext(), Class, Class->getName(), in VisitObjCInterfaceDecl()
211 recordObjCInstanceVariables(D->getASTContext(), CategoryRecord, InterfaceName, in VisitObjCCategoryDecl()
230 if (D->getASTContext().getTemplateOrSpecializationInfo(D) && in VisitVarDecl()
258 for (const DynTypedNode &P : D->getASTContext().getParents(*M)) { in VisitFunctionDecl()
314 D->getASTContext().getCurrentKeyFunction(D); in hasVTable()
355 D->getASTContext().getCurrentKeyFunction(D); in getVTableLinkage()
392 if (D->isAbstract() && D->getASTContext().getCurrentKeyFunction(D) == nullptr) in isRTTIWeakDef()
[all …]
/freebsd/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 clang::Value
252 const ASTContext &Value::getASTContext() const { in getASTContext() function in clang::Value
253 return getInterpreter().getASTContext(); in getASTContext()
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.cpp126 lldbassert(&m1->getASTContext() == &m2->getASTContext() && in isOverload()
128 clang::ASTContext &context = m1->getASTContext(); in isOverload()
618 assert(s == nullptr || &s->getASTContext() == m_ast_up.get()); in setSema()
632 ASTContext &ast = getASTContext(); in SetExternalSource()
637 ASTContext &TypeSystemClang::getASTContext() const { in getASTContext() function in TypeSystemClang
715 m_mangle_ctx_up.reset(getASTContext().createMangleContext()); in getMangleContext()
732 getASTContext().getDiagnostics(), getTargetOptions())); in getTargetInfo()
747 ASTContext &ast = getASTContext(); in GetBuiltinTypeForEncodingAndBitSize()
876 clang::ASTContext &ast = getASTContext(); in GetBasicType()
888 ASTContext &ast = getASTContext(); in GetBuiltinTypeForDWARFEncodingAndBitSize()
[all …]

12345678910>>...12