llvm-project/clang-tools-extra/clangd/unittests
Kadir Cetinkaya 83411bf06f
[clangd] Support for standard type hierarchy
This is mostly a mechanical change to adapt standard type hierarchy
support proposed in LSP 3.17 on top of clangd's existing extension support.

This does mainly two things:
- Incorporate symbolids for all the parents inside resolution parameters, so
  that they can be retrieved from index later on. This is a new code path, as
  extension always resolved them eagerly.
- Propogate parent information when resolving children, so that at least one
  branch of parents is always preserved. This is to address a shortcoming in the
  extension.

This doesn't drop support for the extension, but it's deprecated from now on and
will be deleted in upcoming releases. Currently we use the same struct
internally but don't serialize extra fields.

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

Differential Revision: https://reviews.llvm.org/D131385
2022-08-17 09:29:15 +02:00
..
decision_forest_model Revert "Temporarily Revert "[clangd] Add Random Forest runtime for code completion."" 2020-09-19 10:54:04 +02:00
remote [clangd] Add symbol origin for remote index 2020-11-28 15:38:11 +01:00
support Use value_or instead of getValueOr. NFC 2022-06-29 21:55:02 -07:00
tweaks [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
xpc [clangd] CMake: express -Iclangd/ at top level and inherit 2021-07-02 09:52:36 +02:00
ASTSignalsTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
ASTTests.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
Annotations.cpp
Annotations.h [clangd] cleanup of header guard names 2021-12-02 15:58:35 +00:00
BackgroundIndexTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
CMakeLists.txt Reland(3) "[clangd] Indexing of standard library" 2022-05-19 08:13:23 +02:00
CallHierarchyTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
CanonicalIncludesTests.cpp Fix the test after D123031 2022-04-05 18:21:24 +02:00
ClangdLSPServerTests.cpp [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
ClangdTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
CodeCompleteTests.cpp [clangd] Do not try to use $0 as a placeholder in completion snippets 2022-07-24 03:01:18 -04:00
CodeCompletionStringsTests.cpp [clangd] Do not try to use $0 as a placeholder in completion snippets 2022-07-24 03:01:18 -04:00
CollectMacrosTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
CompileCommandsTests.cpp [clangd] Cleanup of readability-identifier-naming 2022-02-01 13:31:52 +00:00
CompilerTests.cpp [clangd] Bail-out when an empty compile flag is encountered 2021-09-20 16:51:56 +02:00
ConfigCompileTests.cpp [clangd] Wire up compilation for style blocks 2022-06-15 08:15:32 +02:00
ConfigProviderTests.cpp [clangd] Remove a test with a duplicate of FileCacheTests 2022-06-01 08:15:54 +09:00
ConfigTesting.h [clangd] Cleanup of readability-identifier-naming 2022-02-01 13:31:52 +00:00
ConfigYAMLTests.cpp Use value instead of getValue (NFC) 2022-07-15 20:03:13 -07:00
DecisionForestTests.cpp Revert "Temporarily Revert "[clangd] Add Random Forest runtime for code completion."" 2020-09-19 10:54:04 +02:00
DexTests.cpp [clangd] Qualify calls to std::move to silence -Wunqualified-std-cast-call. NFC. 2022-02-26 13:36:14 +01:00
DiagnosticsTests.cpp [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
DraftStoreTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
DumpASTTests.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
ExpectedTypeTest.cpp [clangd] Cleanup of readability-identifier-naming 2022-02-01 13:31:52 +00:00
FSTests.cpp [clang, clang-tools-extra] Use has_value instead of hasValue (NFC) 2022-07-12 22:47:41 -07:00
FeatureModulesTests.cpp [clangd] Add beforeExecute() callback to FeatureModules. 2022-04-21 18:03:39 +02:00
FileDistanceTests.cpp
FileIndexTests.cpp [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
FindSymbolsTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
FindTargetTests.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
FormatTests.cpp [clangd] Handle tabs in getIncrementalChangesAfterNewline() 2022-03-29 01:43:09 -04:00
FuzzyMatchTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
GlobalCompilationDatabaseTests.cpp Use value instead of getValue (NFC) 2022-07-15 20:03:13 -07:00
HeaderSourceSwitchTests.cpp Use value instead of getValue (NFC) 2022-07-15 20:03:13 -07:00
HeadersTests.cpp [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
HoverTests.cpp [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
IncludeCleanerTests.cpp [clangd][unittests][IncludeCleaner] Don't call findReferencedFiles() if the result is not used 2022-08-12 21:00:11 +03:00
IndexActionTests.cpp [clangd] Remove trivial uses of FileEntry::getName 2022-04-04 20:59:51 +02:00
IndexTests.cpp [clangd] Cleanup of readability-identifier-naming 2022-02-01 13:31:52 +00:00
InlayHintTests.cpp [clangd] Fix an inlay-hint crash on a broken designator. 2022-08-12 14:37:46 +02:00
InsertionPointTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
JSONTransportTests.cpp [clangd] Cleanup of readability-identifier-naming 2022-02-01 13:31:52 +00:00
LSPBinderTests.cpp Use value instead of getValue (NFC) 2022-07-15 20:03:13 -07:00
LSPClient.cpp [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
LSPClient.h [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
LoggerTests.cpp
Matchers.h [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
ModulesTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
ParsedASTTests.cpp [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
PathMappingTests.cpp
PreambleTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
PrintASTTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
ProjectAwareIndexTests.cpp [clangd] Drop optional on ExternalIndexSpec 2021-06-02 23:26:37 +02:00
QualityTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
RIFFTests.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
RenameTests.cpp [clangd] Remove redundant check for renamed symbol origin 2022-01-18 09:43:53 +01:00
SelectionTests.cpp [clangd] Fix a selection tree crash for unmatched-bracket code. 2022-01-27 21:21:40 +01:00
SemanticHighlightingTests.cpp Use is_sorted (NFC) 2022-07-29 21:18:42 -07:00
SemanticSelectionTests.cpp Add foldings for multi-line comment. 2022-08-03 08:19:12 +02:00
SerializationTests.cpp [clangd][test] Fix error message in SerializationTest.BinaryConversions 2022-08-11 08:50:23 +02:00
SourceCodeTests.cpp Use value_or instead of getValueOr (NFC) 2022-06-19 10:34:41 -07:00
StdLibTests.cpp Reland(3) "[clangd] Indexing of standard library" 2022-05-19 08:13:23 +02:00
SymbolCollectorTests.cpp [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
SymbolInfoTests.cpp [clangd] Add decl/def support to SymbolDetails 2022-08-01 14:42:19 -04:00
SyncAPI.cpp [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
SyncAPI.h [clangd] Provide documentation as MarkupContent in signaturehelp 2021-12-10 12:58:08 +01:00
TUSchedulerTests.cpp [clang-tools-extra] Fixed a number of typos 2022-08-01 15:32:25 +02:00
TestFS.cpp [clangd] Test against path insensitivity 2022-03-21 17:27:05 +01:00
TestFS.h [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
TestIndex.cpp [clangd] Improve ObjC protocol suggestions from the index 2022-06-15 15:02:37 -04:00
TestIndex.h [clangd] Improve ObjC protocol suggestions from the index 2022-06-15 15:02:37 -04:00
TestTU.cpp [clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC) 2022-06-25 11:55:33 -07:00
TestTU.h [clangd] parse all make_unique-like functions in preamble 2022-05-16 11:17:25 +02:00
TestWorkspace.cpp [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
TestWorkspace.h [clangd] Clean up unused includes. NFCI 2022-02-26 12:00:16 +01:00
ThreadCrashReporterTests.cpp [clangd] Print current request context along with the stack trace 2021-10-26 00:58:09 +02:00
TidyProviderTests.cpp [clang, clang-tools-extra] Use has_value instead of hasValue (NFC) 2022-07-12 22:47:41 -07:00
TypeHierarchyTests.cpp [clangd] Support for standard type hierarchy 2022-08-17 09:29:15 +02:00
URITests.cpp [clangd] Cleanup of readability-identifier-naming 2022-02-01 13:31:52 +00:00
XRefsTests.cpp [clang-tools-extra] Fixed a number of typos 2022-08-01 15:32:25 +02:00
lit.cfg.py
lit.site.cfg.py.in