| /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() 115 auto &Instr = CGT.getInstruction(IP->getOperatorAsDef(DiagLoc)); in parseInstructionPattern() 120 const Record *TheDef = IP->getOperatorAsDef(DiagLoc); in parseInstructionPattern() 128 const Record *Def = PFP->getOperatorAsDef(DiagLoc); in parseInstructionPattern() 135 Pat = std::make_unique<BuiltinPattern>(*BP->getOperatorAsDef(DiagLoc), in parseInstructionPattern() 153 if (!Pat->checkSemantics(DiagLoc)) in parseInstructionPattern() 166 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() 55 DiagLoc, in get() 63 PrintError(DiagLoc, DiagCtx + ": maximum number of arguments (" + in get() 76 PrintError(DiagLoc, DiagCtx + ": unknown type '" + R->getName() + "'"); in get() 469 PrintError(DiagLoc, "conflicting types for operand '" + in check() 493 PrintNote(DiagLoc, "'" + OpName + "' seen with type '" + Ty.str() + "' in '" + in PrintSeenWithTypeIn() 674 ArrayRef<SMLoc> DiagLoc) const { in handleUnboundInParam() 689 llvm::PrintError(DiagLoc, "operand '" + ArgName + "' (for parameter '" + in handleUnboundInParam() 693 DiagLoc, in handleUnboundInParam() [all …]
|
| H A D | Patterns.h | 82 static std::optional<PatternType> get(ArrayRef<SMLoc> DiagLoc, 502 OperandTypeChecker(ArrayRef<SMLoc> DiagLoc) : DiagLoc(DiagLoc) {} in OperandTypeChecker() argument 514 ArrayRef<SMLoc> DiagLoc; 629 ArrayRef<SMLoc> DiagLoc) const; 663 bool checkSemantics(ArrayRef<SMLoc> DiagLoc) override; 683 ArrayRef<SMLoc> DiagLoc) const;
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | CheckExprLifetime.cpp | 1312 SourceLocation DiagLoc = DiagRange.getBegin(); in checkExprLifetimeImpl() local 1361 if (IsGslPtrValueFromGslTempOwner && DiagLoc.isValid()) { in checkExprLifetimeImpl() 1362 SemaRef.Diag(DiagLoc, diag::warn_dangling_lifetime_pointer) in checkExprLifetimeImpl() 1373 SemaRef.Diag(DiagLoc, diag::warn_dangling_variable) in checkExprLifetimeImpl() 1388 SemaRef.Diag(DiagLoc, diag::warn_dangling_reference_captured) in checkExprLifetimeImpl() 1391 SemaRef.Diag(DiagLoc, diag::warn_dangling_reference_captured_by_unknown) in checkExprLifetimeImpl() 1400 SemaRef.Diag(DiagLoc, diag::warn_dangling_lifetime_pointer_assignment) in checkExprLifetimeImpl() 1403 SemaRef.Diag(DiagLoc, diag::warn_dangling_pointer_assignment) in checkExprLifetimeImpl() 1416 SemaRef.Diag(DiagLoc, diag::warn_dangling_lifetime_pointer_member) in checkExprLifetimeImpl() 1424 SemaRef.Diag(DiagLoc, shouldLifetimeExtendThroughPath(Path) != in checkExprLifetimeImpl() [all …]
|
| H A D | JumpDiagnostics.cpp | 94 void CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, 960 void JumpScopeChecker::CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc, in CheckJump() argument 1020 S.Diag(DiagLoc, JumpDiagWarning); in CheckJump() 1029 S.Diag(DiagLoc, JumpDiagError); in CheckJump() 1035 S.Diag(DiagLoc, JumpDiagCompat); in CheckJump()
|
| H A D | SemaConcept.cpp | 1164 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1169 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1183 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1188 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1229 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement() 1233 S.Diag(SubstDiag->DiagLoc, in diagnoseUnsatisfiedRequirement()
|
| H A D | SemaOpenACC.cpp | 822 SourceLocation DiagLoc = ColonLoc.isInvalid() ? LBLoc : ColonLoc; in ActOnArraySectionExpr() local 823 Diag(DiagLoc, diag::err_acc_subarray_no_length) << IsArray; in ActOnArraySectionExpr() 827 DiagLoc, SourceLocation(), ArrayRef<Expr *>(), Context.IntTy); in ActOnArraySectionExpr()
|
| H A D | SemaExprCXX.cpp | 1267 SourceLocation DiagLoc = LSI->IntroducerRange.getEnd(); in buildLambdaThisCaptureFixit() local 1273 Sema.Diag(DiagLoc, diag::note_lambda_this_capture_fixit) in buildLambdaThisCaptureFixit() 1275 DiagLoc, LSI->NumExplicitCaptures > 0 ? ", this" : "this"); in buildLambdaThisCaptureFixit() 5882 SourceRange DiagLoc = in CXXCheckConditionalOperands() local 5885 Diag(DiagLoc.getBegin(), diag::err_conditional_vector_has_void) in CXXCheckConditionalOperands() 5886 << DiagLoc << IsThrow; in CXXCheckConditionalOperands()
|
| H A D | SemaType.cpp | 5018 SourceLocation DiagLoc, FixitLoc; in GetFullTypeForDeclarator() local 5020 DiagLoc = TInfo->getTypeLoc().getBeginLoc(); in GetFullTypeForDeclarator() 5023 DiagLoc = D.getDeclSpec().getTypeSpecTypeLoc(); in GetFullTypeForDeclarator() 5026 S.Diag(DiagLoc, diag::err_object_cannot_be_passed_returned_by_value) in GetFullTypeForDeclarator() 7355 SourceLocation DiagLoc, in CheckImplicitNullabilityTypeSpecifier() argument 7359 *this, nullptr, nullptr, Type, Nullability, DiagLoc, in CheckImplicitNullabilityTypeSpecifier()
|
| H A D | SemaExpr.cpp | 229 for (const auto &[DiagLoc, PD] : Pos->second) { in DiagnoseUseOfDecl() 230 DiagnosticBuilder Builder(Diags.Report(DiagLoc, PD.getDiagID())); in DiagnoseUseOfDecl() 17311 SourceLocation DiagLoc = E->getBeginLoc(); in VerifyIntegerConstantExpression() local 17366 Converted = PerformContextualImplicitConversion(DiagLoc, E, in VerifyIntegerConstantExpression() 17382 Diagnoser.diagnoseNotICEType(*this, DiagLoc, E->getType()) in VerifyIntegerConstantExpression() 17411 DiagLoc = Notes[0].first; in VerifyIntegerConstantExpression() 17417 Diagnoser.diagnoseNotICE(*this, DiagLoc) << E->getSourceRange(); in VerifyIntegerConstantExpression() 17424 Diagnoser.diagnoseFold(*this, DiagLoc) << E->getSourceRange(); in VerifyIntegerConstantExpression() 17459 DiagLoc = Notes[0].first; in VerifyIntegerConstantExpression() 17465 Diagnoser.diagnoseNotICE(*this, DiagLoc) << E->getSourceRange(); in VerifyIntegerConstantExpression() [all …]
|
| H A D | SemaChecking.cpp | 9746 SourceLocation DiagLoc = SizeArg->getExprLoc(); in CheckMemaccessSize() local 9753 S.Diag(DiagLoc, diag::warn_suspicious_bzero_size); in CheckMemaccessSize() 9754 S.Diag(DiagLoc, diag::note_suspicious_bzero_size_silence); in CheckMemaccessSize() 9756 S.Diag(DiagLoc, diag::warn_suspicious_sizeof_memset) << 0; in CheckMemaccessSize() 9757 S.Diag(DiagLoc, diag::note_suspicious_sizeof_memset_silence) << 0; in CheckMemaccessSize() 9768 SourceLocation DiagLoc = Call->getArg(1)->getExprLoc(); in CheckMemaccessSize() local 9769 S.Diag(DiagLoc, diag::warn_suspicious_sizeof_memset) << 1; in CheckMemaccessSize() 9770 S.Diag(DiagLoc, diag::note_suspicious_sizeof_memset_silence) << 1; in CheckMemaccessSize()
|
| H A D | SemaDecl.cpp | 2111 SourceLocation DiagLoc = D->getLocation(); in DiagnoseUnusedDecl() local 2112 DiagReceiver(DiagLoc, PDiag(DiagID) << D << Hint << SourceRange(DiagLoc)); in DiagnoseUnusedDecl() 14747 SourceLocation DiagLoc = var->getLocation(); in CheckCompleteVariableDeclaration() local 14752 DiagLoc = Notes[0].first; in CheckCompleteVariableDeclaration() 14755 Diag(DiagLoc, diag::err_constexpr_var_requires_const_init) in CheckCompleteVariableDeclaration()
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | Diagnostic.cpp | 516 bool isDiagSuppressed(diag::kind DiagId, SourceLocation DiagLoc, 596 diag::kind DiagId, SourceLocation DiagLoc, const SourceManager &SM) { in setDiagSuppressionMapping() argument 597 return WarningSuppressionList->isDiagSuppressed(DiagId, DiagLoc, SM); in setDiagSuppressionMapping() 602 SourceLocation DiagLoc, in isDiagSuppressed() argument 615 if (PresumedLoc PLoc = SM.getPresumedLoc(DiagLoc); PLoc.isValid()) in isDiagSuppressed() 644 SourceLocation DiagLoc) const { in isSuppressedViaMapping() 647 return DiagSuppressionMapping(DiagId, DiagLoc, getSourceManager()); in isSuppressedViaMapping() 776 SourceLocation DiagLoc, unsigned DiagID) in DiagnosticBuilder() argument 778 DiagLoc(DiagLoc), DiagID(DiagID), IsActive(true) { in DiagnosticBuilder() 784 DiagLoc = D.DiagLoc; in DiagnosticBuilder() [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/Lex/ |
| H A D | Pragma.cpp | 1294 SourceLocation DiagLoc = DiagToken.getLocation(); in HandlePragma() local 1309 if (!PP.getDiagnostics().popMappings(DiagLoc)) in HandlePragma() 1312 Callbacks->PragmaDiagnosticPop(DiagLoc, Namespace); in HandlePragma() 1318 PP.getDiagnostics().pushMappings(DiagLoc); in HandlePragma() 1320 Callbacks->PragmaDiagnosticPush(DiagLoc, Namespace); in HandlePragma() 1365 PP.getDiagnostics().setSeverityForAll(Flavor, SV, DiagLoc); in HandlePragma() 1368 DiagLoc); in HandlePragma() 1373 Callbacks->PragmaDiagnostic(DiagLoc, Namespace, SV, WarningName); in HandlePragma() 1398 SourceLocation DiagLoc = Tok.getLocation(); in HandlePragma() local 1425 PP.getDiagnostics().pushMappings(DiagLoc); in HandlePragma() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | Diagnostic.h | 983 bool isSuppressedViaMapping(diag::kind DiagId, SourceLocation DiagLoc) const; 1236 SourceLocation DiagLoc; variable 1259 DiagnosticBuilder(DiagnosticsEngine *DiagObj, SourceLocation DiagLoc, 1543 SourceLocation DiagLoc; variable 1551 Diagnostic(const DiagnosticsEngine *DO, SourceLocation DiagLoc, 1557 const SourceLocation &getLocation() const { return DiagLoc; } in getLocation()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | CommentSema.cpp | 544 SourceLocation DiagLoc; in checkBlockCommandEmptyParagraph() local 546 DiagLoc = Command->getArgRange(Command->getNumArgs() - 1).getEnd(); in checkBlockCommandEmptyParagraph() 547 if (!DiagLoc.isValid()) in checkBlockCommandEmptyParagraph() 548 DiagLoc = Command->getCommandNameRange(Traits).getEnd(); in checkBlockCommandEmptyParagraph() 549 Diag(DiagLoc, diag::warn_doc_block_command_empty_paragraph) in checkBlockCommandEmptyParagraph()
|
| H A D | ExprConstant.cpp | 2331 EvalInfo &Info, SourceLocation DiagLoc, 2575 EvalInfo &Info, SourceLocation DiagLoc, in CheckEvaluationResult() argument 2582 Info.FFDiag(DiagLoc, diag::note_constexpr_uninitialized) in CheckEvaluationResult() 2587 Info.FFDiag(DiagLoc, diag::note_constexpr_uninitialized) in CheckEvaluationResult() 2604 if (!CheckEvaluationResult(CERK, Info, DiagLoc, EltTy, in CheckEvaluationResult() 2611 return CheckEvaluationResult(CERK, Info, DiagLoc, EltTy, in CheckEvaluationResult() 2617 CERK, Info, DiagLoc, Value.getUnionField()->getType(), in CheckEvaluationResult() 2632 if (!CheckEvaluationResult(CERK, Info, DiagLoc, BS.getType(), BaseValue, in CheckEvaluationResult() 2643 if (!CheckEvaluationResult(CERK, Info, DiagLoc, I->getType(), in CheckEvaluationResult() 2654 return CheckLValueConstantExpression(Info, DiagLoc, Type, LVal, Kind, in CheckEvaluationResult() [all …]
|
| H A D | ItaniumMangle.cpp | 4861 TR->getSubstitutionDiagnostic()->DiagLoc); in mangleRequirement() 4873 ER->getExprSubstitutionDiagnostic()->DiagLoc); in mangleRequirement() 4885 ->DiagLoc); in mangleRequirement()
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParseExprCXX.cpp | 1034 SourceLocation DiagLoc; in ParseLambdaIntroducer() local 1037 DiagLoc = Loc; in ParseLambdaIntroducer() 1041 assert(DiagLoc.isValid() && "no location for diagnostic"); in ParseLambdaIntroducer() 1045 auto &&D = Diag(DiagLoc, DiagID); in ParseLambdaIntroducer() 2471 SourceLocation DiagLoc; in ParseUnqualifiedIdOperator() local 2483 DiagLoc = Tok.getLocation(); in ParseUnqualifiedIdOperator() 2520 DiagLoc = TokLocs.front(); in ParseUnqualifiedIdOperator() 2530 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 | 2388 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler() local 2389 unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2395 unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2418 int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf); in DiagHandler()
|
| H A D | MasmParser.cpp | 2396 SMLoc DiagLoc = Diag.getLoc(); in DiagHandler() local 2397 unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2403 unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc); in DiagHandler() 2427 int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf); in DiagHandler()
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTReaderStmt.cpp | 834 SourceLocation DiagLoc = Record.readSourceLocation(); in readSubstitutionDiagnostic() local 838 concepts::Requirement::SubstitutionDiagnostic{SubstitutedEntity, DiagLoc, in readSubstitutionDiagnostic()
|