Azure / Azure/azure-sdk-tools

Forward declared types show up twice in APIView in C++, when they shouldn't

Open
#3,095 0 comments 0 reactions 0 assignees View on GitHub
APIView bug C++
Dominant language
C#
Stars
135
Forks
260
Avg merge
1d 22h
Merged PRs (30d)
115

Description

For example:
https://github.com/Azure/azure-sdk-for-cpp/blob/3f5c5ae66476f7c77a0ffc0bf1d50f17192166b3/sdk/core/azure-core/inc/azure/core/http/policies/policy.hpp#L144

https://apiview.dev/Assemblies/Review/3226949419594af785233c8289dd76ef?diffRevisionId=ad1fbf1c658a4d95976e096a3e1438d5&doc=False&diffOnly=False&revisionId=6b2bdbdb189442bda768b7686b735c7e#Azure::Core::Operation%3CT%3E

![image](https://user-images.githubusercontent.com/6527137/162079529-e4693bd0-bc81-40c3-bcd7-e3923290dfdb.png)

cc @LarryOsterman

Contributor guide

Open the contributing guide

Research direction

Start with the forward declaration around line 144 of sdk/core/azure-core/inc/azure/core/http/policies/policy.hpp and compare it with the linked APIView review. Trace how APIView represents that type and identify why it is emitted twice. Done means the forward-declared type appears only once in the APIView output for this example.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.