llvm-project/clang-tools-extra/clangd
Haojian Wu b018906051 [clangd] Better handling symbols defined in macros.
Summary:
For symbols defined inside macros:
 * use expansion location, if the symbol is formed via macro concatenation.
 * use spelling location, otherwise.

This will fix some symbols that have ill-format location (especial invalid filepath).

Reviewers: ioeric

Reviewed By: ioeric

Subscribers: klimek, ilya-biryukov, jkorous-apple, cfe-commits

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

llvm-svn: 323867
2018-01-31 12:56:51 +00:00
..
clients/clangd-vscode [clangd] Use new URI with scheme support in place of the existing LSP URI 2018-01-29 15:37:46 +00:00
fuzzer [clangd-fuzzer] Update ClangdLSPServer constructor call. 2017-12-20 22:29:23 +00:00
global-symbol-builder [clangd] Add a fallback directory for collected symbols with relative paths. 2018-01-29 15:13:29 +00:00
index [clangd] Better handling symbols defined in macros. 2018-01-31 12:56:51 +00:00
tool [clangd] Enable completion index by default, limit results to 100. 2018-01-30 09:21:30 +00:00
CMakeLists.txt [clangd] Refactored threading in ClangdServer 2018-01-31 08:51:16 +00:00
ClangdLSPServer.cpp [clangd] Use new URI with scheme support in place of the existing LSP URI 2018-01-29 15:37:46 +00:00
ClangdLSPServer.h [clangd] Pass Context to onDiagnosticsReady callback 2018-01-10 17:59:27 +00:00
ClangdServer.cpp [clangd] Second attempt to fix MSVC compilation breakage. 2018-01-31 11:26:43 +00:00
ClangdServer.h [clangd] Refactored threading in ClangdServer 2018-01-31 08:51:16 +00:00
ClangdUnit.cpp [clangd] Fixed null deference on invalid compile commands. 2018-01-29 14:30:28 +00:00
ClangdUnit.h [clangd] Provide a helper to report estimated memory usage per-file 2018-01-25 14:32:21 +00:00
ClangdUnitStore.cpp [clangd] Provide a helper to report estimated memory usage per-file 2018-01-25 14:32:21 +00:00
ClangdUnitStore.h [clangd] Refactored threading in ClangdServer 2018-01-31 08:51:16 +00:00
CodeComplete.cpp [clangd] Trace code completion. 2018-01-30 17:20:54 +00:00
CodeComplete.h [clangd] Remove unused IncludeGlobals completion option, always pass true to sema 2018-01-18 15:31:30 +00:00
CodeCompletionStrings.cpp [clangd] Pull CodeCompletionString handling logic into its own file and add unit test. 2017-12-20 17:24:31 +00:00
CodeCompletionStrings.h [clangd] Pull CodeCompletionString handling logic into its own file and add unit test. 2017-12-20 17:24:31 +00:00
CompileArgsCache.cpp [clangd] Fixed the file comment of new file. NFC 2018-01-25 14:30:46 +00:00
CompileArgsCache.h [clangd] Added forgotten files 2018-01-25 14:29:29 +00:00
Compiler.cpp [clangd] Always use preamble (even stale) for code completion 2018-01-18 15:17:00 +00:00
Compiler.h [clangd] Always use preamble (even stale) for code completion 2018-01-18 15:17:00 +00:00
Context.cpp [clangd] Introduced a Context that stores implicit data 2017-12-12 11:16:45 +00:00
Context.h [clangd] Modify the Span API so that Spans propagate with contexts. 2018-01-26 09:00:30 +00:00
DraftStore.cpp Fixing compilation failures on buildbots. 2017-05-16 10:06:20 +00:00
DraftStore.h [clangd] Serialize onDiagnosticsReady callbacks for the same file. 2017-09-20 12:58:55 +00:00
Function.h [clangd] Replace homegrown make_scope_exit with one from ADT 2018-01-25 17:01:39 +00:00
FuzzyMatch.cpp [clangd] Fix memcpy(?, null, 0) UB by switching to std::copy 2018-01-19 15:03:49 +00:00
FuzzyMatch.h [clangd] Merge index-provided completions with those from Sema. 2018-01-19 14:34:02 +00:00
GlobalCompilationDatabase.cpp [clangd] Simplify GlobalCompilationDatabase, cache missing GCDs 2017-12-22 09:47:34 +00:00
GlobalCompilationDatabase.h [clangd] Simplify GlobalCompilationDatabase, cache missing GCDs 2017-12-22 09:47:34 +00:00
JSONExpr.cpp [clangd] Put all #includes in one block in clangd source files. NFC 2017-12-14 21:22:03 +00:00
JSONExpr.h [clangd] Put all #includes in one block in clangd source files. NFC 2017-12-14 21:22:03 +00:00
JSONRPCDispatcher.cpp [clangd] Fix GCC build break 'declaration changes meaning' 2018-01-26 11:23:33 +00:00
JSONRPCDispatcher.h [clangd] Implemented logging using Context 2017-12-13 12:51:22 +00:00
Logger.cpp [clangd] Output log messages to stderr when not configured (e.g. in tests). NFC 2018-01-18 10:24:01 +00:00
Logger.h [clangd] Output log messages to stderr when not configured (e.g. in tests). NFC 2018-01-18 10:24:01 +00:00
Path.h Restored r303067 and fixed failing test. 2017-05-16 09:38:59 +00:00
Protocol.cpp [clangd] Fix windows path manipulation 2018-01-30 11:23:11 +00:00
Protocol.h [clangd] Use new URI with scheme support in place of the existing LSP URI 2018-01-29 15:37:46 +00:00
ProtocolHandlers.cpp [clangd] Implemented logging using Context 2017-12-13 12:51:22 +00:00
ProtocolHandlers.h [clangd] Implemented logging using Context 2017-12-13 12:51:22 +00:00
SourceCode.cpp [clangd] Expose offset <-> LSP position functions, and fix bugs 2017-12-19 12:23:48 +00:00
SourceCode.h [clangd] Expose offset <-> LSP position functions, and fix bugs 2017-12-19 12:23:48 +00:00
TUScheduler.cpp [clangd] Refactored threading in ClangdServer 2018-01-31 08:51:16 +00:00
TUScheduler.h [clangd] Refactored threading in ClangdServer 2018-01-31 08:51:16 +00:00
Threading.cpp [clangd] Refactored threading in ClangdServer 2018-01-31 08:51:16 +00:00
Threading.h [clangd] Refactored threading in ClangdServer 2018-01-31 08:51:16 +00:00
Trace.cpp [clangd] Modify the Span API so that Spans propagate with contexts. 2018-01-26 09:00:30 +00:00
Trace.h [clangd] Modify the Span API so that Spans propagate with contexts. 2018-01-26 09:00:30 +00:00
URI.cpp [clangd] Use new URI with scheme support in place of the existing LSP URI 2018-01-29 15:37:46 +00:00
URI.h [clangd] Use new URI with scheme support in place of the existing LSP URI 2018-01-29 15:37:46 +00:00
XRefs.cpp [clangd] Use new URI with scheme support in place of the existing LSP URI 2018-01-29 15:37:46 +00:00
XRefs.h [clangd] Split findDefs/highlights into XRefs, from ClangdUnit. NFC 2017-12-19 17:06:07 +00:00