zig icon indicating copy to clipboard operation
zig copied to clipboard

handle -x language flag without spaces

Open xdBronch opened this issue 1 year ago • 3 comments

gcc and clang both handle this flag with and without a space so it seems reasonable to replicate that

xdBronch avatar Jul 26 '24 08:07 xdBronch

tangentially related, would it be accepted to add zig to the list of accepted languages for this flag? not that i really have any kind of use case for it but i dont see why it shouldnt be included

xdBronch avatar Jul 26 '24 08:07 xdBronch

tangentially related, would it be accepted to add zig to the list of accepted languages for this flag? not that i really have any kind of use case for it but i dont see why it shouldnt be included

I think the use of -x is mainly intended for compatibility with projects that use rare, non-standard file extensions in C/C++ land. Zig is a new language so we probably should just not encourage that from the outset.

alexrp avatar Jul 30 '24 22:07 alexrp

yeah that's fair, I've wanted it in the past (albeit not for anything serious) for use with temporary files, e.g. =() in zsh, but it's probably better to not encourage anything out of the ordinary

xdBronch avatar Jul 31 '24 15:07 xdBronch