llvm-project/clang-tools-extra/clangd/unittests
Sam McCall a56141b8f9 [clangd] Highlight related control flow.
Summary:
This means e.g. highlighting "return" will show other returns/throws
from the same function, highlighting a case will show all the
return/breaks etc.

This is a bit of an abuse of textDocument/highlight, but seems useful.

Reviewers: adamcz

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D78454
2020-05-28 13:25:11 +02:00
..
remote [clangd-remote] Replace YAML serialization with proper Protobuf messages 2020-05-19 17:07:38 +02:00
support [clangd] Avoid StringRef entirely with gmock 2020-05-19 16:50:35 +02:00
xpc [clangd][xpc] Fix XPC unittests 2019-04-29 19:41:30 +00:00
ASTTests.cpp [clangd] Errors in TestTU cause test failures unless suppressed with error-ok. 2020-01-24 11:16:27 +01:00
Annotations.cpp
Annotations.h
BackgroundIndexTests.cpp [clangd] Fix data race in BackgroundIndex test 2020-05-09 18:15:27 +02:00
CMakeLists.txt [clangd-remote] Replace YAML serialization with proper Protobuf messages 2020-05-19 17:07:38 +02:00
CanonicalIncludesTests.cpp [clangd] Use pre-populated mappings for standard symbols 2019-09-09 15:32:51 +00:00
ClangdLSPServerTests.cpp [clangd] Fix a data race in RecordsLatencies test 2020-05-09 15:42:21 +02:00
ClangdTests.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
CodeCompleteTests.cpp [clangd] Add a flag to preserve type for recovery expression. 2020-05-19 15:21:57 +02:00
CodeCompletionStringsTests.cpp Code completion should not ignore default parameters in functions. 2019-08-07 16:52:21 +00:00
CollectMacrosTests.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
CompileCommandsTests.cpp [clangd] Strip /showIncludes in clangd compile commands 2020-04-26 18:57:39 -07:00
CompilerTests.cpp [clangd] Filter pch related flags coming from the user 2020-05-10 13:03:59 +02:00
DexTests.cpp [clangd] Don't create as much garbage while building Dex index. 2020-05-14 13:35:44 +02:00
DiagnosticsTests.cpp [clangd] Only emit default error/fatal diagnostices from included files. 2020-05-14 11:09:06 +02:00
DraftStoreTests.cpp [clangd] Propagate versions into DraftStore, assigning where missing. NFC 2020-03-03 16:20:13 +01:00
ExpectedTypeTest.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FSTests.cpp [clangd] Make PreambleStatusCache handle filenames more carefully 2019-07-01 10:11:18 +00:00
FileDistanceTests.cpp
FileIndexTests.cpp [clangd] Get rid of move semantics to unbreak windows build bots 2020-04-30 16:43:50 +02:00
FindSymbolsTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FindTargetTests.cpp [clangd] findExplicitReferences supports goto labels 2020-05-19 16:50:35 +02:00
FormatTests.cpp [clangd] Revamp textDocument/onTypeFormatting. 2019-06-10 14:26:21 +00:00
FuzzyMatchTests.cpp [ADT] Make StringRef's std::string conversion operator explicit 2020-01-28 23:47:07 +01:00
GlobalCompilationDatabaseTests.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
HeaderSourceSwitchTests.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
HeadersTests.cpp [clangd] Reland 'Handle PresumedLocations in IncludeCollector' 2020-05-06 17:57:03 +02:00
HoverTests.cpp [clangd] Add access specifier information to hover contents 2020-05-27 19:36:46 +02:00
IndexActionTests.cpp [clangd] Don't traverse the AST within uninteresting files during indexing 2020-05-26 10:27:28 +02:00
IndexTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
JSONTransportTests.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
LSPClient.cpp [clangd] Metric tracking through Tracer 2020-05-03 10:50:32 +02:00
LSPClient.h [clangd] Set up machinery for gtests of ClangdLSPServer. 2020-04-10 02:50:57 +02:00
Matchers.h Replace llvm::integer_sequence and friends with the C++14 standard version 2019-08-15 10:56:05 +00:00
ParsedASTTests.cpp [clangd] Disable delayed template parsing in the main file 2020-04-26 14:29:38 +02:00
PathMappingTests.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
PreambleTests.cpp [clangd] Change PreambleOnlyAction with content truncation 2020-05-26 07:37:03 +02:00
PrintASTTests.cpp [clangd] Errors in TestTU cause test failures unless suppressed with error-ok. 2020-01-24 11:16:27 +01:00
QualityTests.cpp [clangd] Errors in TestTU cause test failures unless suppressed with error-ok. 2020-01-24 11:16:27 +01:00
RIFFTests.cpp
RenameTests.cpp [clangd] Metric tracking through Tracer 2020-05-03 10:50:32 +02:00
SelectionTests.cpp [clangd] Add metrics for selection tree and recovery expressions. 2020-05-12 16:14:48 +02:00
SemanticHighlightingTests.cpp [clangd] Color dependent names based on their heuristic target if they have one 2020-04-15 00:57:08 -04:00
SemanticSelectionTests.cpp [clangd] Support multiple cursors in selectionRange. 2020-03-25 17:59:09 +01:00
SerializationTests.cpp [clangd] Extend YAML Serialization 2020-04-19 14:32:31 +02:00
SourceCodeTests.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
SymbolCollectorTests.cpp [clangd] Set "spelled" flag for constructor references. 2020-02-06 16:59:45 +01:00
SymbolInfoTests.cpp [clang-tools-extra] NFC: Fix trivial typo in documents and comments 2020-04-05 15:28:40 +09:00
SyncAPI.cpp [clangd] Support multiple cursors in selectionRange. 2020-03-25 17:59:09 +01:00
SyncAPI.h [clangd] Support multiple cursors in selectionRange. 2020-03-25 17:59:09 +01:00
TUSchedulerTests.cpp [clangd] Metric tracking through Tracer 2020-05-03 10:50:32 +02:00
TestFS.cpp [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
TestFS.h [clangd] Move non-clang base pieces into separate support/ lib. NFCI 2020-04-29 15:57:12 +02:00
TestIndex.cpp
TestIndex.h
TestScheme.h
TestTU.cpp [clangd-remote] Replace YAML serialization with proper Protobuf messages 2020-05-19 17:07:38 +02:00
TestTU.h [clangd-remote] Replace YAML serialization with proper Protobuf messages 2020-05-19 17:07:38 +02:00
TweakTesting.cpp [clangd] Reapply b60896fad9 Fall back to selecting token-before-cursor if token-after-cursor fails. 2020-02-23 20:17:30 +01:00
TweakTesting.h [clangd] Don't build clangdserver for (most) completion tests. NFC 2020-03-31 23:09:36 +02:00
TweakTests.cpp [clangd] Make use of SourceOrder to find first initializer in DefineOutline 2020-05-26 07:32:07 +02:00
TypeHierarchyTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
URITests.cpp
XRefsTests.cpp [clangd] Highlight related control flow. 2020-05-28 13:25:11 +02:00
lit.cfg.py [clangd] Restore conventional names for lit configs, and .in/.py split. Fix build_mode indirection. 2019-05-02 08:00:39 +00:00
lit.site.cfg.py.in [clangd] Restore conventional names for lit configs, and .in/.py split. Fix build_mode indirection. 2019-05-02 08:00:39 +00:00