Skip to content

Additional information about read/write access in the Call Hierarchy Item #2207

Description

@ratzdi

A call hierarchy item containing information about the access method to the referenced object would improve clarity, especially in multithreaded scenarios.

For example, in the Eclipse-CDT Plugin, this feature is represented with symbols showing read and/or write access:

Image

In the example we are looking for the call hierarchy of the field fooInt. As result we see that 3 items are tagged with symbols describing the kind of access: HasRefs::foo() writes to fooInt, HasRefs::fooSome() reads from fooint and the ctor HasRefs::HasRefs reads and writes to/from fooInt.

Information about Read/Write access is also helpful when searching for references on variables/fields and is part of this issue.

Related suggestion for the LSP specification #2226
Related clangd PR llvm/llvm-project#172462

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions