Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Search-based code intel hovers are broken when definition token and docstring are separated by multiple lines #17925

@efritz

Description

@efritz

See for an example https://sourcegraph.com/github.com/CloverHackyColor/CloverBootloader/-/blob/MdeModulePkg/Core/Pei/Hob/Hob.c#L25:1

Generally we try to find the docstring based on searching around the definition token, but the following is also legal, which causes the docstringa nd the definition token to be separated by a larger number of lines + tokens than we expect.

<docstring>
<return type>
<visibility modifier>
<actual definition>(<parameter list>) ...

Original report from Twitter: https://twitter.com/DrJohnZoid/status/1356598073187733504

Metadata

Metadata

Assignees

Labels

team/graphGraph Team (previously Code Intel/Language Tools/Language Platform)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions