clang-tools  14.0.0git
InlayHints.h
Go to the documentation of this file.
1 //===--- InlayHints.h --------------------------------------------*- C++-*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Support for the proposed "inlay hints" LSP feature.
10 // The version currently implemented is the one proposed here:
11 // https://github.com/microsoft/vscode-languageserver-node/pull/609/.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_INLAY_HINTS_H
16 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_INLAY_HINTS_H
17 
18 #include "Protocol.h"
19 #include <vector>
20 
21 namespace clang {
22 namespace clangd {
23 class ParsedAST;
24 
25 // Compute and return all inlay hints for a file.
26 std::vector<InlayHint> inlayHints(ParsedAST &AST);
27 
28 } // namespace clangd
29 } // namespace clang
30 
31 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_INLAY_HINTS_H
AST
llvm::Optional< ParsedAST > AST
Definition: SymbolCollectorTests.cpp:134
Protocol.h
clang
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Definition: ApplyReplacements.h:27
clang::clangd::inlayHints
std::vector< InlayHint > inlayHints(ParsedAST &AST)
Definition: InlayHints.cpp:365