/freebsd/contrib/llvm-project/llvm/utils/TableGen/GlobalISel/ |
H A D | Patterns.cpp | 25 std::optional<PatternType> PatternType::get(ArrayRef<SMLoc> DiagLoc, in get() argument 37 PrintError(DiagLoc, DiagCtx + ": invalid operand name format '" + in get() 48 PrintError(DiagLoc, DiagCtx + ": unknown type '" + R->getName() + "'"); in get() 421 PrintError(DiagLoc, "conflicting types for operand '" + in check() 625 ArrayRef<SMLoc> DiagLoc) const { in handleUnboundInParam() 644 DiagLoc, in handleUnboundInParam() 741 bool PatFragPattern::checkSemantics(ArrayRef<SMLoc> DiagLoc) { in checkSemantics() argument 742 if (!InstructionPattern::checkSemantics(DiagLoc)) in checkSemantics() 749 PrintError(DiagLoc, "expected operand " + std::to_string(Idx) + in checkSemantics() 764 PrintError(DiagLoc, "expected operand " + std::to_string(Idx) + in checkSemantics() [all …]
|
H A D | Patterns.h | 66 static std::optional<PatternType> get(ArrayRef<SMLoc> DiagLoc, 458 OperandTypeChecker(ArrayRef<SMLoc> DiagLoc) : DiagLoc(DiagLoc) {} in OperandTypeChecker() argument 470 ArrayRef<SMLoc> DiagLoc; 585 ArrayRef<SMLoc> DiagLoc) const; 619 bool checkSemantics(ArrayRef<SMLoc> DiagLoc) override; 639 ArrayRef<SMLoc> DiagLoc) const;
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | Pragma.cpp | 1285 SourceLocation DiagLoc = DiagToken.getLocation(); in HandlePragma() local 1300 if (!PP.getDiagnostics().popMappings(DiagLoc)) in HandlePragma() 1303 Callbacks->PragmaDiagnosticPop(DiagLoc, Namespace); in HandlePragma() 1309 PP.getDiagnostics().pushMappings(DiagLoc); in HandlePragma() 1389 SourceLocation DiagLoc = Tok.getLocation(); in HandlePragma() local 1416 PP.getDiagnostics().pushMappings(DiagLoc); in HandlePragma() 1418 Callbacks->PragmaWarningPush(DiagLoc, Level); in HandlePragma() 1422 if (!PP.getDiagnostics().popMappings(DiagLoc)) in HandlePragma() 1425 Callbacks->PragmaWarningPop(DiagLoc); in HandlePragma() 1536 SourceLocation DiagLoc = Tok.getLocation(); in HandlePragma() local [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | SARIFDiagnostic.cpp | 127 SourceLocation DiagLoc = SM.translateLineCol(FID, PLoc.getLine(), ColNo); in addLocationToResult() local 131 CharSourceRange{SourceRange{DiagLoc, DiagLoc}, /* ITR = */ false}); in addLocationToResult()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | JumpDiagnostics.cpp | 93 void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, 920 void JumpScopeChecker::CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, in CheckJump() argument 972 S.Diag(DiagLoc, JumpDiagWarning); in CheckJump() 981 S.Diag(DiagLoc, JumpDiagError); in CheckJump() 987 S.Diag(DiagLoc, JumpDiagCXX98Compat); in CheckJump()
|
H A D | SemaConcept.cpp | 942 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 947 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 961 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 966 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1007 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1011 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement()
|
H A D | SemaInit.cpp | 8104 SourceLocation DiagLoc = DiagRange.getBegin(); in checkInitializerLifetime() local 8145 if (IsGslPtrInitWithGslTempOwner && DiagLoc.isValid()) { in checkInitializerLifetime() 8166 Diag(DiagLoc, diag::warn_unsupported_lifetime_extension) in checkInitializerLifetime() 8177 Diag(DiagLoc, diag::warn_dangling_variable) in checkInitializerLifetime() 8194 Diag(DiagLoc, diag::warn_dangling_lifetime_pointer_member) in checkInitializerLifetime() 8202 Diag(DiagLoc, shouldLifetimeExtendThroughPath(Path) != in checkInitializerLifetime() 8264 Diag(DiagLoc, RK == RK_ReferenceBinding in checkInitializerLifetime() 8281 Diag(DiagLoc, diag::warn_ret_stack_addr_ref) in checkInitializerLifetime() 8285 Diag(DiagLoc, diag::err_ret_local_block) << DiagRange; in checkInitializerLifetime() 8291 Diag(DiagLoc, diag::warn_ret_addr_label) << DiagRange; in checkInitializerLifetime() [all …]
|
H A D | SemaExprCXX.cpp | 1288 SourceLocation DiagLoc = LSI->IntroducerRange.getEnd(); in buildLambdaThisCaptureFixit() local 1294 Sema.Diag(DiagLoc, diag::note_lambda_this_capture_fixit) in buildLambdaThisCaptureFixit() 1296 DiagLoc, LSI->NumExplicitCaptures > 0 ? ", this" : "this"); in buildLambdaThisCaptureFixit() 6647 SourceRange DiagLoc = in CXXCheckConditionalOperands() local 6650 Diag(DiagLoc.getBegin(), diag::err_conditional_vector_has_void) in CXXCheckConditionalOperands() 6651 << DiagLoc << IsThrow; in CXXCheckConditionalOperands()
|
H A D | SemaType.cpp | 5385 SourceLocation DiagLoc, FixitLoc; in GetFullTypeForDeclarator() local 5387 DiagLoc = TInfo->getTypeLoc().getBeginLoc(); in GetFullTypeForDeclarator() 5390 DiagLoc = D.getDeclSpec().getTypeSpecTypeLoc(); in GetFullTypeForDeclarator() 5393 S.Diag(DiagLoc, diag::err_object_cannot_be_passed_returned_by_value) in GetFullTypeForDeclarator() 7690 SourceLocation DiagLoc, in CheckImplicitNullabilityTypeSpecifier() argument 7694 *this, nullptr, nullptr, Type, Nullability, DiagLoc, in CheckImplicitNullabilityTypeSpecifier()
|
H A D | SemaChecking.cpp | 13358 SourceLocation DiagLoc = SizeArg->getExprLoc(); in CheckMemaccessSize() local 13365 S.Diag(DiagLoc, diag::warn_suspicious_bzero_size); in CheckMemaccessSize() 13366 S.Diag(DiagLoc, diag::note_suspicious_bzero_size_silence); in CheckMemaccessSize() 13368 S.Diag(DiagLoc, diag::warn_suspicious_sizeof_memset) << 0; in CheckMemaccessSize() 13369 S.Diag(DiagLoc, diag::note_suspicious_sizeof_memset_silence) << 0; in CheckMemaccessSize() 13380 SourceLocation DiagLoc = Call->getArg(1)->getExprLoc(); in CheckMemaccessSize() local 13381 S.Diag(DiagLoc, diag::warn_suspicious_sizeof_memset) << 1; in CheckMemaccessSize() 13382 S.Diag(DiagLoc, diag::note_suspicious_sizeof_memset_silence) << 1; in CheckMemaccessSize()
|
H A D | SemaDecl.cpp | 2186 SourceLocation DiagLoc = D->getLocation(); in DiagnoseUnusedDecl() local 2187 DiagReceiver(DiagLoc, PDiag(DiagID) << D << Hint << SourceRange(DiagLoc)); in DiagnoseUnusedDecl() 14562 SourceLocation DiagLoc = var->getLocation(); in CheckCompleteVariableDeclaration() local 14567 DiagLoc = Notes[0].first; in CheckCompleteVariableDeclaration() 14570 Diag(DiagLoc, diag::err_constexpr_var_requires_const_init) in CheckCompleteVariableDeclaration()
|
H A D | SemaExpr.cpp | 17989 SourceLocation DiagLoc = E->getBeginLoc(); in VerifyIntegerConstantExpression() local 18044 Converted = PerformContextualImplicitConversion(DiagLoc, E, in VerifyIntegerConstantExpression() 18054 Diagnoser.diagnoseNotICEType(*this, DiagLoc, E->getType()) in VerifyIntegerConstantExpression() 18103 DiagLoc = Notes[0].first; in VerifyIntegerConstantExpression() 18109 Diagnoser.diagnoseNotICE(*this, DiagLoc) << E->getSourceRange(); in VerifyIntegerConstantExpression() 18117 Diagnoser.diagnoseFold(*this, DiagLoc) << E->getSourceRange(); in VerifyIntegerConstantExpression()
|
H A D | SemaTemplate.cpp | 6679 SourceLocation DiagLoc = Arg->getExprLoc(); in isNullPointerValueTemplateArgument() local 6686 DiagLoc = Notes[0].first; in isNullPointerValueTemplateArgument() 6690 S.Diag(DiagLoc, diag::err_template_arg_not_address_constant) in isNullPointerValueTemplateArgument()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | CommentSema.cpp | 542 SourceLocation DiagLoc; in checkBlockCommandEmptyParagraph() local 544 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph() 545 if (!DiagLoc.isValid()) in checkBlockCommandEmptyParagraph() 546 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph() 547 Diag(DiagLoc, diag::warn_doc_block_command_empty_paragraph) in checkBlockCommandEmptyParagraph()
|
H A D | ExprConstant.cpp | 2196 EvalInfo &Info, SourceLocation DiagLoc, 2426 EvalInfo &Info, SourceLocation DiagLoc, in CheckEvaluationResult() argument 2433 Info.FFDiag(DiagLoc, diag::note_constexpr_uninitialized) in CheckEvaluationResult() 2438 Info.FFDiag(DiagLoc, diag::note_constexpr_uninitialized) in CheckEvaluationResult() 2455 if (!CheckEvaluationResult(CERK, Info, DiagLoc, EltTy, in CheckEvaluationResult() 2462 return CheckEvaluationResult(CERK, Info, DiagLoc, EltTy, in CheckEvaluationResult() 2468 CERK, Info, DiagLoc, Value.getUnionField()->getType(), in CheckEvaluationResult() 2494 if (!CheckEvaluationResult(CERK, Info, DiagLoc, I->getType(), in CheckEvaluationResult() 2505 return CheckLValueConstantExpression(Info, DiagLoc, Type, LVal, Kind, in CheckEvaluationResult() 2529 Info, DiagLoc, Type, Value, Kind, in CheckConstantExpression() [all …]
|
H A D | ItaniumMangle.cpp | 4560 TR->getSubstitutionDiagnostic()->DiagLoc); in mangleRequirement() 4572 ER->getExprSubstitutionDiagnostic()->DiagLoc); in mangleRequirement() 4584 ->DiagLoc); in mangleRequirement()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | GlobalISelCombinerEmitter.cpp | 719 StringRef Operator, ArrayRef<SMLoc> DiagLoc, 733 ArrayRef<SMLoc> DiagLoc, const DagInit &OpsList, 1501 StringRef Operator, ArrayRef<SMLoc> DiagLoc, in parsePatternList() argument 1504 ::PrintError(DiagLoc, "Expected " + Operator + " operator"); in parsePatternList() 1509 ::PrintError(DiagLoc, Operator + " pattern list is empty"); in parsePatternList() 1541 ::PrintError(DiagLoc, in parsePatternList() 1825 ArrayRef<SMLoc> DiagLoc, const DagInit &OpsList, in parsePatFragParamList() argument 1832 ::PrintError(DiagLoc, "all operands must be named'"); in parsePatFragParamList() 1847 DiagLoc, in parsePatFragParamList()
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseExprCXX.cpp | 1101 SourceLocation DiagLoc; in ParseLambdaIntroducer() local 1104 DiagLoc = Loc; in ParseLambdaIntroducer() 1108 assert(DiagLoc.isValid() && "no location for diagnostic"); in ParseLambdaIntroducer() 1112 auto &&D = Diag(DiagLoc, DiagID); in ParseLambdaIntroducer() 2726 SourceLocation DiagLoc; in ParseUnqualifiedIdOperator() local 2738 DiagLoc = Tok.getLocation(); in ParseUnqualifiedIdOperator() 2775 DiagLoc = TokLocs.front(); in ParseUnqualifiedIdOperator() 2785 Diag(DiagLoc, DiagId) << FixItHint::CreateReplacement( in ParseUnqualifiedIdOperator()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ExprConcepts.h | 188 SourceLocation DiagLoc; member
|
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | AsmParser.cpp | 2449 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler() local 2450 unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2456 unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2479 int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf); in DiagHandler()
|
H A D | MasmParser.cpp | 2778 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler() local 2779 unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2785 unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2809 int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf); in DiagHandler()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderStmt.cpp | 825 SourceLocation DiagLoc = Record.readSourceLocation(); in readSubstitutionDiagnostic() local 828 concepts::Requirement::SubstitutionDiagnostic{SubstitutedEntity, DiagLoc, in readSubstitutionDiagnostic()
|
H A D | ASTWriterStmt.cpp | 497 Record.AddSourceLocation(D->DiagLoc); in addSubstitutionDiagnostic()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 4851 SourceLocation DiagLoc,
|