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

error unmarshalling Decl in File: #92

Open
tsingbx opened this issue Dec 25, 2024 · 1 comment
Open

error unmarshalling Decl in File: #92

tsingbx opened this issue Dec 25, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tsingbx
Copy link
Contributor

tsingbx commented Dec 25, 2024

llcppgtest tree-sitter
llcppgtest gnutls
llcppgtest isl
llcppgtest libevent
llcppgtest INIReader
llcppgtest nettle

error unmarshalling 98 Decl in File: error unmarshalling FuncDecl Type: error unmarshalling Params in FuncType: error unmarshalling field in FieldList: error unmarshalling field Type: unknown node type:
@tsingbx tsingbx self-assigned this Dec 25, 2024
@luoliwoshang
Copy link
Contributor

luoliwoshang commented Dec 25, 2024

这里是stdlib.h中的qsort_b 函数导致的,这里使用了block指针,在llcppsigfetch中并没有做收集处理
对于系统库中的函数声明以及类型,目前都为直接进行转发引用到llgo/c下,并不会对这些进行类型转换,后续可以考虑将系统库不进行序列化。

error unmarshalling 98 Decl in File: error unmarshalling FuncDecl Type: error unmarshalling Params in FuncType: error unmarshalling field in FieldList: error unmarshalling field Type: unknown node type: 
{
                                        "_Type":        "FuncDecl",
                                        "Loc":  {
                                                "_Type":        "Location",
                                                "File": "/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/stdlib.h"
                                        },
                                        "Doc":  null,
                                        "Parent":       null,
                                        "Name": {
                                                "_Type":        "Ident",
                                                "DefLoc":       null,
                                                "Name": "qsort_b"
                                        },
                                        "MangledName":  "qsort_b",
void	 qsort_b(void *__base, size_t __nel, size_t __width,
	    int (^ _Nonnull __compar)(const void *, const void *) __sort_noescape)
	    __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);

@luoliwoshang luoliwoshang added the enhancement New feature or request label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants