Shadowing in C header files #2676
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
translate-c
C to Zig source translation feature (@cImport)
Milestone
Importing the Wayland client header file (
@cInclude("wayland-client.h")
) results in, among other errors, this:This is because in
wayland-client-protocol.h
the argument name is the same as the type:Many of the inline functions included in the header also exhibit the same issue.
Should
translate-c
have some sort of renaming mechanism to work around this?The text was updated successfully, but these errors were encountered: