goplus / goplus/llcppg

llcppsigfetch:unexpected undef type's default type

Open
#22 2 comments 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
33
Forks
11
Avg merge
1h 17m
Merged PRs (30d)
51

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.