llvm-project/clang-tools-extra/clangd
Eric Liu e98b86cbe8 [clangd] Improve global code completion when scope specifier is unresolved.
Summary:
Suppose `clangd::` is unresolved in the following example. Currently,
we simply use "clangd::" as the query scope. We can do better by combining with
accessible scopes in the context. The query scopes can be `{clangd::, clang::clangd::}`.
```
namespace clang { clangd::^ }

```

Reviewers: ilya-biryukov, sammccall, hokein, kadircet

Reviewed By: kadircet

Subscribers: MaskRay, jkorous, arphaman, kadircet, jdoerfert, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D58448

llvm-svn: 354963
2019-02-27 11:42:37 +00:00
..
benchmarks Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
clients/clangd-vscode [clangd] Bump vscode-clangd v0.0.11 2019-02-06 15:29:54 +00:00
fuzzer [clangd] Use delimited style to make life easier for the fuzzer 2019-02-01 11:20:20 +00:00
index [clangd] Drop documentation in static index if symbols are not indexed for completion. 2019-02-25 16:00:00 +00:00
indexer Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
refactor Revamp the "[clangd] Format tweak's replacements" 2019-02-11 15:18:11 +00:00
tool [clangd] Fix a typo. NFC 2019-02-20 12:31:44 +00:00
xpc [clangd] Library dependencies in XPC 2019-02-27 02:37:44 +00:00
AST.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AST.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [clangd] Lib to compute and represent selection under cursor. 2019-02-01 15:05:11 +00:00
Cancellation.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Cancellation.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangdLSPServer.cpp Remove trailing semicolon. NFCI. 2019-02-03 14:08:30 +00:00
ClangdLSPServer.h [clangd] Implement textDocument/declaration from LSP 3.14 2019-02-01 11:26:13 +00:00
ClangdServer.cpp [NFC][clangd] Remove unused lambda capture 2019-02-11 22:36:47 +00:00
ClangdServer.h [clangd] Implement textDocument/declaration from LSP 3.14 2019-02-01 11:26:13 +00:00
ClangdUnit.cpp Revamp the "[clangd] Format tweak's replacements" 2019-02-11 15:18:11 +00:00
ClangdUnit.h [clangd] Enable include insertion for static index 2019-02-04 16:19:57 +00:00
CodeComplete.cpp [clangd] Improve global code completion when scope specifier is unresolved. 2019-02-27 11:42:37 +00:00
CodeComplete.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CodeCompletionStrings.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CodeCompletionStrings.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Compiler.cpp [clangd] NFC: Use buildCompilerInvocation in CodeComplete 2019-01-22 09:58:53 +00:00
Compiler.h Revamp the "[clangd] Format tweak's replacements" 2019-02-11 15:18:11 +00:00
Context.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Context.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Diagnostics.cpp [clangd] Don't attach FixIt to the source code in macro. 2019-02-22 09:43:56 +00:00
Diagnostics.h [clangd] Add an option in the code to not display number of fixes 2019-02-19 16:50:37 +00:00
DraftStore.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DraftStore.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExpectedTypes.cpp [CodeComplete] [clangd] Fix crash on ValueDecl with a null type 2019-01-24 10:41:43 +00:00
ExpectedTypes.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FS.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FS.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FSProvider.cpp [clangd] Unlink VFS working dir from OS working dir. Reland of r351051 2019-02-15 11:04:25 +00:00
FSProvider.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Features.inc.in [clangd] XPC transport layer 2019-01-16 00:24:22 +00:00
FileDistance.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FileDistance.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FindSymbols.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FindSymbols.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Function.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FuzzyMatch.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FuzzyMatch.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
GlobalCompilationDatabase.cpp [clangd] Filter out plugin related flags and move all commandline manipulations into OverlayCDB. 2019-01-22 09:10:20 +00:00
GlobalCompilationDatabase.h [clangd] Filter out plugin related flags and move all commandline manipulations into OverlayCDB. 2019-01-22 09:10:20 +00:00
Headers.cpp [clangd] Suggest adding missing includes for incomplete type diagnostics. 2019-01-28 14:01:55 +00:00
Headers.h [clangd] Suggest adding missing includes for incomplete type diagnostics. 2019-01-28 14:01:55 +00:00
IncludeFixer.cpp [clangd] Handle another incomplete-type diagnostic case in IncludeFixer. 2019-02-21 09:33:49 +00:00
IncludeFixer.h [clangd] Cache include fixes for diagnostics caused by the same unresolved name or incomplete type. 2019-02-18 13:12:10 +00:00
JSONTransport.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Logger.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Logger.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Path.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Protocol.cpp [clangd] Interfaces for writing code tweaks 2019-01-29 14:17:36 +00:00
Protocol.h [clangd] Interfaces for writing code tweaks 2019-01-29 14:17:36 +00:00
Quality.cpp [clangd] Penalize file-scope symbols in the ranking for non-completion queries 2019-02-01 13:07:37 +00:00
Quality.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RIFF.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RIFF.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Selection.cpp [clangd] Fix a crash in Selection 2019-02-20 19:26:39 +00:00
Selection.h [clangd] Lib to compute and represent selection under cursor. 2019-02-01 15:05:11 +00:00
SourceCode.cpp [clangd] Format tweak's replacements. 2019-02-06 15:24:50 +00:00
SourceCode.h [ELF] Format lines inadvertently indented by rCTE353380 2019-02-07 15:38:14 +00:00
TUScheduler.cpp [clangd] Enable include insertion for static index 2019-02-04 16:19:57 +00:00
TUScheduler.h [clangd] Enable include insertion for static index 2019-02-04 16:19:57 +00:00
Threading.cpp [clangd] Set thread priority on Windows 2019-02-27 10:16:03 +00:00
Threading.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Trace.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Trace.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Transport.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
URI.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
URI.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
XRefs.cpp [clangd] Enhance macro hover to see full definition 2019-02-24 23:47:03 +00:00
XRefs.h [clangd] Implement textDocument/declaration from LSP 3.14 2019-02-01 11:26:13 +00:00