emit translate-c warnings as comments rather than (omitted by default) messages to stderr #2259
Labels
accepted
This proposal is planned.
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
standard library
This issue involves writing Zig code for the standard library.
translate-c
C to Zig source translation feature (@cImport)
Milestone
Right now you have to do this to observe warnings from translate-c:
foo.h
terminal
This is not obvious, and results in confusion such as in #2257. Further, the warnings are not well connected to
@cImport
expressions.Instead, the warnings should be in the AST itself, as comments, perhaps even doc comments describing the type that could not be translated.
This wasn't my idea; it came from someone in the Zig community but I don't remember where.
Note that modifications to translate-c are subject to #1964. If working on a patch for this issue, please try to use the C API where possible (and maybe even help the conversion effort).
The text was updated successfully, but these errors were encountered: