Home
last modified time | relevance | path

Searched refs:clangd (Results 1 – 25 of 431) sorted by relevance

12345678910>>...18

/external/llvm-project/clang-tools-extra/clangd/index/remote/marshalling/
DMarshalling.h18 namespace clangd {
41 llvm::Expected<clangd::Symbol> fromProtobuf(const Symbol &Message);
42 llvm::Expected<clangd::Ref> fromProtobuf(const Ref &Message);
43 llvm::Expected<std::pair<clangd::SymbolID, clangd::Symbol>>
46 llvm::Expected<clangd::LookupRequest>
48 llvm::Expected<clangd::FuzzyFindRequest>
50 llvm::Expected<clangd::RefsRequest> fromProtobuf(const RefsRequest *Message);
51 llvm::Expected<clangd::RelationsRequest>
58 LookupRequest toProtobuf(const clangd::LookupRequest &From);
59 FuzzyFindRequest toProtobuf(const clangd::FuzzyFindRequest &From);
[all …]
DMarshalling.cpp32 namespace clangd { namespace
78 llvm::Expected<clangd::LookupRequest>
80 clangd::LookupRequest Req; in fromProtobuf()
88 llvm::Expected<clangd::FuzzyFindRequest>
91 clangd::FuzzyFindRequest Result; in fromProtobuf()
112 llvm::Expected<clangd::RefsRequest>
114 clangd::RefsRequest Req; in fromProtobuf()
120 Req.Filter = static_cast<clangd::RefKind>(Message->filter()); in fromProtobuf()
122 Req.Filter = clangd::RefKind::All; in fromProtobuf()
128 llvm::Expected<clangd::RelationsRequest>
[all …]
/external/llvm-project/llvm/utils/gn/secondary/clang-tools-extra/clangd/test/
DBUILD.gn1 import("//clang-tools-extra/clangd/xpc/enable.gni")
21 input = "//clang-tools-extra/clangd/test/lit.site.cfg.py.in"
26 rebase_path(get_label_info("//clang-tools-extra/clangd/test",
29 rebase_path("//clang-tools-extra/clangd/test"),
56 input = "//clang-tools-extra/clangd/unittests/lit.site.cfg.py.in"
60 rebase_path(get_label_info("//clang-tools-extra/clangd/unittests",
63 rebase_path("//clang-tools-extra/clangd/unittests"),
73 # This target should contain all dependencies of check-clangd.
80 "//clang-tools-extra/clangd/index/dex/dexp",
81 "//clang-tools-extra/clangd/indexer:clangd-indexer",
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DREADME.md1 ## clangd section
3 clangd is a language server, and provides C++ IDE features to editors.
6 - the **website** is https://clangd.llvm.org/.
7 - the **bug tracker** is https://github.com/clangd/clangd/issues
8 …urce code** is hosted at https://github.com/llvm/llvm-project/tree/master/clang-tools-extra/clangd.
9 - the **website source code** is at https://github.com/llvm/clangd-www/
16 - chat: #clangd room hosted on [LLVM's Discord hashtag
18 - user questions and feature requests can be asked in the clangd topic on [LLVM
19 Discussion Forums](https://llvm.discourse.group/c/llvm-project/clangd/34)
/external/llvm-project/clang-tools-extra/clangd/index/remote/
DClient.cpp24 namespace clangd { namespace
28 class IndexClient : public clangd::SymbolIndex {
85 void lookup(const clangd::LookupRequest &Request, in lookup()
86 llvm::function_ref<void(const clangd::Symbol &)> Callback) in lookup()
91 bool fuzzyFind(const clangd::FuzzyFindRequest &Request, in fuzzyFind()
92 llvm::function_ref<void(const clangd::Symbol &)> Callback) in fuzzyFind()
99 refs(const clangd::RefsRequest &Request, in refs()
100 llvm::function_ref<void(const clangd::Ref &)> Callback) const override { in refs()
105 relations(const clangd::RelationsRequest &Request, in relations()
106 llvm::function_ref<void(const SymbolID &, const clangd::Symbol &)> in relations()
[all …]
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolID.h22 namespace clangd {
74 template <> struct DenseMapInfo<clang::clangd::SymbolID> {
75 static inline clang::clangd::SymbolID getEmptyKey() {
76 static clang::clangd::SymbolID EmptyKey("EMPTYKEY");
79 static inline clang::clangd::SymbolID getTombstoneKey() {
80 static clang::clangd::SymbolID TombstoneKey("TOMBSTONEKEY");
83 static unsigned getHashValue(const clang::clangd::SymbolID &Sym) {
86 static bool isEqual(const clang::clangd::SymbolID &LHS,
87 const clang::clangd::SymbolID &RHS) {
DYAMLSerialization.cpp34 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::clangd::Symbol::IncludeHeaderWithReferences)
35 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::clangd::Ref)
39 std::pair<clang::clangd::SymbolID, std::vector<clang::clangd::Ref>>;
42 llvm::Optional<clang::clangd::Symbol> Symbol;
44 llvm::Optional<clang::clangd::Relation> Relation;
45 llvm::Optional<clang::clangd::IncludeGraphNode> Source;
62 using clang::clangd::FileDigest;
63 using clang::clangd::IncludeGraph;
64 using clang::clangd::IncludeGraphNode;
65 using clang::clangd::Ref;
[all …]
/external/llvm-project/llvm/utils/gn/secondary/clang-tools-extra/clangd/tool/
DBUILD.gn1 import("//clang-tools-extra/clangd/xpc/enable.gni")
3 executable("clangd") {
7 "//clang-tools-extra/clangd",
8 "//clang-tools-extra/clangd:features",
9 "//clang-tools-extra/clangd/index/remote/unimplemented",
10 "//clang-tools-extra/clangd/refactor/tweaks",
23 "//clang-tools-extra/clangd/xpc:conversions",
24 "//clang-tools-extra/clangd/xpc:transport",
/external/llvm-project/clang-tools-extra/clangd/index/dex/
DToken.h32 namespace clangd {
118 template <> struct DenseMapInfo<clang::clangd::dex::Token> {
119 static inline clang::clangd::dex::Token getEmptyKey() {
120 return {clang::clangd::dex::Token::Kind::Sentinel, "EmptyKey"};
123 static inline clang::clangd::dex::Token getTombstoneKey() {
124 return {clang::clangd::dex::Token::Kind::Sentinel, "TombstoneKey"};
127 static unsigned getHashValue(const clang::clangd::dex::Token &Tag) {
131 static bool isEqual(const clang::clangd::dex::Token &LHS,
132 const clang::clangd::dex::Token &RHS) {
/external/llvm-project/llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/framework/
DBUILD.gn5 # bundle and the clangd.xpc bundle within it in a single action.
7 # to have one create_bundle() each for both ClangdXPC.framework and clangd.xpc.
11 # clangd.xpc bundle
16 service_name = "clangd"
30 public_deps = [ "//clang-tools-extra/clangd/tool:clangd" ]
31 sources = [ "$root_out_dir/bin/clangd" ]
35 create_bundle("clangd.xpc") {
65 deps = [ "//clang-tools-extra/clangd/tool:clangd" ]
76 public_deps = [ ":clangd.xpc" ]
77 sources = [ "$target_gen_dir/clangd.xpc" ]
/external/llvm-project/clang-tools-extra/clangd/index/remote/server/
DServer.cpp39 namespace clangd { namespace
87 RemoteIndexServer(clangd::SymbolIndex &Index, llvm::StringRef IndexRoot) in RemoteIndexServer()
113 Index.lookup(*Req, [&](const clangd::Symbol &Item) { in Lookup()
152 bool HasMore = Index.fuzzyFind(*Req, [&](const clangd::Symbol &Item) { in FuzzyFind()
189 bool HasMore = Index.refs(*Req, [&](const clangd::Ref &Item) { in Refs()
229 *Req, [&](const SymbolID &Subject, const clangd::Symbol &Object) { in Relations()
278 clangd::SymbolIndex &Index;
283 void hotReload(clangd::SwapIndex &Index, llvm::StringRef IndexPath, in hotReload()
296 std::unique_ptr<clang::clangd::SymbolIndex> NewIndex = loadIndex(IndexPath); in hotReload()
306 void runServerAndWait(clangd::SymbolIndex &Index, llvm::StringRef ServerAddress, in runServerAndWait()
[all …]
/external/llvm-project/clang-tools-extra/clangd/test/
Dexecute-command.test1 # RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
2 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabi…
35 {"jsonrpc":"2.0","id":5,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","…
38 {"jsonrpc":"2.0","id":6,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","…
44 {"jsonrpc":"2.0","id":8,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","…
47 {"jsonrpc":"2.0","id":9,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix","…
50 {"jsonrpc":"2.0","id":10,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix",…
53 {"jsonrpc":"2.0","id":11,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix",…
56 {"jsonrpc":"2.0","id":12,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix",…
59 {"jsonrpc":"2.0","id":13,"method":"workspace/executeCommand","params":{"command":"clangd.applyFix",…
[all …]
Dindex-tools.test1 # RUN: clangd-indexer %p/Inputs/BenchmarkSource.cpp -- -I%p/Inputs > %t.index
4 # RUN: if [ -f %clangd-benchmark-dir/IndexBenchmark ]; then %clangd-benchmark-dir/IndexBenchmark %t…
6 # RUN: if [ -f %clangd-benchmark-dir/IndexBenchmark ]; then not %clangd-benchmark-dir/IndexBenchmar…
DCMakeLists.txt12 clangd
14 clangd-indexer
20 list(APPEND CLANGD_TEST_DEPS clangd-xpc-test-client)
25 list(APPEND CLANGD_TEST_DEPS clangd-index-server)
41 add_lit_testsuite(check-clangd "Running the Clangd regression tests"
42 # clangd doesn't put unittest configs in test/unit like every other project.
Ddid-change-configuration-params.test1 # RUN: clangd -compile_args_from=lsp -lit-test < %s 2> %t | FileCheck -strict-whitespace %s
4 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabi…
6 …arams":{"settings":{"compilationDatabaseChanges":{"/clangd-test/foo.c": {"workingDirectory":"/clan…
24 …arams":{"settings":{"compilationDatabaseChanges":{"/clangd-test/foo.c": {"workingDirectory":"/clan…
50 # ERR: [{{.*}}clangd-test2]
Ddependency-output.test2 # RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s
3 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabi…
5 …e/didChangeConfiguration","params":{"settings":{"compilationDatabaseChanges":{"/clangd-test/foo.c":
6 {"workingDirectory":"/clangd-test", "compilationCommand": ["clang", "-c", "-Xclang", "--show-includ…
Dconfig.test6 # RUN: mkdir -p %t/clangd
9 # RUN: echo 'Foo: bar' > %t/clangd/config.yaml
10 # RUN: echo 'CompileFlags: {Add: -DFOO=BAR}' >> %t/clangd/config.yaml
12 # RUN: env XDG_CONFIG_HOME=%t clangd -lit-test -enable-config < %s | FileCheck -strict-whitespace %s
14 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabi…
34 # CHECK-NEXT: "source": "clangd-config"
Drequest-reply.test1 # RUN: clangd -log=verbose -lit-test < %s | FileCheck -strict-whitespace %s
2 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabi…
6 {"jsonrpc":"2.0","id":4,"method":"workspace/executeCommand","params":{"command":"clangd.applyTweak"…
28 {"jsonrpc":"2.0","id":5,"method":"workspace/executeCommand","params":{"command":"clangd.applyTweak"…
39 # clangd doesn't reply, just emits an elog.
/external/llvm-project/clang-tools-extra/clangd/unittests/remote/
DMarshallingTests.cpp33 namespace clangd { namespace
45 clangd::Symbol createSymbol(llvm::StringRef PathPrefix, in createSymbol()
47 clangd::Symbol Sym; in createSymbol()
61 clangd::SymbolLocation Location; in createSymbol()
77 Sym.Origin = clangd::SymbolOrigin::Static; in createSymbol()
85 Sym.Flags = clangd::Symbol::SymbolFlag::IndexedForCodeCompletion; in createSymbol()
96 clangd::Ref Original; in TEST()
118 clangd::Ref WithInvalidURI; in TEST()
149 clangd::Symbol Sym = createSymbol("home/", Strings); in TEST()
169 Sym.Definition = clangd::SymbolLocation(); in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clangd/unittests/
DAnnotations.cpp13 namespace clangd { namespace
30 static clangd::Range toLSPRange(llvm::StringRef Code, Annotations::Range R) { in toLSPRange()
31 clangd::Range LSPRange; in toLSPRange()
37 clangd::Range Annotations::range(llvm::StringRef Name) const { in range()
41 std::vector<clangd::Range> Annotations::ranges(llvm::StringRef Name) const { in ranges()
44 std::vector<clangd::Range> Rs; in ranges()
DSyncAPI.h22 namespace clangd {
32 clangd::CodeCompleteOptions Opts);
45 const clangd::RenameOptions &RenameOpts);
50 const clangd::RenameOptions &RenameOpts);
63 llvm::Expected<llvm::Optional<clangd::Path>>
/external/llvm-project/clang-tools-extra/clangd/fuzzer/
DCMakeLists.txt10 add_llvm_fuzzer(clangd-fuzzer
11 clangd-fuzzer.cpp
15 clang_target_link_libraries(clangd-fuzzer
24 target_link_libraries(clangd-fuzzer
/external/llvm-project/llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/
DBUILD.gn5 "//clang-tools-extra/clangd",
6 "//clang-tools-extra/clangd/support",
18 "//clang-tools-extra/clangd",
19 "//clang-tools-extra/clangd/support",
/external/llvm-project/llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/test-client/
DBUILD.gn1 executable("clangd-xpc-test-client") {
4 "//clang-tools-extra/clangd",
5 "//clang-tools-extra/clangd/xpc:conversions",
6 "//clang-tools-extra/clangd/xpc/framework:ClangdXPC.framework",
/external/llvm-project/clang-tools-extra/clangd/indexer/
DIndexerMain.cpp28 namespace clangd { namespace
135 clang::clangd::IndexFileIn Data; in main()
137 std::make_unique<clang::clangd::IndexActionFactory>(Data), in main()
140 clang::clangd::elog("{0}", std::move(Err)); in main()
144 clang::clangd::IndexFileOut Out(Data); in main()
145 Out.Format = clang::clangd::Format; in main()

12345678910>>...18