llvm/llvm-project

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

开放

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

 (15 条评论) (0 个反应) (0 位负责人)C++ (10,782 个派生)batch import
clang:toolinggood first issue

仓库指标

星标
 (26,378 个星标)
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.

贡献者指南