/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
H A D | PatternParser.cpp | 47 if (List.getOperatorAsDef(DiagLoc)->getName() != Operator) { in parsePatternList() 48 PrintError(DiagLoc, "Expected " + Operator + " operator"); in parsePatternList() 53 PrintError(DiagLoc, Operator + " pattern list is empty"); in parsePatternList() 85 PrintError(DiagLoc, in parsePatternList() 127 auto &Instr = CGT.getInstruction(IP->getOperatorAsDef(DiagLoc)); in parseInstructionPattern() 132 Record *TheDef = IP->getOperatorAsDef(DiagLoc); in parseInstructionPattern() 140 const Record *Def = PFP->getOperatorAsDef(DiagLoc); in parseInstructionPattern() 147 Pat = std::make_unique<BuiltinPattern>(*BP->getOperatorAsDef(DiagLoc), in parseInstructionPattern() 164 if (!Pat->checkSemantics(DiagLoc)) in parseInstructionPattern() 177 PrintError(DiagLoc, "Empty wip_match_opcode"); in parseWipMatchOpcodeMatcher() [all …]
|
H A D | PatternParser.h | 40 ArrayRef<SMLoc> DiagLoc; variable 45 PatternParser(const CodeGenTarget &CGT, ArrayRef<SMLoc> DiagLoc) in PatternParser() argument 46 : CGT(CGT), DiagLoc(DiagLoc) {} in PatternParser()
|
H A D | Patterns.cpp | 26 std::optional<PatternType> PatternType::get(ArrayRef<SMLoc> DiagLoc, in get() argument 38 PrintError(DiagLoc, DiagCtx + ": invalid operand name format '" + in get() 49 PrintError(DiagLoc, DiagCtx + ": unknown type '" + R->getName() + "'"); in get() 431 PrintError(DiagLoc, "conflicting types for operand '" + in check() 455 PrintNote(DiagLoc, "'" + OpName + "' seen with type '" + Ty.str() + "' in '" + in PrintSeenWithTypeIn() 635 ArrayRef<SMLoc> DiagLoc) const { in handleUnboundInParam() 650 llvm::PrintError(DiagLoc, "operand '" + ArgName + "' (for parameter '" + in handleUnboundInParam() 654 DiagLoc, in handleUnboundInParam() 751 bool PatFragPattern::checkSemantics(ArrayRef<SMLoc> DiagLoc) { in checkSemantics() argument 752 if (!InstructionPattern::checkSemantics(DiagLoc)) in checkSemantics() [all …]
|
H A D | Patterns.h | 67 static std::optional<PatternType> get(ArrayRef<SMLoc> DiagLoc, 478 OperandTypeChecker(ArrayRef<SMLoc> DiagLoc) : DiagLoc(DiagLoc) {} in OperandTypeChecker() argument 490 ArrayRef<SMLoc> DiagLoc; 605 ArrayRef<SMLoc> DiagLoc) const; 639 bool checkSemantics(ArrayRef<SMLoc> DiagLoc) override; 659 ArrayRef<SMLoc> DiagLoc) const;
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | CheckExprLifetime.cpp | 1007 SourceLocation DiagLoc = DiagRange.getBegin(); in checkExprLifetimeImpl() local 1049 if (IsGslPtrValueFromGslTempOwner && DiagLoc.isValid()) { in checkExprLifetimeImpl() 1050 SemaRef.Diag(DiagLoc, diag::warn_dangling_lifetime_pointer) in checkExprLifetimeImpl() 1071 SemaRef.Diag(DiagLoc, diag::warn_unsupported_lifetime_extension) in checkExprLifetimeImpl() 1082 SemaRef.Diag(DiagLoc, diag::warn_dangling_variable) in checkExprLifetimeImpl() 1097 SemaRef.Diag(DiagLoc, in checkExprLifetimeImpl() 1112 SemaRef.Diag(DiagLoc, diag::warn_dangling_lifetime_pointer_member) in checkExprLifetimeImpl() 1120 SemaRef.Diag(DiagLoc, shouldLifetimeExtendThroughPath(Path) != in checkExprLifetimeImpl() 1166 SemaRef.Diag(DiagLoc, in checkExprLifetimeImpl() 1181 SemaRef.Diag(DiagLoc, diag::warn_dangling_lifetime_pointer) in checkExprLifetimeImpl() [all …]
|
H A D | JumpDiagnostics.cpp | 94 void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, 929 void JumpScopeChecker::CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, in CheckJump() argument 986 S.Diag(DiagLoc, JumpDiagWarning); in CheckJump() 995 S.Diag(DiagLoc, JumpDiagError); in CheckJump() 1001 S.Diag(DiagLoc, JumpDiagCXX98Compat); in CheckJump()
|
H A D | SemaConcept.cpp | 1151 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1156 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1170 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1175 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1216 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1220 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement()
|
H A D | SemaExprCXX.cpp | 1285 SourceLocation DiagLoc = LSI->IntroducerRange.getEnd(); in buildLambdaThisCaptureFixit() local 1291 Sema.Diag(DiagLoc, diag::note_lambda_this_capture_fixit) in buildLambdaThisCaptureFixit() 1293 DiagLoc, LSI->NumExplicitCaptures > 0 ? ", this" : "this"); in buildLambdaThisCaptureFixit() 6875 SourceRange DiagLoc = in CXXCheckConditionalOperands() local 6878 Diag(DiagLoc.getBegin(), diag::err_conditional_vector_has_void) in CXXCheckConditionalOperands() 6879 << DiagLoc << IsThrow; in CXXCheckConditionalOperands()
|
H A D | SemaType.cpp | 4953 SourceLocation DiagLoc, FixitLoc; in GetFullTypeForDeclarator() local 4955 DiagLoc = TInfo->getTypeLoc().getBeginLoc(); in GetFullTypeForDeclarator() 4958 DiagLoc = D.getDeclSpec().getTypeSpecTypeLoc(); in GetFullTypeForDeclarator() 4961 S.Diag(DiagLoc, diag::err_object_cannot_be_passed_returned_by_value) in GetFullTypeForDeclarator() 7273 SourceLocation DiagLoc, in CheckImplicitNullabilityTypeSpecifier() argument 7277 *this, nullptr, nullptr, Type, Nullability, DiagLoc, in CheckImplicitNullabilityTypeSpecifier()
|
H A D | SemaChecking.cpp | 8600 SourceLocation DiagLoc = SizeArg->getExprLoc(); in CheckMemaccessSize() local 8607 S.Diag(DiagLoc, diag::warn_suspicious_bzero_size); in CheckMemaccessSize() 8608 S.Diag(DiagLoc, diag::note_suspicious_bzero_size_silence); in CheckMemaccessSize() 8610 S.Diag(DiagLoc, diag::warn_suspicious_sizeof_memset) << 0; in CheckMemaccessSize() 8611 S.Diag(DiagLoc, diag::note_suspicious_sizeof_memset_silence) << 0; in CheckMemaccessSize() 8622 SourceLocation DiagLoc = Call->getArg(1)->getExprLoc(); in CheckMemaccessSize() local 8623 S.Diag(DiagLoc, diag::warn_suspicious_sizeof_memset) << 1; in CheckMemaccessSize() 8624 S.Diag(DiagLoc, diag::note_suspicious_sizeof_memset_silence) << 1; in CheckMemaccessSize()
|
H A D | SemaExpr.cpp | 16932 SourceLocation DiagLoc = E->getBeginLoc(); in VerifyIntegerConstantExpression() local 16987 Converted = PerformContextualImplicitConversion(DiagLoc, E, in VerifyIntegerConstantExpression() 17003 Diagnoser.diagnoseNotICEType(*this, DiagLoc, E->getType()) in VerifyIntegerConstantExpression() 17032 DiagLoc = Notes[0].first; in VerifyIntegerConstantExpression() 17038 Diagnoser.diagnoseNotICE(*this, DiagLoc) << E->getSourceRange(); in VerifyIntegerConstantExpression() 17045 Diagnoser.diagnoseFold(*this, DiagLoc) << E->getSourceRange(); in VerifyIntegerConstantExpression() 17080 DiagLoc = Notes[0].first; in VerifyIntegerConstantExpression() 17086 Diagnoser.diagnoseNotICE(*this, DiagLoc) << E->getSourceRange(); in VerifyIntegerConstantExpression() 17094 Diagnoser.diagnoseFold(*this, DiagLoc) << E->getSourceRange(); in VerifyIntegerConstantExpression()
|
H A D | SemaDecl.cpp | 2093 SourceLocation DiagLoc = D->getLocation(); in DiagnoseUnusedDecl() local 2094 DiagReceiver(DiagLoc, PDiag(DiagID) << D << Hint << SourceRange(DiagLoc)); in DiagnoseUnusedDecl() 14371 SourceLocation DiagLoc = var->getLocation(); in CheckCompleteVariableDeclaration() local 14376 DiagLoc = Notes[0].first; in CheckCompleteVariableDeclaration() 14379 Diag(DiagLoc, diag::err_constexpr_var_requires_const_init) in CheckCompleteVariableDeclaration()
|
H A D | SemaTemplate.cpp | 5956 SourceLocation DiagLoc = Arg->getExprLoc(); in isNullPointerValueTemplateArgument() local 5963 DiagLoc = Notes[0].first; in isNullPointerValueTemplateArgument() 5967 S.Diag(DiagLoc, diag::err_template_arg_not_address_constant) in isNullPointerValueTemplateArgument()
|
/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() 1311 Callbacks->PragmaDiagnosticPush(DiagLoc, Namespace); in HandlePragma() 1356 PP.getDiagnostics().setSeverityForAll(Flavor, SV, DiagLoc); in HandlePragma() 1359 DiagLoc); in HandlePragma() 1364 Callbacks->PragmaDiagnostic(DiagLoc, Namespace, SV, WarningName); in HandlePragma() 1389 SourceLocation DiagLoc = Tok.getLocation(); in HandlePragma() local 1416 PP.getDiagnostics().pushMappings(DiagLoc); in HandlePragma() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseExprCXX.cpp | 1175 SourceLocation DiagLoc; in ParseLambdaIntroducer() local 1178 DiagLoc = Loc; in ParseLambdaIntroducer() 1182 assert(DiagLoc.isValid() && "no location for diagnostic"); in ParseLambdaIntroducer() 1186 auto &&D = Diag(DiagLoc, DiagID); in ParseLambdaIntroducer() 2828 SourceLocation DiagLoc; in ParseUnqualifiedIdOperator() local 2840 DiagLoc = Tok.getLocation(); in ParseUnqualifiedIdOperator() 2877 DiagLoc = TokLocs.front(); in ParseUnqualifiedIdOperator() 2887 Diag(DiagLoc, DiagId) << FixItHint::CreateReplacement( in ParseUnqualifiedIdOperator()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprConstant.cpp | 2203 EvalInfo &Info, SourceLocation DiagLoc, 2433 EvalInfo &Info, SourceLocation DiagLoc, in CheckEvaluationResult() argument 2440 Info.FFDiag(DiagLoc, diag::note_constexpr_uninitialized) in CheckEvaluationResult() 2445 Info.FFDiag(DiagLoc, diag::note_constexpr_uninitialized) in CheckEvaluationResult() 2462 if (!CheckEvaluationResult(CERK, Info, DiagLoc, EltTy, in CheckEvaluationResult() 2469 return CheckEvaluationResult(CERK, Info, DiagLoc, EltTy, in CheckEvaluationResult() 2475 CERK, Info, DiagLoc, Value.getUnionField()->getType(), in CheckEvaluationResult() 2490 if (!CheckEvaluationResult(CERK, Info, DiagLoc, BS.getType(), BaseValue, in CheckEvaluationResult() 2501 if (!CheckEvaluationResult(CERK, Info, DiagLoc, I->getType(), in CheckEvaluationResult() 2512 return CheckLValueConstantExpression(Info, DiagLoc, Type, LVal, Kind, in CheckEvaluationResult() [all …]
|
H A D | ItaniumMangle.cpp | 4581 TR->getSubstitutionDiagnostic()->DiagLoc); in mangleRequirement() 4593 ER->getExprSubstitutionDiagnostic()->DiagLoc); in mangleRequirement() 4605 ->DiagLoc); in mangleRequirement()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | AsmParser.cpp | 2447 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler() local 2448 unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2454 unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2477 int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf); in DiagHandler()
|
H A D | MasmParser.cpp | 2779 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler() local 2780 unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2786 unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2810 int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf); in DiagHandler()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderStmt.cpp | 826 SourceLocation DiagLoc = Record.readSourceLocation(); in readSubstitutionDiagnostic() local 830 concepts::Requirement::SubstitutionDiagnostic{SubstitutedEntity, DiagLoc, in readSubstitutionDiagnostic()
|
H A D | ASTWriterStmt.cpp | 495 Record.AddSourceLocation(D->DiagLoc); in addSubstitutionDiagnostic()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 14803 SourceLocation DiagLoc,
|