clang-tools  7.0.0
Public Attributes | List of all members
clang::clangd::InitializeParams Struct Reference

#include <Protocol.h>

Collaboration diagram for clang::clangd::InitializeParams:
[legend]

Public Attributes

llvm::Optional< int > processId
 The process Id of the parent process that started the server. More...
 
llvm::Optional< std::string > rootPath
 The rootPath of the workspace. More...
 
llvm::Optional< URIForFilerootUri
 The rootUri of the workspace. More...
 
ClientCapabilities capabilities
 The capabilities provided by the client (editor or tool) More...
 
llvm::Optional< TraceLeveltrace
 The initial trace setting. If omitted trace is disabled ('off'). More...
 
llvm::Optional< ClangdInitializationOptionsinitializationOptions
 

Detailed Description

Definition at line 335 of file Protocol.h.

Member Data Documentation

◆ capabilities

ClientCapabilities clang::clangd::InitializeParams::capabilities

The capabilities provided by the client (editor or tool)

Definition at line 357 of file Protocol.h.

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

◆ initializationOptions

llvm::Optional<ClangdInitializationOptions> clang::clangd::InitializeParams::initializationOptions

Definition at line 364 of file Protocol.h.

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

◆ processId

llvm::Optional<int> clang::clangd::InitializeParams::processId

The process Id of the parent process that started the server.

Is null if the process has not been started by another process. If the parent process is not alive then the server should exit (see exit notification) its process.

Definition at line 340 of file Protocol.h.

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

◆ rootPath

llvm::Optional<std::string> clang::clangd::InitializeParams::rootPath

The rootPath of the workspace.

Is null if no folder is open.

Deprecated:
in favour of rootUri.

Definition at line 346 of file Protocol.h.

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

◆ rootUri

llvm::Optional<URIForFile> clang::clangd::InitializeParams::rootUri

The rootUri of the workspace.

Is null if no folder is open. If both rootPath and rootUri are set rootUri wins.

Definition at line 351 of file Protocol.h.

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

◆ trace

llvm::Optional<TraceLevel> clang::clangd::InitializeParams::trace

The initial trace setting. If omitted trace is disabled ('off').

Definition at line 360 of file Protocol.h.

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


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