llvm-project/clang-tools-extra/clangd
Sam McCall 704cd4d5d0 [clangd] Only minimally escape text when rendering to markdown.
Summary:
Conservatively escaping everything is bad in coc.nvim which shows the markdown
to the user, and we have reports of it causing problems for other parsers.

Fixes https://github.com/clangd/clangd/issues/301

Reviewers: kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D75687
2020-03-17 17:10:20 +01: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.21. 2020-03-09 15:36:49 +01:00
fuzzer Fix the clangd-fuzzer build error. 2020-02-26 10:13:13 +01:00
include-mapping [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
index [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
indexer Revert "Use InitLLVM to setup a pretty stack printer" 2019-11-25 21:06:56 -05:00
refactor [clangd] Improve the "max limit" error message in rename, NFC. 2020-03-11 16:13:46 +01:00
test [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
tool [clangd] Expose the rename LimitFiles option to the C++ API, NFC. 2020-02-26 09:33:58 +01:00
unittests [clangd] Only minimally escape text when rendering to markdown. 2020-03-17 17:10:20 +01:00
xpc Fix clangd-xpc-test-client build after 777180a32b 2020-01-28 19:48:31 -05:00
AST.cpp [clangd] Get rid of lexer usage in AST.cpp 2020-02-27 09:54:21 +01:00
AST.h [clangd] Get rid of lexer usage in AST.cpp 2020-02-27 09:54:21 +01:00
CMakeLists.txt [clangd] Get rid of getTokenRange helper 2020-03-03 14:30:42 +01:00
CSymbolMap.inc [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
Cancellation.cpp [clangd] Cancel certain operations if the file changes before we start. 2020-03-05 00:10:07 +01:00
Cancellation.h [clangd] Cancel certain operations if the file changes before we start. 2020-03-05 00:10:07 +01:00
ClangdLSPServer.cpp [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
ClangdLSPServer.h [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
ClangdServer.cpp [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
ClangdServer.h [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
CodeComplete.cpp [clangd] Have visibleNamespaces() and getEligiblePoints() take a LangOptions rather than a FormatStyle 2020-03-10 16:45:41 -04:00
CodeComplete.h [clangd] Add instrumentation mode in clangd for metrics collection. 2020-03-05 12:39:15 +01: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 Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CompileCommands.h [clangd] Try to fix CompileCommandsTests on windows. NFC 2019-12-06 12:28:01 +01:00
Compiler.cpp [clangd] Log cc1 args at verbose level. 2019-11-29 11:00:01 +01:00
Compiler.h [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01: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 NFC: Fix trivial typos in comments 2020-01-04 10:28:41 -05:00
Diagnostics.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Diagnostics.h [NFC] Fix typos in Clangd and Clang 2019-12-16 10:54:40 +01:00
DraftStore.cpp [clangd] Propagate versions into DraftStore, assigning where missing. NFC 2020-03-03 16:20:13 +01:00
DraftStore.h [clangd] Propagate versions into DraftStore, assigning where missing. NFC 2020-03-03 16:20:13 +01: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 Add missing StringMap.h inclusion, apparently clangd is not covered by check-clang-tools zzz 2020-03-11 16:47:49 -07:00
FSProvider.cpp [clangd] Don't mmap source files on all platforms --> don't crash on git checkout 2020-01-29 19:44:14 +01:00
FSProvider.h [clangd] Don't mmap source files on all platforms --> don't crash on git checkout 2020-01-29 19:44:14 +01:00
Features.inc.in [clangd] XPC transport layer 2019-01-16 00:24:22 +00:00
FileDistance.cpp [clangd] Save an unnecessary copy, NFC. 2019-09-24 13:25:38 +00:00
FileDistance.h Move endian constant from Host.h to SwapByteOrder.h, prune include 2019-10-19 00:48:11 +00:00
FindSymbols.cpp [clangd] Add a textual fallback for go-to-definition 2020-03-12 16:33:08 -04:00
FindSymbols.h [clangd] Add a textual fallback for go-to-definition 2020-03-12 16:33:08 -04:00
FindTarget.cpp [clangd] Fix the incomplete template specialization in findTarget. 2020-02-21 09:42:02 +01:00
FindTarget.h [clangd] targetDecl() returns only NamedDecls. 2020-01-03 18:18:40 +01:00
Format.cpp Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
Format.h [clangd] Revamp textDocument/onTypeFormatting. 2019-06-10 14:26:21 +00:00
FormattedString.cpp [clangd] Only minimally escape text when rendering to markdown. 2020-03-17 17:10:20 +01:00
FormattedString.h [clangd] Only minimally escape text when rendering to markdown. 2020-03-17 17:10:20 +01:00
Function.h [clangd] Remove Bind, use C++14 lambda captures instead. NFC 2019-08-16 09:20:01 +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] Log directory when a CDB is loaded 2020-01-30 12:15:04 +01:00
GlobalCompilationDatabase.h [clangd] (take 2) Try harder to find a plausible `clang` as argv0, particularly on Mac. 2019-12-06 09:47:03 +01:00
HeaderSourceSwitch.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
HeaderSourceSwitch.h [clangd] Implement a smart version of HeaderSource switch. 2019-09-30 10:48:02 +00:00
Headers.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Headers.h [clangd][NFC] Typo in comment 2019-07-30 20:39:39 +00:00
Hover.cpp [clangd] Get rid of getTokenRange helper 2020-03-03 14:30:42 +01:00
Hover.h [clangd] Introduce paragraph, the first part of new rendering structs 2019-12-13 09:58:55 +01:00
IncludeFixer.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
IncludeFixer.h [clangd] Compute scopes eagerly in IncludeFixer 2019-08-06 11:37:50 +00:00
JSONTransport.cpp [clangd] Cancel certain operations if the file changes before we start. 2020-03-05 00:10:07 +01: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
ParsedAST.cpp [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
ParsedAST.h [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
Path.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PathMapping.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
PathMapping.h [clangd] Add path mappings functionality 2020-01-07 12:40:51 +01:00
Preamble.cpp [clangd] Populate PreambleData::CompileCommand and make use of it inside buildPreamble 2020-03-13 09:40:47 +01:00
Preamble.h [clangd] Populate PreambleData::CompileCommand and make use of it inside buildPreamble 2020-03-13 09:40:47 +01:00
Protocol.cpp [clangd] Add json::Object->Value conversion workaround for older compilers 2020-03-13 14:01:33 -07:00
Protocol.h [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
Quality.cpp [clang][Index] Introduce a TemplateParm SymbolKind 2020-02-14 13:20:34 +01:00
Quality.h [clangd] Remove unused signature help quality signal. NFC 2019-06-06 08:32:25 +00:00
QueryDriverDatabase.cpp [clangd] Preserve -nostdinc and --sysroot when calling query driver 2020-02-05 09:58:06 +01:00
README.md [clangd] Add README pointing to docs, bugtracker etc. NFC 2020-03-12 14:00:08 +01: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 early selection for non-vardecl declarators 2020-03-04 11:01:35 +01: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] Make use of token buffers in semantic highlighting 2020-03-03 14:30:41 +01:00
SemanticHighlighting.h [clangd] Add C++20 concepts support to findExplicitReferences() and semantic highlighting 2020-01-23 15:11:46 -05:00
SemanticSelection.cpp [clangd] Reapply b60896fad9 Fall back to selecting token-before-cursor if token-after-cursor fails. 2020-02-23 20:17:30 +01:00
SemanticSelection.h Implement semantic selections. 2019-09-16 11:29:35 +00:00
Shutdown.cpp Include <cstdlib> for std::abort() in clangd 2020-01-24 20:52:37 +01:00
Shutdown.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
SourceCode.cpp [clangd] Have visibleNamespaces() and getEligiblePoints() take a LangOptions rather than a FormatStyle 2020-03-10 16:45:41 -04:00
SourceCode.h [clangd] Have visibleNamespaces() and getEligiblePoints() take a LangOptions rather than a FormatStyle 2020-03-10 16:45:41 -04:00
StdSymbolMap.inc [clangd] Add include-mapping for C symbols. 2019-06-21 13:32:18 +00:00
TUScheduler.cpp [clangd] Populate PreambleData::CompileCommand and make use of it inside buildPreamble 2020-03-13 09:40:47 +01:00
TUScheduler.h [clangd] Track document versions, include them with diags, enhance logs 2020-03-05 01:22:32 +01:00
Threading.cpp [clangd] Increase stack size of the new threads on macOS 2020-02-04 15:21:27 +01:00
Threading.h [clangd] Remove obsolete includes. NFC 2019-09-04 10:01:05 +00:00
Trace.cpp [clangd] Remove obsolete includes. NFC 2019-09-04 10:01:05 +00:00
Trace.h NFC: Fix trivial typos in comments 2020-01-04 10:28:41 -05:00
Transport.h [NFC] Fix typos in Clangd and Clang 2019-12-16 10:54:40 +01:00
URI.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
URI.h [clangd] Simplify the callside of URI::resolve, NFC. 2019-09-23 14:39:37 +00:00
XRefs.cpp [clangd] Add a textual fallback for go-to-definition 2020-03-12 16:33:08 -04:00
XRefs.h [clangd] Add a textual fallback for go-to-definition 2020-03-12 16:33:08 -04: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: