Home
last modified time | relevance | path

Searched refs:DiagKind (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h33 enum DiagKind { enum
219 void PrintMessage(raw_ostream &OS, SMLoc Loc, DiagKind Kind, const Twine &Msg,
225 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
242 SMDiagnostic GetMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
287 SourceMgr::DiagKind Kind = SourceMgr::DK_Error;
296 SMDiagnostic(StringRef filename, SourceMgr::DiagKind Knd, StringRef Msg) in SMDiagnostic()
301 SourceMgr::DiagKind Kind, StringRef Msg, StringRef LineStr,
310 SourceMgr::DiagKind getKind() const { return Kind; } in getKind()
H A DYAMLParser.h107 SourceMgr::DiagKind Kind = SourceMgr::DK_Error);
109 SourceMgr::DiagKind Kind = SourceMgr::DK_Error);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp824 SemaDiagnosticBuilder::Kind DiagKind = [&] { in DiagIfDeviceCode() local
848 return SemaDiagnosticBuilder(DiagKind, Loc, DiagID, CurFunContext, SemaRef); in DiagIfDeviceCode()
856 SemaDiagnosticBuilder::Kind DiagKind = [&] { in DiagIfHostCode() local
879 return SemaDiagnosticBuilder(DiagKind, Loc, DiagID, CurFunContext, SemaRef); in DiagIfHostCode()
900 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCall() local
917 if (DiagKind == SemaDiagnosticBuilder::K_Nop) { in CheckCall()
935 SemaDiagnosticBuilder(DiagKind, Loc, diag::err_ref_bad_target, Caller, in CheckCall()
940 SemaDiagnosticBuilder(DiagKind, Callee->getLocation(), in CheckCall()
943 return DiagKind != SemaDiagnosticBuilder::K_Immediate && in CheckCall()
944 DiagKind != SemaDiagnosticBuilder::K_ImmediateWithCallStack; in CheckCall()
[all …]
H A DSemaSYCL.cpp31 SemaDiagnosticBuilder::Kind DiagKind = [this, FD] { in DiagIfDeviceCode() local
38 return SemaDiagnosticBuilder(DiagKind, Loc, DiagID, FD, SemaRef); in DiagIfDeviceCode()
H A DAnalysisBasedWarnings.cpp877 unsigned DiagKind; in DiagUninitUse() local
899 DiagKind = 0; in DiagUninitUse()
909 DiagKind = 0; in DiagUninitUse()
921 DiagKind = 0; in DiagUninitUse()
938 DiagKind = 1; in DiagUninitUse()
945 DiagKind = 1; in DiagUninitUse()
961 DiagKind = 1; in DiagUninitUse()
968 DiagKind = 2; in DiagUninitUse()
977 DiagKind = 3; in DiagUninitUse()
982 DiagKind = 3; in DiagUninitUse()
[all …]
H A DSemaAvailability.cpp458 unsigned DiagKind = getAvailabilityDiagnosticKind( in DoEmitAvailabilityWarning() local
462 S.Diag(Loc, DiagKind) << OffendingDecl << PlatformName in DoEmitAvailabilityWarning()
875 unsigned DiagKind = getAvailabilityDiagnosticKind( in DiagnoseDeclAvailability() local
880 SemaRef.Diag(Range.getBegin(), DiagKind) in DiagnoseDeclAvailability()
H A DSemaExpr.cpp16607 unsigned DiagKind = 0; in DiagnoseAssignmentResult() local
16621 DiagKind = diag::err_typecheck_convert_pointer_int; in DiagnoseAssignmentResult()
16624 DiagKind = diag::ext_typecheck_convert_pointer_int; in DiagnoseAssignmentResult()
16631 DiagKind = diag::err_typecheck_convert_int_pointer; in DiagnoseAssignmentResult()
16634 DiagKind = diag::ext_typecheck_convert_int_pointer; in DiagnoseAssignmentResult()
16640 DiagKind = in DiagnoseAssignmentResult()
16647 DiagKind = diag::err_typecheck_convert_incompatible_function_pointer; in DiagnoseAssignmentResult()
16650 DiagKind = diag::ext_typecheck_convert_incompatible_function_pointer; in DiagnoseAssignmentResult()
16657 DiagKind = diag::err_arc_typecheck_convert_incompatible_pointer; in DiagnoseAssignmentResult()
16659 DiagKind = diag::err_typecheck_convert_incompatible_pointer; in DiagnoseAssignmentResult()
[all …]
H A DSemaDeclAttr.cpp3973 int DiagKind = -1; in validateAlignasAppliedType() local
3975 DiagKind = 0; in validateAlignasAppliedType()
3978 DiagKind = 1; in validateAlignasAppliedType()
3980 DiagKind = 2; in validateAlignasAppliedType()
3983 DiagKind = 3; in validateAlignasAppliedType()
3986 DiagKind = 4; in validateAlignasAppliedType()
3993 if (DiagKind != -1) { in validateAlignasAppliedType()
3995 << &Attr << DiagKind; in validateAlignasAppliedType()
H A DSemaType.cpp4250 unsigned DiagKind = 0; in GetFullTypeForDeclarator() local
4255 DiagKind = 4; in GetFullTypeForDeclarator()
4261 DiagKind = 3; in GetFullTypeForDeclarator()
4274 DiagKind = 0; in GetFullTypeForDeclarator()
4277 DiagKind = 1; in GetFullTypeForDeclarator()
4280 DiagKind = 2; in GetFullTypeForDeclarator()
4286 S.Diag(DeclChunk.Loc, DiagId) << DiagKind; in GetFullTypeForDeclarator()
H A DSemaDeclCXX.cpp9331 int DiagKind = -1; in shouldDeleteForSubobjectCall() local
9334 DiagKind = !Decl ? 0 : 1; in shouldDeleteForSubobjectCall()
9336 DiagKind = 2; in shouldDeleteForSubobjectCall()
9338 DiagKind = 3; in shouldDeleteForSubobjectCall()
9354 DiagKind = 4; in shouldDeleteForSubobjectCall()
9356 DiagKind = 4; in shouldDeleteForSubobjectCall()
9360 if (DiagKind == -1) in shouldDeleteForSubobjectCall()
9368 << /*IsField*/ true << Field << DiagKind << IsDtorCallInCtor in shouldDeleteForSubobjectCall()
9375 << /*IsField*/ false << Base->getType() << DiagKind in shouldDeleteForSubobjectCall()
9379 if (DiagKind == 1) in shouldDeleteForSubobjectCall()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp274 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind, in GetMessage()
353 SourceMgr::DiagKind Kind, const Twine &Msg, in PrintMessage()
359 void SourceMgr::PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind, in PrintMessage()
379 int Col, SourceMgr::DiagKind Kind, StringRef Msg, in SMDiagnostic()
H A DYAMLParser.cpp260 void printError(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Message, in printError()
1927 void Stream::printError(Node *N, const Twine &Msg, SourceMgr::DiagKind Kind) { in begin()
1932 SourceMgr::DiagKind Kind) { in end()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DError.cpp27 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, in PrintMessage()
/freebsd/contrib/llvm-project/clang/tools/clang-format/
H A DClangFormat.cpp367 WarningsAsErrors ? SourceMgr::DiagKind::DK_Error in emitReplacementWarnings()
368 : SourceMgr::DiagKind::DK_Warning, in emitReplacementWarnings()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDiagnosticInfo.h1054 static DiagnosticSeverity getDiagnosticSeverity(SourceMgr::DiagKind DK) { in getDiagnosticSeverity()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp3753 int DiagKind; in findSubobject() local
3757 DiagKind = 2; in findSubobject()
3761 DiagKind = 1; in findSubobject()
3765 DiagKind = 0; in findSubobject()
3770 << handler.AccessKind << DiagKind << Decl; in findSubobject()
3771 Info.Note(Loc, diag::note_constexpr_volatile_here) << DiagKind; in findSubobject()
6021 unsigned DiagKind; in HandleDynamicCast() local
6024 DiagKind = 0; in HandleDynamicCast()
6026 DiagKind = 1; in HandleDynamicCast()
6028 DiagKind = 2; in HandleDynamicCast()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmParser.cpp327 void printMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, in printMessage()
H A DMasmParser.cpp621 void printMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, in printMessage()