We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagnostics.errors is only modified within Diagnostics.renderMessages:
Diagnostics.errors
Diagnostics.renderMessages
arocc/src/aro/Diagnostics.zig
Line 349 in 7dd1575
Driver always calls render before checking errors, so it's not hit by this:
Driver
render
errors
arocc/src/aro/Driver.zig
Lines 621 to 626 in 7dd1575
but I only want to render errors if there was an actual error, so I attempted this:
try pp.preprocessSources(&.{ source, builtin_macros, user_macros }); if (comp.diagnostics.errors != 0) { return error.FatalError; }
and was confused as to why errors was still 0 after a preprocessing error had definitely occurred.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Diagnostics.errors
is only modified withinDiagnostics.renderMessages
:arocc/src/aro/Diagnostics.zig
Line 349 in 7dd1575
Driver
always callsrender
before checkingerrors
, so it's not hit by this:arocc/src/aro/Driver.zig
Lines 621 to 626 in 7dd1575
but I only want to render errors if there was an actual error, so I attempted this:
and was confused as to why
errors
was still 0 after a preprocessing error had definitely occurred.The text was updated successfully, but these errors were encountered: