llvm-project/clang-tools-extra/clangd
Adam Czachorowski b488935320 [clangd] Discard diagnostics from another SourceManager.
This can happen when building implicit modules, as demonstrated in test.
The CompilerInstance uses the same StoredDiags, but different
SourceManager. This used to crash clangd when it tried to relocate the
diagnostic to the main file, which, according to SourceManager from the
diagnostic, is a fake <module-includes> file.

Differential Revision: https://reviews.llvm.org/D85753
2020-08-21 13:11:21 +02:00
..
benchmarks [clangd] Don't create as much garbage while building Dex index. 2020-05-14 13:35:44 +02:00
fuzzer [clangd][NFC] Rename FSProvider and getFileSystem 2020-06-19 12:12:03 +02:00
include-mapping [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
index [clangd] Index refs to main-file symbols as well 2020-08-18 00:30:07 -04:00
indexer [clangd] Fix clangd-indexeer builds after D84697 2020-07-29 10:27:11 +02:00
refactor Fix unused variable warnings. NFCI. 2020-08-19 14:34:32 +01:00
support [clangd] Suppress GCC -Woverloaded-virtual by renaming ThreadsafeFS extension point 2020-06-30 15:06:15 +02:00
test [clangd] Fixes in lit tests 2020-07-22 16:00:34 +03:00
tool [clangd] Index refs to main-file symbols as well 2020-08-18 00:30:07 -04:00
unittests [clangd] Discard diagnostics from another SourceManager. 2020-08-21 13:11:21 +02:00
xpc [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
AST.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
AST.h [clangd] Get rid of lexer usage in AST.cpp 2020-02-27 09:54:21 +01:00
CMakeLists.txt llvm_canonicalize_cmake_booleans(CLANGD_ENABLE_REMOTE) 2020-07-27 14:42:04 +02:00
CSymbolMap.inc [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
ClangdLSPServer.cpp [clangd] Implement textDocument/foldingRange 2020-07-14 09:28:42 +02:00
ClangdLSPServer.h [clangd] Implement textDocument/foldingRange 2020-07-14 09:28:42 +02:00
ClangdServer.cpp [clangd] Index refs to main-file symbols as well 2020-08-18 00:30:07 -04:00
ClangdServer.h [clangd] Index refs to main-file symbols as well 2020-08-18 00:30:07 -04:00
CodeComplete.cpp [clangd] Unify macro matching in code completion for AST and Index based macros 2020-08-11 16:00:39 +02:00
CodeComplete.h [clangd] Populate the parse options to CodeCompletion/SignatureHelp. 2020-06-05 10:32:07 +02:00
CodeCompletionStrings.cpp Code completion should not ignore default parameters in functions. 2019-08-07 16:52:21 +00:00
CodeCompletionStrings.h [clangd] Place cursor better after completing patterns 2019-05-28 15:33:37 +00:00
CollectMacros.cpp [clangd] Get rid of getTokenRange helper 2020-03-03 14:30:42 +01:00
CollectMacros.h [clangd] Get rid of getTokenRange helper 2020-03-03 14:30:42 +01:00
CompileCommands.cpp Revert 7dfff42f01 as it broke non-Windows builds. 2020-07-19 11:12:39 -04:00
CompileCommands.h [clangd] Fix use-after-free in ArgStripper 2020-07-15 11:03:11 +02:00
Compiler.cpp [clangd] Don't crash on `#pragma clang __debug parser_crash` 2020-08-20 15:53:21 +03:00
Compiler.h [clangd] Rename FSProvider to TFS in case of ThreadsafeFS 2020-06-19 12:12:03 +02:00
Config.cpp [clangd] config() -> Config::current to avoid confict with NS 2020-06-29 23:05:19 +02:00
Config.h [clangd] Config: Index.Background 2020-07-14 19:04:11 +02:00
ConfigCompile.cpp [clangd] Config: Index.Background 2020-07-14 19:04:11 +02:00
ConfigFragment.h [clangd] Config: Index.Background 2020-07-14 19:04:11 +02:00
ConfigProvider.cpp [clangd] Fix the build with clang <3.9. 2020-07-17 16:12:31 -06:00
ConfigProvider.h [clangd] Make config::Provider::combine non-owning. NFC 2020-07-14 20:45:02 +02:00
ConfigYAML.cpp [clangd] Config: Index.Background 2020-07-14 19:04:11 +02:00
Diagnostics.cpp [clangd] Discard diagnostics from another SourceManager. 2020-08-21 13:11:21 +02:00
Diagnostics.h [clangd] Discard diagnostics from another SourceManager. 2020-08-21 13:11:21 +02:00
DraftStore.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
DraftStore.h [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
ExpectedTypes.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01: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 Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FS.h [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
Features.inc.in Speculative build fix for clangd/Features.inc.in 2020-07-27 13:39:54 +02:00
FileDistance.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
FileDistance.h Move endian constant from Host.h to SwapByteOrder.h, prune include 2019-10-19 00:48:11 +00:00
FindSymbols.cpp Add document outline symbols from unnamed contexts, e.g. extern "C". 2020-08-03 11:34:56 +02:00
FindSymbols.h [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
FindTarget.cpp [clangd] Target member of dependent base made visible via a using-decl 2020-08-18 03:03:49 -04:00
FindTarget.h [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
Format.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
Format.h [clangd] Revamp textDocument/onTypeFormatting. 2019-06-10 14:26:21 +00:00
FuzzyMatch.cpp [clangd] Tune the fuzzy-matching algorithm 2019-03-15 14:00:49 +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] Always retrieve ProjectInfo from Base in OverlayCDB 2020-07-16 12:33:54 +02:00
GlobalCompilationDatabase.h [clangd] Always retrieve ProjectInfo from Base in OverlayCDB 2020-07-16 12:33:54 +02:00
HeaderSourceSwitch.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
HeaderSourceSwitch.h [clangd] Implement a smart version of HeaderSource switch. 2019-09-30 10:48:02 +00:00
Headers.cpp [clangd] locateMacroAt handles patched macros 2020-05-29 12:46:54 +02:00
Headers.h [clangd] Preserve line information while build PreamblePatch 2020-05-07 12:24:28 +02:00
Hover.cpp Fix up clangd after Clang 038edf6029. 2020-08-20 16:36:25 -07:00
Hover.h [clangd] Improve hover on arguments to function call 2020-07-03 11:51:15 +02:00
IncludeFixer.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
IncludeFixer.h [clangd] Compute scopes eagerly in IncludeFixer 2019-08-06 11:37:50 +00:00
JSONTransport.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
ParsedAST.cpp [clangd] Send EOF before resetting diagnostics consumer 2020-08-13 18:32:59 +02:00
ParsedAST.h [clangd] Express dumpAST in tests as a customAction() 2020-08-13 14:27:32 +02:00
PathMapping.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
PathMapping.h [clangd] Add path mappings functionality 2020-01-07 12:40:51 +01:00
Preamble.cpp [clangd] Suppress GCC -Woverloaded-virtual by renaming ThreadsafeFS extension point 2020-06-30 15:06:15 +02:00
Preamble.h [clangd] Make use of preamble bounds from the patch inside ReplayPreamble 2020-06-17 18:32:59 +02:00
Protocol.cpp [clangd] Implement textDocument/foldingRange 2020-07-14 09:28:42 +02:00
Protocol.h [clangd] Implement textDocument/foldingRange 2020-07-14 09:28:42 +02:00
Quality.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
Quality.h [clangd] Remove unused signature help quality signal. NFC 2019-06-06 08:32:25 +00:00
QueryDriverDatabase.cpp As part of using inclusive language within the llvm project, 2020-06-19 15:41:06 -07:00
README.md [clangd] Add README pointing to docs, bugtracker etc. NFC 2020-03-12 14:00:08 +01:00
RIFF.cpp [clangd] RIFF.cpp - Use logical && instead of bitwise & for padding check 2020-08-11 11:38:43 +01:00
RIFF.h [clangd] Improve serialization error messages. NFC 2020-07-08 17:31:40 +02:00
Selection.cpp [clangd] Have template template arguments target their referenced template decl 2020-08-10 13:27:23 -04:00
Selection.h [clangd] Handle go-to-definition in macro invocations where the target appears in the expansion multiple times 2020-03-03 15:52:05 -05:00
SemanticHighlighting.cpp [clangd] Highlight structured bindings at local scope as LocalVariable 2020-08-07 03:23:10 -04:00
SemanticHighlighting.h [clangd] Support textDocument/semanticTokens/edits 2020-04-02 17:38:29 +02:00
SemanticSelection.cpp [clangd] Implement textDocument/foldingRange 2020-07-14 09:28:42 +02:00
SemanticSelection.h [clangd] Implement textDocument/foldingRange 2020-07-14 09:28:42 +02:00
SourceCode.cpp [clangd] Rename FSProvider to TFS in case of ThreadsafeFS 2020-06-19 12:12:03 +02:00
SourceCode.h [clangd] Rename FSProvider to TFS in case of ThreadsafeFS 2020-06-19 12:12:03 +02:00
StdSymbolMap.inc [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
TUScheduler.cpp [clangd] Config: also propagate in sync (testing) mode 2020-07-15 12:30:08 +02:00
TUScheduler.h [clangd] Config: also propagate in sync (testing) mode 2020-07-15 12:30:08 +02:00
Transport.h [NFC] Fix typos in Clangd and Clang 2019-12-16 10:54:40 +01:00
URI.cpp [clangd] Fix conversion from Windows UNC paths to file URI format. 2020-07-22 12:13:09 +02:00
URI.h [clangd] Simplify the callside of URI::resolve, NFC. 2019-09-23 14:39:37 +00:00
XRefs.cpp [clangd] Target member of dependent base made visible via a using-decl 2020-08-18 03:03:49 -04:00
XRefs.h [clangd] Rename FormattedString -> Markup, move to support. NFC 2020-05-02 14:53:47 +02:00

README.md

clangd

clangd is a language server, and provides C++ IDE features to editors. This is not its documentation.

Communication channels

If you have any questions or feedback, you can reach community and developers through one of these channels: