comparison clang-tools-extra/clangd/InlayHints.h @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents
children c4bab56944e8
comparison
equal deleted inserted replaced
220:42394fc6a535 221:79ff65ed7e25
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