| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaWasm.cpp | 57 TheCall->setType(getASTContext().getWebAssemblyExternrefType()); in BuiltinWasmRefNullExtern() 79 ASTContext &Context = getASTContext(); in BuiltinWasmRefNullFunc() 131 if (!getASTContext().hasSameType(ElTy, TheCall->getArg(2)->getType())) in BuiltinWasmTableSet() 161 if (!getASTContext().hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableGrow() 188 if (!getASTContext().hasSameType(ElTy, NewElemArg->getType())) { in BuiltinWasmTableFill() 216 if (!getASTContext().hasSameType(XElTy, YElTy)) { in BuiltinWasmTableCopy() 274 return ::new (getASTContext()) in mergeImportModuleAttr() 275 WebAssemblyImportModuleAttr(getASTContext(), AL, AL.getImportModule()); in mergeImportModuleAttr() 294 return ::new (getASTContext()) in mergeImportNameAttr() 295 WebAssemblyImportNameAttr(getASTContext(), AL, AL.getImportName()); in mergeImportNameAttr() [all …]
|
| H A D | HLSLBuiltinTypeDeclBuilder.cpp | 37 S.getASTContext().Idents.get(Name, tok::TokenKind::identifier); in lookupBuiltinFunction() 179 ASTContext &AST = Builder.SemaRef.getASTContext(); in addTypeParameter() 221 ASTContext &Context = S.getASTContext(); in constructConceptSpecializationExpr() 333 ASTContext &AST = DeclBuilder.SemaRef.getASTContext(); in convertPlaceholder() 351 ASTContext &AST = DB.SemaRef.getASTContext(); in BuiltinTypeMethodBuilder() 366 const IdentifierInfo &II = DeclBuilder.SemaRef.getASTContext().Idents.get( in addParam() 376 ASTContext &AST = DeclBuilder.SemaRef.getASTContext(); in createDecl() 428 ASTContext &AST = DeclBuilder.SemaRef.getASTContext(); in getResourceHandleExpr() 446 ASTContext &AST = DeclBuilder.SemaRef.getASTContext(); in callBuiltin() 470 DeclBuilder.SemaRef.getASTContext(), LHSExpr, RHSExpr, BO_Assign, in assign() [all …]
|
| H A D | SemaAMDGPU.cpp | 33 getASTContext().getFunctionFeatureMap(CallerFeatureMap, FD); in CheckAMDGCNBuiltinFunctionCall() 95 if (!ArgExpr->EvaluateAsInt(ArgResult, getASTContext())) in CheckAMDGCNBuiltinFunctionCall() 125 if (!ArgExpr->EvaluateAsConstantExpr(ArgResult1, getASTContext())) in CheckAMDGCNBuiltinFunctionCall() 153 if (getASTContext().hasSameUnqualifiedType(ArgTys[0], ArgTys[1])) in checkMovDPPFunctionCall() 160 getASTContext().getTypeSize(ArgTys[0]) == in checkMovDPPFunctionCall() 161 getASTContext().getTypeSize(ArgTys[1])) in checkMovDPPFunctionCall() 203 ASTContext &Context = getASTContext(); in CreateAMDGPUFlatWorkGroupSizeAttr() 264 ASTContext &Context = getASTContext(); in CreateAMDGPUWavesPerEUAttr() 295 D->addAttr(::new (getASTContext()) in handleAMDGPUNumSGPRAttr() 296 AMDGPUNumSGPRAttr(getASTContext(), AL, NumSGPR)); in handleAMDGPUNumSGPRAttr() [all …]
|
| H A D | SemaSYCL.cpp | 46 if (const auto *CAT = S.getASTContext().getAsConstantArrayType(Ty)) in isZeroSizedArray() 147 return SYCLUniqueStableNameExpr::Create(getASTContext(), OpLoc, LParen, in BuildUniqueStableNameExpr() 161 TSI = getASTContext().getTrivialTypeSourceInfo(Ty, LParen); in ActOnUniqueStableNameExpr() 262 if (!getASTContext().hasSameType(SAI->getKernelName(), in CheckSYCLEntryPointFunctionDecl() 288 if (!getASTContext().hasSameType(SKEPAttr->getKernelName(), in CheckSYCLEntryPointFunctionDecl() 352 getASTContext().findSYCLKernelInfo(SKEPAttr->getKernelName()); in CheckSYCLEntryPointFunctionDecl() 363 getASTContext().registerSYCLEntryPointFunction(FD); in CheckSYCLEntryPointFunctionDecl() 394 assert(SemaRef.getASTContext().hasSameUnqualifiedType(PVD->getType(), in TransformDeclRefExpr() 397 SemaRef.getASTContext())); in TransformDeclRefExpr() 400 SemaRef.getASTContext(), DRE->getQualifierLoc(), in TransformDeclRefExpr() [all …]
|
| H A D | SemaM68k.cpp | 36 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 D | SemaSwift.cpp | 39 return ::new (getASTContext()) SwiftNameAttr(getASTContext(), SNA, Name); in mergeNameAttr() 96 D->addAttr(::new (getASTContext()) SwiftAttrAttr(getASTContext(), AL, Str)); in handleAttrAttr() 114 D->addAttr(::new (getASTContext()) SwiftBridgeAttr(getASTContext(), AL, BT)); in handleBridge() 210 D->addAttr(::new (getASTContext()) in handleError() 211 SwiftErrorAttr(getASTContext(), AL, Convention)); in handleError() 326 auto *ErrorAttr = ::new (getASTContext()) in handleAsyncError() 327 SwiftAsyncErrorAttr(getASTContext(), AL, ConvKind, ParamIdx); in handleAsyncError() 627 D->addAttr(::new (getASTContext()) SwiftNameAttr(getASTContext(), AL, Name)); in handleName() 639 D->addAttr(::new (getASTContext()) in handleAsyncName() 640 SwiftAsyncNameAttr(getASTContext(), AL, Name)); in handleAsyncName() [all …]
|
| H A D | SemaObjC.cpp | 39 ASTContext &Context = getASTContext(); in ActOnObjCForCollectionStmt() 123 ASTContext &Context = getASTContext(); in CheckObjCForCollectionOperand() 205 ASTContext &Context = getASTContext(); in ActOnObjCAtCatchStmt() 214 ASTContext &Context = getASTContext(); in ActOnObjCAtFinallyStmt() 221 ASTContext &Context = getASTContext(); in ActOnObjCAtTryStmt() 239 ASTContext &Context = getASTContext(); in BuildObjCAtThrowStmt() 323 ASTContext &Context = getASTContext(); in ActOnObjCAtSynchronizedStmt() 331 ASTContext &Context = getASTContext(); in ActOnObjCAutoreleasePoolStmt() 339 ASTContext &Context = getASTContext(); in actOnObjCProtocolQualifierType() 379 ASTContext &Context = getASTContext(); in actOnObjCTypeArgsAndProtocolQualifiers() [all …]
|
| H A D | SemaCUDA.cpp | 55 FunctionDecl *ConfigDecl = getASTContext().getcudaConfigureCallDecl(); in ActOnExecConfigExpr() 61 DeclRefExpr *ConfigDR = new (getASTContext()) DeclRefExpr( in ActOnExecConfigExpr() 62 getASTContext(), ConfigDecl, false, ConfigQTy, VK_LValue, LLLLoc); in ActOnExecConfigExpr() 456 CUDAInvalidTargetAttr::CreateImplicit(getASTContext())); in inferTargetForImplicitSpecialMember() 469 getASTContext().getBaseElementType(F->getType())->getAs<RecordType>(); in inferTargetForImplicitSpecialMember() 501 CUDAInvalidTargetAttr::CreateImplicit(getASTContext())); in inferTargetForImplicitSpecialMember() 520 MemberDecl->addAttr(CUDADeviceAttr::CreateImplicit(getASTContext())); in inferTargetForImplicitSpecialMember() 522 MemberDecl->addAttr(CUDAHostAttr::CreateImplicit(getASTContext())); in inferTargetForImplicitSpecialMember() 656 ASTContext::CUDAConstantEvalContextRAII EvalCtx(S.getASTContext(), in HasAllowedCUDADeviceStaticInitializer() 658 return Init->isConstantInitializer(S.getASTContext(), in HasAllowedCUDADeviceStaticInitializer() [all …]
|
| H A D | SemaMSP430.cpp | 58 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 D | SemaHLSL.cpp | 199 getASTContext(), LexicalParent, CBuffer, KwLoc, Ident, IdentLoc, LBrace); in ActOnStartBuffer() 204 Result->addAttr(HLSLResourceClassAttr::CreateImplicit(getASTContext(), RC)); in ActOnStartBuffer() 307 ASTContext &Context = S.getASTContext(); in validatePackoffset() 413 ASTContext &AST = S.getASTContext(); in getHostLayoutStructName() 465 ASTContext &AST = S.getASTContext(); in createFieldForHostLayoutStruct() 486 ASTContext &AST = S.getASTContext(); in createHostLayoutStruct() 547 ASTContext &AST = S.getASTContext(); in createHostLayoutStructForBuffer() 582 HLSLResourceBindingAttr::CreateImplicit(S.getASTContext(), "", "0", {}); in addImplicitBindingAttrToBuffer() 624 return ::new (getASTContext()) in mergeNumThreadsAttr() 625 HLSLNumThreadsAttr(getASTContext(), AL, X, Y, Z); in mergeNumThreadsAttr() [all …]
|
| H A D | SemaOpenCL.cpp | 76 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 …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangASTImporter.cpp | 38 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() 124 decl->setDeclContext(decl->getASTContext().getTranslationUnitDecl()); in OverrideOne() 125 decl->setLexicalDeclContext(decl->getASTContext().getTranslationUnitDecl()); in OverrideOne() 318 &src_ctxt->getASTContext(), &dst.getASTContext()); in DeportType() 325 CompleteTagDeclsScope complete_scope(*this, &dst.getASTContext(), in DeportType() 326 &src_ctxt->getASTContext()); in DeportType() 334 clang::ASTContext *src_ctx = &decl->getASTContext(); in DeportDecl() 637 clang::ASTContext &dest_ctx = record->getASTContext(); in importRecordLayoutFromOrigin() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | ASTMerge.cpp | 36 CI.getASTContext().getLangOpts()); in ExecuteAction() 38 &CI.getASTContext()); in ExecuteAction() 42 *CI.getASTContext().getTranslationUnitDecl()); in ExecuteAction() 55 ASTImporter Importer(CI.getASTContext(), CI.getFileManager(), in ExecuteAction() 56 Unit->getASTContext(), Unit->getFileManager(), in ExecuteAction() 59 TranslationUnitDecl *TU = Unit->getASTContext().getTranslationUnitDecl(); in ExecuteAction()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | DeclContextInternals.h | 51 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() 195 ASTContext &C = Decls.front()->getASTContext(); in replaceExternalDecls() 237 ASTContext &C = D->getASTContext(); in addOrReplaceDecl() 261 ASTContext &C = D->getASTContext(); in addOrReplaceDecl() 277 ASTContext &C = D->getASTContext(); in prependDeclNoReplace()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | InterpBuiltinBitCast.cpp | 88 Bits(Ctx.getASTContext().getTypeSize(FieldDesc->getType())); in enumerateData() 96 Bits ElemSize = Bits(Ctx.getASTContext().getTypeSize(ElemType)); in enumerateData() 100 FieldDesc->getType()->isPackedVectorBoolType(Ctx.getASTContext()); in enumerateData() 115 Bits ElemSize = Bits(Ctx.getASTContext().getTypeSize(ElemType)); in enumerateData() 129 Ctx.getASTContext().getASTRecordLayout(R->getDecl()); in enumerateData() 144 Bits BitOffset = Offset + Bits(Ctx.getASTContext().toBits(ByteOffset)); in enumerateData() 224 !CheckBitcastType(S, OpPC, S.getASTContext().getBaseElementType(T), in CheckBitcastType() 229 const ASTContext &ASTCtx = S.getASTContext(); in CheckBitcastType() 264 const ASTContext &ASTCtx = Ctx.getASTContext(); in readPointerToBuffer() 338 QualType DataType = Ptr.getFieldDesc()->getDataType(S.getASTContext()); in DoBitCast() [all …]
|
| H A D | InterpFrame.cpp | 147 S.getASTContext().getPrintingPolicy(), in describe() 156 S.getASTContext().getPrintingPolicy(), in describe() 160 print(OS, This, S.getASTContext(), in describe() 161 S.getASTContext().getLValueReferenceType( in describe() 162 S.getASTContext().getRecordType(M->getParent()))); in describe() 167 F->getNameForDiagnostic(OS, S.getASTContext().getPrintingPolicy(), in describe() 180 TYPE_SWITCH(PrimTy, print(OS, stackRef<T>(Off), S.getASTContext(), Ty)); in describe()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckPlacementNew.cpp | 76 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 D | ErrnoModeling.cpp | 80 ASTContext &ACtx = Mgr.getASTContext(); in REGISTER_TRAIT_WITH_PROGRAMSTATE() 98 ASTContext &ACtx = C.getASTContext(); in checkBeginFunction() 132 RMgr.getSymbolicRegion(Sym, GlobalSystemSpace), C.getASTContext()); in checkBeginFunction() 175 QualType IntTy = State->getAnalysisManager().getASTContext().IntTy; in getErrnoValue() 198 C.getSValBuilder().makeIntVal(Value, C.getASTContext().IntTy), in setErrnoValue() 245 NonLoc ZeroVal = SVB.makeZeroVal(C.getASTContext().IntTy).castAs<NonLoc>(); in setErrnoForStdFailure()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | RenamingAction.cpp | 39 getUSRsForDeclaration(ND, Context.getASTContext()); in findSymbolOccurrences() 42 Context.getASTContext().getTranslationUnitDecl()); in findSymbolOccurrences() 60 getNamedDeclAt(Context.getASTContext(), SelectionRange.getBegin()); in initiate() 78 *Occurrences, Context.getASTContext().getSourceManager(), Name); in createSourceReplacements() 86 getNamedDeclFor(Context.getASTContext(), OldQualifiedName); in initiate() 129 auto USRs = getUSRsForDeclaration(ND, Context.getASTContext()); in createSourceReplacements() 132 USRs, NewQualifiedName, Context.getASTContext().getTranslationUnitDecl()); in createSourceReplacements()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | Decl.cpp | 77 return D->getASTContext().getPrimaryMergedDecl(D); in getPrimaryMergedDecl() 548 const LangOptions &Opts = D->getASTContext().getLangOpts(); in useInlineVisibilityHidden() 608 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl() 997 ASTContext &Context = D->getASTContext(); in getLVForClassMember() 1406 ASTContext &Context = D->getASTContext(); in getLVForLocalDecl() 1487 if (D->getASTContext().getLangOpts().CPlusPlus) in computeLVForDecl() 1597 const LangOptions &Opts = D->getASTContext().getLangOpts(); in getLVForDecl() 1625 return getLVForDecl(D, D->getASTContext().getLangOpts().IgnoreXCOFFVisibility in getDeclLinkageAndVisibility() 1671 printName(OS, getASTContext().getPrintingPolicy()); in printName() 1677 printQualifiedName(OS, getASTContext().getPrintingPolicy()); in getQualifiedNameAsString() [all …]
|
| H A D | ExternalASTMerger.cpp | 117 : ASTImporter(ToContext, ToFileManager, S.getASTContext(), in LazyASTImporter() 121 Reverse(S.getASTContext(), S.getFileManager(), ToContext, ToFileManager, in LazyASTImporter() 170 ASTContext &PersistentCtx = Persistent->getASTContext(); in ImportImpl() 309 SourceTag->getASTContext().getExternalSource()->CompleteType(SourceTag); in CompleteType() 328 SourceInterface->getASTContext().getExternalSource()->CompleteType( in CompleteType() 401 assert(&D->getASTContext() == &Target.AST); in FindOriginalDecl() 410 assert(&S.getASTContext() != &Target.AST); in AddSources() 412 assert(!S.getMerger() || &S.getMerger()->Target.AST == &S.getASTContext()); in AddSources() 422 << " removing source (ASTContext*)" << (void *)&S.getASTContext() in RemoveSources() 427 if (&Importer->getFromContext() == &S.getASTContext()) in RemoveSources() [all …]
|
| H A D | MicrosoftMangle.cpp | 230 disc = getASTContext().getManglingNumber(ND, isAux()); in getNextDiscriminator() 237 !getASTContext().getDeclaratorForUnnamedTagDecl(Tag) && in getNextDiscriminator() 238 !getASTContext().getTypedefNameForUnnamedTagDecl(Tag)) in getNextDiscriminator() 334 ASTContext &getASTContext() const { return Context.getASTContext(); } in getASTContext() function in __anon77df3dfb0111::MicrosoftCXXNameMangler 349 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth( in MicrosoftCXXNameMangler() 356 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth( in MicrosoftCXXNameMangler() 363 PointersAre64Bit(C.getASTContext().getTargetInfo().getPointerWidth( in MicrosoftCXXNameMangler() 548 if (!getASTContext().getLangOpts().CPlusPlus) in shouldMangleCXXName() 694 Ty.getDesugaredType(getASTContext()).getLocalQualifiers(), QualType()); in mangleVariableEncoding() 702 } else if (const ArrayType *AT = getASTContext().getAsArrayType(Ty)) { in mangleVariableEncoding() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/ |
| H A D | AppleObjCDeclVendor.cpp | 79 static_cast<void *>(&tag_decl->getASTContext()), in CompleteType() 96 static_cast<void *>(&interface_decl->getASTContext()), in CompleteType() 124 m_decl_vendor.m_ast_ctx->getASTContext().getTranslationUnitDecl(); in StartTranslationUnit() 142 m_ast_ctx->getASTContext().setExternalSource(external_source_owning_ptr); in AppleObjCDeclVendor() 152 clang::ASTContext &ast_ctx = m_ast_ctx->getASTContext(); in GetDeclForISA() 307 clang::ASTContext &ast_ctx(interface_decl->getASTContext()); in BuildMethod() 432 clang::ASTContext &context = m_ast_ctx->getASTContext(); in FinishDecl() 492 m_ast_ctx->getASTContext(), interface_decl, clang::SourceLocation(), in FinishDecl() 493 clang::SourceLocation(), &m_ast_ctx->getASTContext().Idents.get(name), in FinishDecl() 545 clang::ASTContext &ast_ctx = m_ast_ctx->getASTContext(); in FindDecls()
|
| /freebsd/contrib/llvm-project/clang/lib/InstallAPI/ |
| H A D | Visitor.cpp | 45 (!D->getASTContext().getLangOpts().CPlusPlus && in isInlined() 46 !D->getASTContext().getTargetInfo().getCXXABI().isMicrosoft() && in isInlined() 180 (!D->getASTContext().getLangOpts().ObjCRuntime.isFragile() && in VisitObjCInterfaceDecl() 192 recordObjCInstanceVariables(D->getASTContext(), Class, Class->getName(), in VisitObjCInterfaceDecl() 210 recordObjCInstanceVariables(D->getASTContext(), CategoryRecord, InterfaceName, in VisitObjCCategoryDecl() 229 if (D->getASTContext().getTemplateOrSpecializationInfo(D) && in VisitVarDecl() 257 for (const DynTypedNode &P : D->getASTContext().getParents(*M)) { in VisitFunctionDecl() 313 D->getASTContext().getCurrentKeyFunction(D); in hasVTable() 354 D->getASTContext().getCurrentKeyFunction(D); in getVTableLinkage() 391 if (D->isAbstract() && D->getASTContext().getCurrentKeyFunction(D) == nullptr) in isRTTIWeakDef() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
| H A D | Value.cpp | 121 setKind(ConvertQualTypeToKind(getASTContext(), getType())); in Value() 158 getASTContext().getTypeSizeInChars(getType()).getQuantity(); in Value() 247 ASTContext &Value::getASTContext() { return getInterpreter().getASTContext(); } in getASTContext() function in clang::Value 249 const ASTContext &Value::getASTContext() const { in getASTContext() function in clang::Value 250 return getInterpreter().getASTContext(); in getASTContext()
|