Skip to content

llcppsigfetch:unexpected undef type's default type #22

@luoliwoshang

Description

@luoliwoshang

对于翻译单元中未定义的类型,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
        }]

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions