You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this example, which should use the build-in error format for clang leads to a comparable result
@compiler lit hello.lit && clang hello.c
@title Hello world in C
@s Introduction
This is an example hello world C program.
We can define codeblocks with `---`
--- hello.c
@{Includes}
int main() {
@{Print a string}
return 0;
b = 5;
}
---
Now we can define the `Includes` codeblock:
--- Includes
#include <stdio.h>
---
Finally, our program needs to print "hello world"
--- Print a string
printf("hello world\n");
---
lit hello.lit && clang hello.c
hello.c:8:5: error: use of undeclared identifier 'b'
b = 5;
^
1 error generated.
When using the
@compiler
and@error_format
directive, the error output of the used compiler is not parsed.Build
Build from
HEAD
(6a9a3af
) using ldc2 on MacOS/arm64Observed Behavior
When running
lit -c hello.lit
onthe output remains
which is the unparsed output of hte
luacheck
command.Expected Behavior
Parsing and translating the filename and line number in the output
The text was updated successfully, but these errors were encountered: