llvm/llvm-project

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

オープン

#61,157 opened on 2023/03/03

 (15 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (10,782 件のフォーク)batch import
clang:toolinggood first issue

Repository metrics

Stars
 (26,378 個のスター)
PR merge metrics
 (平均マージ 1d 2h) (30d で 1,000 merged PRs)

説明

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.

コントリビューターガイド