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

llcppsigfetch:unexpected undef type's default type #22

Open
luoliwoshang opened this issue Dec 4, 2024 · 2 comments
Open

llcppsigfetch:unexpected undef type's default type #22

luoliwoshang opened this issue Dec 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@luoliwoshang
Copy link
Contributor

luoliwoshang commented Dec 4, 2024

对于翻译单元中未定义的类型,libclang会使用int来作为兜底

undefined type undef conveter as a int type &BuiltinType:{Kind:6,Flag:0}

llcppsigfetch --extract "undef fn();" -temp=true -cpp=false
[{
                "doc":  {
                        "_Type":        "File",
                        "decls":        [{
                         
                                        "Type": {
                                                "_Type":        "FuncType",
                                                "Params":       {
                                                        "_Type":        "FieldList",
                                                        "List": null
                                                },
                                                "Ret":  {
                                                        "_Type":        "BuiltinType",
                                                        "Kind": 6,
                                                        "Flags":        0
                                                }
                                        },
                                }],
                },
                "isSys":        false
        }]
@luoliwoshang luoliwoshang added the enhancement New feature or request label Dec 18, 2024
@tsingbx
Copy link
Contributor

tsingbx commented Dec 27, 2024

#109 问题也是因为这个原因引起

@luoliwoshang
Copy link
Contributor Author

#109 问题也是因为这个原因引起

该issue中存在的问题为判断是否能作为isMethod的时候,会获取引用的类型的定义的位置,而因为libclang的这个特性,导致了获取filename失败

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