Home
last modified time | relevance | path

Searched refs:DiagLoc (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DPatternParser.cpp47 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 DPatternParser.h40 ArrayRef<SMLoc> DiagLoc; variable
45 PatternParser(const CodeGenTarget &CGT, ArrayRef<SMLoc> DiagLoc) in PatternParser() argument
46 : CGT(CGT), DiagLoc(DiagLoc) {} in PatternParser()
H A DPatterns.cpp26 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 DPatterns.h67 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 DCheckExprLifetime.cpp1007 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 DJumpDiagnostics.cpp94 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 DSemaConcept.cpp1151 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 DSemaExprCXX.cpp1285 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 DSemaType.cpp4953 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 DSemaChecking.cpp8600 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 DSemaExpr.cpp16932 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 DSemaDecl.cpp2093 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 DSemaTemplate.cpp5956 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 DPragma.cpp1285 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 DParseExprCXX.cpp1175 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 DExprConstant.cpp2203 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 DItaniumMangle.cpp4581 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 DAsmParser.cpp2447 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 DMasmParser.cpp2779 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 DASTReaderStmt.cpp826 SourceLocation DiagLoc = Record.readSourceLocation(); in readSubstitutionDiagnostic() local
830 concepts::Requirement::SubstitutionDiagnostic{SubstitutedEntity, DiagLoc, in readSubstitutionDiagnostic()
H A DASTWriterStmt.cpp495 Record.AddSourceLocation(D->DiagLoc); in addSubstitutionDiagnostic()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h14803 SourceLocation DiagLoc,