Clang line numbers

17 views
Skip to first unread message

Ryan Gonzalez

unread,
Jul 11, 2015, 7:06:01 PM7/11/15
to ooc-...@googlegroups.com
So...

Clang is great. However, when a C codegen error occurs, unlikr GCC, it prints the line of the C code, not the ooc code.

Well, no more! I wrote a Perl wrapper over Clang at https://github.com/kirbyfan64/reclang. With it, you can simply replace clang with reclang, e.g.:

$ rock --cc=reclang ...

And the lines printed on an error will be the ooc source code, not the C code!

Just thought someone else here might find it useful.

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Reply all
Reply to author
Forward
0 new messages