Home
last modified time | relevance | path

Searched refs:Diagnostic (Results 1 - 25 of 58) sorted by relevance

123

/third_party/rust/crates/codespan/codespan-reporting/src/
H A Ddiagnostic.rs0 //! Diagnostic data structures.
116 /// The position of a Diagnostic is considered to be the position of the [`Label`] that has the earliest starting position and has the highest style which appears in all the labels of the diagnostic.
119 pub struct Diagnostic<FileId> { structure names
139 impl<FileId> Diagnostic<FileId> { impls
141 pub fn new(severity: Severity) -> Diagnostic<FileId> { in new()
142 Diagnostic { in new()
154 pub fn bug() -> Diagnostic<FileId> { in bug()
155 Diagnostic::new(Severity::Bug) in bug()
161 pub fn error() -> Diagnostic<FileId> { in error()
162 Diagnostic in error()
[all...]
/third_party/rust/crates/codespan/codespan-reporting/tests/
H A Dterm.rs1 use codespan_reporting::diagnostic::{Diagnostic, Label};
94 Diagnostic::bug(),
95 Diagnostic::error(),
96 Diagnostic::warning(),
97 Diagnostic::note(),
98 Diagnostic::help(),
99 Diagnostic::bug(),
134 Diagnostic::error()
145 Diagnostic::error()
242 Diagnostic
[all...]
/third_party/skia/third_party/externals/tint/src/diagnostic/
H A Ddiagnostic.h53 /// Diagnostic holds all the information for a single compiler diagnostic
55 class Diagnostic { class
70 /// List is a container of Diagnostic messages.
74 using iterator = std::vector<Diagnostic>::const_iterator;
81 List(std::initializer_list<Diagnostic> list);
105 void add(Diagnostic&& diag) { in add()
127 diag::Diagnostic note{}; in add_note()
142 diag::Diagnostic warning{}; in add_warning()
154 diag::Diagnostic error{}; in add_error()
166 diag::Diagnostic erro in add_error()
[all...]
H A Dformatter_test.cc34 Diagnostic diag_note{Severity::Note,
37 Diagnostic diag_warn{Severity::Warning,
40 Diagnostic diag_err{Severity::Error,
43 Diagnostic diag_ice{Severity::InternalCompilerError,
46 Diagnostic diag_fatal{Severity::Fatal,
72 Diagnostic diag{Severity::Note, Source{}, "no source!", System::Test}; in TEST_F()
133 Diagnostic multiline{Severity::Warning, in TEST_F()
168 Diagnostic multiline{Severity::Warning, in TEST_F()
H A Dformatter.h23 class Diagnostic;
64 void format(const Diagnostic& diag, State& state) const;
/third_party/rust/crates/proc-macro-error/src/imp/
H A Dfallback.rs5 diagnostic::{Diagnostic, Level},
18 pub(crate) fn cleanup() -> Vec<Diagnostic> {
22 pub(crate) fn emit_diagnostic(diag: Diagnostic) {
29 static ERR_STORAGE: RefCell<Vec<Diagnostic>> = RefCell::new(Vec::new());
H A Ddelegate.rs1 //! This implementation uses [`proc_macro::Diagnostic`], nightly only.
5 use proc_macro::{Diagnostic as PDiag, Level as PLevel};
9 diagnostic::{Diagnostic, Level, SuggestionKind},
19 pub(crate) fn cleanup() -> Vec<Diagnostic> {
24 pub(crate) fn emit_diagnostic(diag: Diagnostic) {
25 let Diagnostic {
/third_party/rust/crates/codespan/codespan-reporting/examples/
H A Dterm.rs8 use codespan_reporting::diagnostic::{Diagnostic, Label};
96 Diagnostic::error() in main()
105 Diagnostic::warning() in main()
112 Diagnostic::error() in main()
127 Diagnostic::error() in main()
144 Diagnostic::error() in main()
H A Dreusable_diagnostic.rs1 use codespan_reporting::diagnostic::{Diagnostic, Label};
58 fn report(&self) -> Diagnostic<()> { in report()
60 Error::MismatchType(left, right) => Diagnostic::error() in report()
70 Error::MutatingImmutable(original, mutating) => Diagnostic::error() in report()
H A Dcustom_files.rs12 use codespan_reporting::diagnostic::{Diagnostic, Label};
157 /// A Diagnostic message.
168 fn to_diagnostic(&self) -> Diagnostic<files::FileId> { in to_diagnostic()
170 Message::UnwantedGreetings { greetings } => Diagnostic::error() in to_diagnostic()
184 Message::OverTheTopExclamations { exclamations } => Diagnostic::error() in to_diagnostic()
H A Dpeg_calculator.rs10 use codespan_reporting::diagnostic::{Diagnostic, Label};
57 let diagnostic = Diagnostic::error() in main()
/third_party/rust/crates/proc-macro-error/src/
H A Ddiagnostic.rs22 pub struct Diagnostic { structure names
30 /// A collection of methods that do not exist in `proc_macro::Diagnostic`
37 /// This function is the same as `Diagnostic::spanned` but produces considerably
44 /// This function is the same as `Diagnostic::span_error` but produces considerably
50 /// This function is the same as `Diagnostic::span_help` but produces considerably
60 /// This function is the same as `Diagnostic::span_note` but produces considerably
69 impl DiagnosticExt for Diagnostic {
71 Diagnostic { in spanned_range()
98 impl Diagnostic { impls
101 Diagnostic in new()
198 impl Diagnostic { global() impls
[all...]
H A Dmacros.rs4 /// Build [`Diagnostic`](struct.Diagnostic.html) instance from provided arguments.
13 ($err:expr) => { $crate::Diagnostic::from($err) };
27 let diag = $crate::Diagnostic::spanned_range(
47 let diag = $crate::Diagnostic::spanned_range(span_range, $level, $msg.to_string());
64 $crate::Diagnostic::spanned_range(
82 $crate::Diagnostic::spanned_range(span_range, $level, $msg.to_string())
/third_party/skia/third_party/externals/spirv-tools/test/
H A Ddiagnostic_test.cpp35 TEST(Diagnostic, DestroyNull) { spvDiagnosticDestroy(nullptr); } in TEST()
37 TEST(Diagnostic, DestroyValidDiagnostic) { in TEST()
44 TEST(Diagnostic, DestroyValidDiagnosticAfterReassignment) { in TEST()
53 TEST(Diagnostic, PrintDefault) { in TEST()
54 char message[] = "Test Diagnostic!"; in TEST()
62 TEST(Diagnostic, PrintInvalidDiagnostic) { in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
H A Ddiagnostic_test.cpp35 TEST(Diagnostic, DestroyNull) { spvDiagnosticDestroy(nullptr); } in TEST()
37 TEST(Diagnostic, DestroyValidDiagnostic) { in TEST()
44 TEST(Diagnostic, DestroyValidDiagnosticAfterReassignment) { in TEST()
53 TEST(Diagnostic, PrintDefault) { in TEST()
54 char message[] = "Test Diagnostic!"; in TEST()
62 TEST(Diagnostic, PrintInvalidDiagnostic) { in TEST()
/third_party/spirv-tools/test/
H A Ddiagnostic_test.cpp35 TEST(Diagnostic, DestroyNull) { spvDiagnosticDestroy(nullptr); } in TEST()
37 TEST(Diagnostic, DestroyValidDiagnostic) { in TEST()
44 TEST(Diagnostic, DestroyValidDiagnosticAfterReassignment) { in TEST()
53 TEST(Diagnostic, PrintDefault) { in TEST()
54 char message[] = "Test Diagnostic!"; in TEST()
62 TEST(Diagnostic, PrintInvalidDiagnostic) { in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
H A DVerifier.h40 VerifierSupport *Diagnostic = nullptr; member in llvm::TBAAVerifier
75 TBAAVerifier(VerifierSupport *Diagnostic = nullptr) in TBAAVerifier()
76 : Diagnostic(Diagnostic) {} in TBAAVerifier()
/third_party/rust/crates/proc-macro-error/test-crate/
H A Dlib.rs8 proc_macro_error, set_dummy, Diagnostic, Level, OptionExt, ResultExt, SpanRange,
13 // Macros and Diagnostic
49 Diagnostic::spanned(span.into(), Level::Error, "Diagnostic::abort() test".into()).abort() in direct_abort()
66 Diagnostic::spanned( in emit()
69 "Diagnostic::emit() test".into(), in emit()
149 let none: Option<Diagnostic> = None; in option_ext()
158 let err = Diagnostic::spanned( in result_unwrap_or_abort()
172 let err = Diagnostic::spanned( in result_expect_or_abort()
274 Diagnostic in children_messages()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRAsmBackend.cpp40 std::string Diagnostic = "out of range " + Description; in signed_width() local
45 Diagnostic += " (expected an integer in the range " + std::to_string(Min) + in signed_width()
49 Ctx->reportFatalError(Fixup.getLoc(), Diagnostic); in signed_width()
51 llvm_unreachable(Diagnostic.c_str()); in signed_width()
59 std::string Diagnostic = "out of range " + Description; in unsigned_width() local
63 Diagnostic += " (expected an integer in the range 0 to " + in unsigned_width()
67 Ctx->reportFatalError(Fixup.getLoc(), Diagnostic); in unsigned_width()
69 llvm_unreachable(Diagnostic.c_str()); in unsigned_width()
/third_party/rust/crates/codespan/codespan-reporting/tests/support/
H A Dmod.rs1 use codespan_reporting::diagnostic::Diagnostic;
12 pub diagnostics: Vec<Diagnostic<F::FileId>>,
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DCompilationMessages.h26 class Diagnostic;
51 void AddMessage(const tint::diag::Diagnostic& diagnostic);
H A DCompilationMessages.cpp59 void OwnedCompilationMessages::AddMessage(const tint::diag::Diagnostic& diagnostic) { in AddMessage()
156 messageList.add(tint::diag::Diagnostic(diag)); in AddFormattedTintMessages()
161 messageList.add(tint::diag::Diagnostic(diag)); in AddFormattedTintMessages()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/runner/
H A DHistogramWriter.cpp69 proto::Diagnostic stories; in addSample()
115 const proto::Diagnostic &diagnostic = mapIter.second; in getAsJSON()
230 const proto::Diagnostic &diagnostic = diagnosticIt.second; in getAsJSON()
239 case proto::Diagnostic::kGenericSet: in getAsJSON()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DSourceMgr.cpp225 void SourceMgr::PrintMessage(raw_ostream &OS, const SMDiagnostic &Diagnostic, in PrintMessage() argument
229 DiagHandler(Diagnostic, DiagContext); in PrintMessage()
233 if (Diagnostic.getLoc().isValid()) { in PrintMessage()
234 unsigned CurBuf = FindBufferContainingLoc(Diagnostic.getLoc()); in PrintMessage()
239 Diagnostic.print(nullptr, OS, ShowColors); in PrintMessage()
/third_party/typescript/tests/baselines/reference/
H A DAPISample_Watch.js69 function reportDiagnostic(diagnostic: ts.Diagnostic) {
79 function reportWatchStatusChanged(diagnostic: ts.Diagnostic) {

Completed in 9 milliseconds

123