| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | EnterExpressionEvaluationContext.h | 20 Sema &Actions; 25 Sema &Actions, Sema::ExpressionEvaluationContext NewContext, 27 Sema::ExpressionEvaluationContextRecord::ExpressionKind ExprContext = 28 Sema::ExpressionEvaluationContextRecord::EK_Other, 36 Sema &Actions, Sema::ExpressionEvaluationContext NewContext, 37 Sema::ReuseLambdaContextDecl_t, 38 Sema::ExpressionEvaluationContextRecord::ExpressionKind ExprContext = 39 Sema::ExpressionEvaluationContextRecord::EK_Other) 42 NewContext, Sema::ReuseLambdaContextDecl, ExprContext); in Actions() 46 EnterExpressionEvaluationContext(Sema &Actions, InitListTag, [all …]
|
| H A D | TemplateInstCallback.h | 28 virtual void initialize(const Sema &TheSema) = 0; 31 virtual void finalize(const Sema &TheSema) = 0; 34 virtual void atTemplateBegin(const Sema &TheSema, 38 virtual void atTemplateEnd(const Sema &TheSema, 39 const Sema::CodeSynthesisContext &Inst) = 0; 44 const Sema &TheSema) { in initialize() 53 const Sema &TheSema) { in finalize() 62 const Sema &TheSema, in atTemplateBegin() 63 const Sema::CodeSynthesisContext &Inst) { in atTemplateBegin() 72 const Sema &TheSema, in atTemplateEnd() [all …]
|
| H A D | Lookup.h | 157 Sema::LookupNameKind LookupKind, 158 Sema::RedeclarationKind Redecl = Sema::NotForRedeclaration) 171 Sema::LookupNameKind LookupKind, 172 Sema::RedeclarationKind Redecl = Sema::NotForRedeclaration) 273 Sema::LookupNameKind getLookupKind() const { in getLookupKind() 290 Redecl ? Sema::ForVisibleRedeclaration : Sema::NotForRedeclaration; in redeclarationKind() 611 void clear(Sema::LookupNameKind Kind) { in clear() 619 Redecl = (RK != Sema::NotForRedeclaration); in setRedeclarationKind() 665 Sema &getSema() const { return *SemaPtr; } in getSema() 797 Sema *SemaPtr; [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APFixedPoint.h | 157 : Val(Val, !Sema.isSigned()), Sema(Sema) { 158 assert(Val.getBitWidth() == Sema.getWidth() && 162 APFixedPoint(uint64_t Val, const FixedPointSemantics &Sema) 163 : APFixedPoint(APInt(Sema.getWidth(), Val, Sema.isSigned()), Sema) {} 166 APFixedPoint(const FixedPointSemantics &Sema) : APFixedPoint(0, Sema) {} 171 int getLsbWeight() const { return Sema.getLsbWeight(); } 172 int getMsbWeight() const { return Sema.getMsbWeight(); } 174 inline bool isSigned() const { return Sema.isSigned(); } 176 FixedPointSemantics getSemantics() const { return Sema; } 203 return APFixedPoint(Val >> Amt, Sema); [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | CommentSema.cpp | 28 Sema::Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr, in Sema() function in clang::comments::Sema 36 void Sema::setDecl(const Decl *D) { in setDecl() 800 bool Sema::isFunctionDecl() { in isFunctionDecl() 808 bool Sema::isAnyFunctionDecl() { in isAnyFunctionDecl() 821 bool Sema::isObjCMethodDecl() { in isObjCMethodDecl() 840 bool Sema::isObjCPropertyDecl() { in isObjCPropertyDecl() 856 bool Sema::isRecordLikeDecl() { in isRecordLikeDecl() 865 bool Sema::isUnionDecl() { in isUnionDecl() 882 bool Sema::isClassOrStructDecl() { in isClassOrStructDecl() 948 bool Sema::isObjCProtocolDecl() { in isObjCProtocolDecl() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaTemplateDeduction.cpp | 415 return Sema::TDK_Success; in DeduceNonTypeTemplateArgument() 422 return Sema::TDK_Success; in DeduceNonTypeTemplateArgument() 999 Sema &S; 1160 return Sema::TDK_Success; in DeduceTemplateArguments() 1361 return Sema::TDK_Success; in DeduceTemplateBases() 3236 Sema::TemplateDeductionResult Sema::SubstituteExplicitTemplateArguments( in SubstituteExplicitTemplateArguments() 3635 Sema::TemplateDeductionResult Sema::FinishTemplateArgumentDeduction( in FinishTemplateArgumentDeduction() 4208 Sema::TemplateDeductionResult Sema::DeduceTemplateArguments( in DeduceTemplateArguments() 4463 Sema::TemplateDeductionResult Sema::DeduceTemplateArguments( in DeduceTemplateArguments() 4597 Sema::TemplateDeductionResult Sema::DeduceTemplateArguments( in DeduceTemplateArguments() [all …]
|
| H A D | SemaAttr.cpp | 28 Sema::PragmaStackSentinelRAII::PragmaStackSentinelRAII(Sema &S, in PragmaStackSentinelRAII() 228 Action = Sema::PSK_Push_Set; in ActOnPragmaOptionsAlign() 231 Action = Sema::PSK_Push_Set; in ActOnPragmaOptionsAlign() 238 Action = Sema::PSK_Push_Set; in ActOnPragmaOptionsAlign() 248 Action = Sema::PSK_Push_Set; in ActOnPragmaOptionsAlign() 254 Action = Sema::PSK_Pop; in ActOnPragmaOptionsAlign() 258 Action = Sema::PSK_Reset; in ActOnPragmaOptionsAlign() 359 if (Action == Sema::PSK_Show) { in ActOnPragmaPack() 373 if (Action & Sema::PSK_Pop) { in ActOnPragmaPack() 620 void Sema::PragmaStack<Sema::AlignPackInfo>::Act(SourceLocation PragmaLocation, in Act() [all …]
|
| H A D | SemaCUDA.cpp | 37 void Sema::PushForceCUDAHostDevice() { in PushForceCUDAHostDevice() 42 bool Sema::PopForceCUDAHostDevice() { in PopForceCUDAHostDevice() 67 Sema::CUDAFunctionTarget 115 Sema::CUDATargetContextRAII::CUDATargetContextRAII(Sema &S_, in CUDATargetContextRAII() 134 Sema::CUDAFunctionTarget Sema::IdentifyCUDATarget(const FunctionDecl *D, in IdentifyCUDATarget() 163 Sema::CUDAVariableTarget Sema::IdentifyCUDATarget(const VarDecl *Var) { in IdentifyCUDATarget() 224 Sema::CUDAFunctionPreference 308 void Sema::EraseUnwantedCUDAMatches( in EraseUnwantedCUDAMatches() 344 assert(Target1 != Sema::CFT_Global); in resolveCalleeCUDATargetConflict() 801 Sema::SemaDiagnosticBuilder Sema::CUDADiagIfDeviceCode(SourceLocation Loc, in CUDADiagIfDeviceCode() [all …]
|
| H A D | SemaAccess.cpp | 621 Sema &S; 1461 static Sema::AccessResult CheckAccess(Sema &S, SourceLocation Loc, in CheckAccess() 1617 Sema::AccessResult Sema::CheckDestructorAccess(SourceLocation Loc, in CheckDestructorAccess() 1641 Sema::AccessResult Sema::CheckConstructorAccess(SourceLocation UseLoc, in CheckConstructorAccess() 1685 Sema::AccessResult Sema::CheckConstructorAccess(SourceLocation UseLoc, in CheckConstructorAccess() 1727 Sema::AccessResult Sema::CheckAllocationAccess(SourceLocation OpLoc, in CheckAllocationAccess() 1747 Sema::AccessResult Sema::CheckMemberAccess(SourceLocation UseLoc, in CheckMemberAccess() 1762 Sema::AccessResult 1819 Sema::AccessResult Sema::CheckFriendAccess(NamedDecl *target) { in CheckFriendAccess() 1850 Sema::AccessResult Sema::CheckAddressOfMemberAccess(Expr *OvlExpr, in CheckAddressOfMemberAccess() [all …]
|
| H A D | Sema.cpp | 136 Sema *S = nullptr; 189 Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, in Sema() function in Sema 259 void Sema::anchor() {} in anchor() 267 void Sema::Initialize() { in Initialize() 466 Sema::~Sema() { in ~Sema() 1624 Sema::SemaDiagnosticBuilder 1905 Sema::SemaDiagnosticBuilder 1923 Sema::SemaDiagnosticBuilder Sema::Diag(SourceLocation Loc, unsigned DiagID, in Diag() 2207 IE, Sema::NamedReturnInfo{VD, Sema::NamedReturnInfo::MoveEligible}, in checkEscapingByref() 2247 Sema::NTCUK_Destruct|Sema::NTCUK_Copy); in markEscapingByrefs() [all …]
|
| H A D | SemaLookup.cpp | 96 Sema &SemaRef; 239 case Sema::LookupTagName: in getIDNS() 255 case Sema::LookupLabel: in getIDNS() 292 case Sema::LookupAnyName: in getIDNS() 369 static bool isPreferredLookupResult(Sema &S, Sema::LookupNameKind Kind, in isPreferredLookupResult() 393 Kind == Sema::LookupTagName || Kind == Sema::LookupDestructorName; in isPreferredLookupResult() 981 static void LookupPredefedObjCSuperType(Sema &Sema, Scope *S) { in LookupPredefedObjCSuperType() argument 1970 bool Sema::isAcceptableSlow(const NamedDecl *D, Sema::AcceptableKind Kind) { in isAcceptableSlow() 2907 Sema &S; 4086 void lookupVisibleDecls(Sema &SemaRef, Scope *S, Sema::LookupNameKind Kind, in lookupVisibleDecls() [all …]
|
| H A D | SemaConcept.cpp | 163 Sema &SemaRef; 343 Sema::ReuseLambdaContextDecl); in calculateConstraintSatisfaction() 367 Sema::SFINAETrap Trap(S); in calculateConstraintSatisfaction() 475 bool Sema::CheckConstraintSatisfaction( in CheckConstraintSatisfaction() 550 bool Sema::addInstantiatedCapturesToScope( in addInstantiatedCapturesToScope() 587 bool Sema::SetupConstraintScope( in SetupConstraintScope() 779 Sema &S, const Sema::TemplateCompareNewDeclInfo &DeclInfo, in SubstituteConstraintExpressionWithoutSatisfaction() 793 Sema::InstantiatingTemplate Inst( in SubstituteConstraintExpressionWithoutSatisfaction() 1144 Sema &S, const Expr *E, in diagnoseUnsatisfiedConstraintExpr() 1244 Sema::InstantiatingTemplate Inst( in substituteParameterMappings() [all …]
|
| H A D | SemaDeclCXX.cpp | 72 Sema &S; 1210 Sema &S; 5172 Sema &S; 6084 Sema &S; 7346 Sema &S; 7575 Sema &S; 8035 Sema &S; 9249 Sema &S; 10291 Sema *S; 11452 Sema &S; [all …]
|
| H A D | SemaCoroutine.cpp | 37 LookupResult LR(S, DN, Loc, Sema::LookupMemberName); in lookupMember() 107 Sema::LookupOrdinaryName); in lookupPromiseType() 150 Loc, Sema::LookupOrdinaryName); in lookupCoroutineHandleType() 276 Sema::LookupOrdinaryName); in buildCoroutineHandle() 700 static void checkNoThrow(Sema &S, const Stmt *E, in checkNoThrow() 903 Sema::LookupOperatorName); in BuildOperatorCoawaitLookupExpr() 1105 Sema::LookupOrdinaryName); in buildStdNoThrowDeclRef() 1305 static bool diagReturnOnAllocFailure(Sema &S, Expr *E, in diagReturnOnAllocFailure() 1481 if (NewScope == Sema::AFS_Both) in makeNewAndDeleteExpr() 1482 NewScope = PromiseContainsNew ? Sema::AFS_Class : Sema::AFS_Global; in makeNewAndDeleteExpr() [all …]
|
| H A D | SemaStmt.cpp | 64 StmtResult Sema::ActOnExprStmtError() { in ActOnExprStmtError() 874 Sema &SemaRef; 2398 if (Result != Sema::TDK_Success && Result != Sema::TDK_AlreadyDiagnosed) in FinishForRangeVarDecl() 2578 static Sema::ForRangeStatus 2620 return Sema::FRS_Success; in BuildNonArrayForRange() 2640 return Sema::FRS_Success; in BuildNonArrayForRange() 2673 case Sema::FRS_Success: in BuildNonArrayForRange() 2674 return Sema::FRS_Success; in BuildNonArrayForRange() 3382 Sema::NamedReturnInfo Sema::getNamedReturnInfo(Expr *&E, in getNamedReturnInfo() 3414 Sema::NamedReturnInfo Sema::getNamedReturnInfo(const VarDecl *VD) { in getNamedReturnInfo() [all …]
|
| H A D | SemaDeclAttr.cpp | 407 static const Sema::SemaDiagnosticBuilder& 413 static const Sema::SemaDiagnosticBuilder& 1726 if (*I > Sema::MaximumAlignment) in AddAssumeAlignedAttr() 2677 Sema::AMK_None, PriorityModifier); in handleAvailabilityAttr() 2733 Sema::AMK_None, in handleAvailabilityAttr() 2775 Sema::AMK_None, in handleAvailabilityAttr() 3551 bool Sema::checkTargetClonesAttrString( in checkTargetClonesAttrString() 6017 static Sema::RetainOwnershipKind 6023 return Sema::RetainOwnershipKind::CF; in parsedAttrToRetainOwnershipKind() 6030 return Sema::RetainOwnershipKind::OS; in parsedAttrToRetainOwnershipKind() [all …]
|
| H A D | SemaOverload.cpp | 1127 Sema::OverloadKind 6007 (CCE == Sema::CCEK_ExplicitBool || CCE == Sema::CCEK_Noexcept) in BuildConvertedConstantExpression() 6339 ExprResult Sema::InitializeExplicitObjectArgument(Sema &S, Expr *Obj, in InitializeExplicitObjectArgument() 8397 Sema &SemaRef; 8774 Sema &S; 10271 assert(P1 != Sema::CFP_Never && P2 != Sema::CFP_Never); in isBetterOverloadCandidate() 12090 Sema &S; 12511 Sema &S; 12648 Sema& S; 13667 Sema &SemaRef; [all …]
|
| H A D | SemaTemplateInstantiate.cpp | 2391 Sema::SFINAETrap Trap(SemaRef); in TransformRequiresTypeParams() 2423 Sema::SFINAETrap Trap(SemaRef); in TransformTypeRequirement() 2444 Sema::SFINAETrap Trap(SemaRef); in TransformExprRequirement() 2537 Sema::SFINAETrap Trap(SemaRef); in TransformNestedRequirement() 2651 QualType Sema::SubstType(QualType T, in SubstType() 2851 bool Sema::SubstTypeConstraint( in SubstTypeConstraint() 2882 ParmVarDecl *Sema::SubstParmVarDecl( in SubstParmVarDecl() 3006 bool Sema::SubstParmTypes( in SubstParmTypes() 3024 bool Sema::SubstDefaultArgument( in SubstDefaultArgument() 4101 bool Sema::SubstTemplateArguments( in SubstTemplateArguments() [all …]
|
| H A D | SemaModule.cpp | 24 static void checkModuleImportContext(Sema &S, Module *M, in checkModuleImportContext() 76 Sema::DeclGroupPtrTy 77 Sema::ActOnGlobalModuleFragmentDecl(SourceLocation ModuleLoc) { in ActOnGlobalModuleFragmentDecl() 98 void Sema::HandleStartOfHeaderUnit() { in HandleStartOfHeaderUnit() 172 Sema::DeclGroupPtrTy 421 Sema::DeclGroupPtrTy 484 DeclResult Sema::ActOnModuleImport(SourceLocation StartLoc, in ActOnModuleImport() 550 DeclResult Sema::ActOnModuleImport(SourceLocation StartLoc, in ActOnModuleImport() 936 void Sema::PopGlobalModuleFragment() { in PopGlobalModuleFragment() 959 void Sema::PopImplicitGlobalModuleFragment() { in PopImplicitGlobalModuleFragment() [all …]
|
| H A D | SemaStmtAttr.cpp | 27 static Attr *handleFallThroughAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleFallThroughAttr() 54 static Attr *handleSuppressAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleSuppressAttr() 77 static Attr *handleLoopHintAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleLoopHintAttr() 209 static Attr *handleNoMergeAttr(Sema &S, Stmt *St, const ParsedAttr &A, in handleNoMergeAttr() 224 static bool CheckStmtInlineAttr(Sema &SemaRef, const Stmt *OrigSt, in CheckStmtInlineAttr() 266 bool Sema::CheckNoInlineAttr(const Stmt *OrigSt, const Stmt *CurSt, in CheckNoInlineAttr() 312 static Attr *handleLikely(Sema &S, Stmt *St, const ParsedAttr &A, in handleLikely() 321 static Attr *handleUnlikely(Sema &S, Stmt *St, const ParsedAttr &A, in handleUnlikely() 330 CodeAlignAttr *Sema::BuildCodeAlignAttr(const AttributeCommonInfo &CI, in BuildCodeAlignAttr() 419 CheckForIncompatibleAttributes(Sema &S, in CheckForIncompatibleAttributes() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Interpreter/ |
| H A D | InterpreterUtils.cpp | 22 Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, Expr *E) { in CStyleCastPtrExpr() 34 Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, uintptr_t Ptr) { in CStyleCastPtrExpr() 39 Sema::DeclGroupPtrTy CreateDGPtrFrom(Sema &S, Decl *D) { in CreateDGPtrFrom() 42 Sema::DeclGroupPtrTy DeclGroupPtr = S.BuildDeclaratorGroup(DeclsInGroup); in CreateDGPtrFrom() 46 NamespaceDecl *LookupNamespace(Sema &S, llvm::StringRef Name, in LookupNamespace() 50 Sema::LookupNestedNameSpecifierName); in LookupNamespace() 71 NamedDecl *LookupNamed(Sema &S, llvm::StringRef Name, in LookupNamed() 74 LookupResult R(S, DName, SourceLocation(), Sema::LookupOrdinaryName, in LookupNamed() 75 Sema::ForVisibleRedeclaration); in LookupNamed()
|
| H A D | InterpreterUtils.h | 39 Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, Expr *E); 41 Expr *CStyleCastPtrExpr(Sema &S, QualType Ty, uintptr_t Ptr); 43 Sema::DeclGroupPtrTy CreateDGPtrFrom(Sema &S, Decl *D); 45 NamespaceDecl *LookupNamespace(Sema &S, llvm::StringRef Name, 48 NamedDecl *LookupNamed(Sema &S, llvm::StringRef Name,
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 120 bool IsUnsigned = !Sema.isSigned(); in getMax() 124 return APFixedPoint(Val, Sema); in getMax() 128 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin() 129 return APFixedPoint(Val, Sema); in getMin() 353 if (Sema.isSigned()) in shl() 367 if (Sema.isSaturated()) { in shl() 378 return APFixedPoint(Result.sextOrTrunc(Sema.getWidth()), Sema); in shl() 423 Sema.print(OS); in print() 433 return APFixedPoint(-Val, Sema); in negate() 441 return Val.isMinSignedValue() ? getMax(Sema) : APFixedPoint(-Val, Sema); in negate() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/ |
| H A D | Parser.h | 67 class Sema { 69 virtual ~Sema(); 137 class RegistrySema : public Parser::Sema { 184 parseMatcherExpression(StringRef &MatcherCode, Sema *S, 187 parseMatcherExpression(StringRef &MatcherCode, Sema *S, Diagnostics *Error) { in parseMatcherExpression() 207 static bool parseExpression(StringRef &Code, Sema *S, 210 static bool parseExpression(StringRef &Code, Sema *S, VariantValue *Value, in parseExpression() 231 completeExpression(StringRef &Code, unsigned CompletionOffset, Sema *S, 234 completeExpression(StringRef &Code, unsigned CompletionOffset, Sema *S) { in completeExpression() 247 Parser(CodeTokenizer *Tokenizer, Sema *S, [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Parse/ |
| H A D | Parser.cpp | 33 Sema &S; 961 Sema::ModuleImportState IS = Sema::ModuleImportState::NotACXX20Module; in ParseExternalDeclaration() 1404 Sema::FnBodyKind BodyKind = Sema::FnBodyKind::Other; in ParseFunctionDefinition() 1829 case Sema::NC_Error: in TryAnnotateName() 1832 case Sema::NC_Keyword: in TryAnnotateName() 1842 case Sema::NC_Unknown: in TryAnnotateName() 1846 case Sema::NC_Type: { in TryAnnotateName() 1892 case Sema::NC_NonType: in TryAnnotateName() 1928 case Sema::NC_Concept: in TryAnnotateName() 2369 case Sema::IER_Exists: in ParseMicrosoftIfExistsCondition() [all …]
|