Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

プロトタイプが認識されないことがある問題 #10

Open
yoshihiro503 opened this issue Mar 8, 2022 · 0 comments
Open

Comments

@yoshihiro503
Copy link
Member

yoshihiro503 commented Mar 8, 2022

関数のプロトタイプを AST に変換する処理の問題で、プロトタイプを読み取れずその関数を使うコードがパースできないことがある。例えば以下のコードでエラーとなる。

int add(int a, int b);

int test(int x)
{
    return add(x, 1);
}
Fatal error: exception Clang2cabs_lib.Yojson2ast.Invalid_Yojson("Body not found.", _)
Raised at Dune__exe__Parse_main.dispatch_command in file "src/bin/parse_main.ml", line 50, characters 17-26
Called from Dune__exe__Parse_main in file "src/bin/parse_main.ml", line 60, characters 9-16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant