Open carolove opened 6 years ago
This is because c2go does not understand one of the output lines from the clang AST. It can be fixed by adding a test case to var_decl_test.go
, just like this: https://github.com/elliotchance/c2go/blob/master/ast/var_decl_test.go#L137-L152
The test should fail, then you can adjust the regexp here to satisfy the test: https://github.com/elliotchance/c2go/blob/master/ast/var_decl.go#L26-L41
when i build c code at my macbook, the code is fine, while when i execute c2go transpile main.c the c2go panic,here is the log