clang-tools 20.0.0git
Public Attributes | List of all members
clang::clangd::ReferenceLocation Struct Reference

Extends Locations returned by textDocument/references with extra info. More...

#include <Protocol.h>

Inheritance diagram for clang::clangd::ReferenceLocation:
Inheritance graph
[legend]

Public Attributes

std::optional< std::string > containerName
 clangd extension: contains the name of the function or class in which the reference occurs
 
- Public Attributes inherited from clang::clangd::Location
URIForFile uri
 The text document's URI.
 
Range range
 

Detailed Description

Extends Locations returned by textDocument/references with extra info.

This is a clangd extension: LSP uses Location.

Definition at line 233 of file Protocol.h.

Member Data Documentation

◆ containerName

std::optional<std::string> clang::clangd::ReferenceLocation::containerName

clangd extension: contains the name of the function or class in which the reference occurs

Definition at line 236 of file Protocol.h.

Referenced by clang::clangd::toJSON().


The documentation for this struct was generated from the following file: