llvm/llvm-project

[clang][ExtractAPI] Declaration fragments should show types as shown in the source code.

Open

#61,157 创建于 2023年3月3日

在 GitHub 查看
 (15 评论) (0 反应) (0 负责人)C++ (10,782 fork)batch import
clang:toolinggood first issue

仓库指标

Star
 (26,378 star)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 1,000 个 PR)

描述

For Objective-C APIs that use typedefs, ExtractAPI emits declarations with the original’s type’s name rather than its typedef name.

For example, in:

typedef struct MyStruct * MyTypeDef;

void foo(MyTypeDef x) {}

The declaration for foo is the following:

void foo(struct MyStruct * x)

Rather than:

void foo(MyTypeDef x)

Resolving this issue will align the declaration we generate to the one that’s in the original source code.

贡献者指南