llvm-project/clang-tools-extra/clangd/unittests
Kadir Cetinkaya 9c903d0373
[clangd][Hover] Handle uninstantiated default args
Summary:
Default args might exist but be unparsed or uninstantiated.
getDefaultArg asserts on those. This patch makes sure we don't crash in such
scenarios.

Reviewers: sammccall, ilya-biryukov

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D73723
2020-01-31 15:03:33 +01: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 [ADT] Make StringRef's std::string conversion operator explicit 2020-01-28 23:47:07 +01:00
CMakeLists.txt [clangd] Add path mappings functionality 2020-01-07 12:40:51 +01:00
CancellationTests.cpp
CanonicalIncludesTests.cpp [clangd] Use pre-populated mappings for standard symbols 2019-09-09 15:32:51 +00:00
ClangdTests.cpp Even more fixes of implicit std::string conversions 2020-01-30 07:32:53 +01:00
CodeCompleteTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CodeCompletionStringsTests.cpp Code completion should not ignore default parameters in functions. 2019-08-07 16:52:21 +00:00
CollectMacrosTests.cpp [clangd] Errors in TestTU cause test failures unless suppressed with error-ok. 2020-01-24 11:16:27 +01:00
CompileCommandsTests.cpp [clangd] Try to fix CompileCommandsTests on windows. NFC 2019-12-06 12:28:01 +01:00
ContextTests.cpp [clang-tools-extra] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:52:23 +00:00
DexTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
DiagnosticsTests.cpp [ADT] Make StringRef's std::string conversion operator explicit 2020-01-28 23:47:07 +01:00
DraftStoreTests.cpp
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 Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FindSymbolsTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FindTargetTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FormatTests.cpp [clangd] Revamp textDocument/onTypeFormatting. 2019-06-10 14:26:21 +00:00
FormattedStringTests.cpp [clangd] Add a ruler after header in hover 2020-01-15 15:54:38 +01:00
FunctionTests.cpp
FuzzyMatchTests.cpp [ADT] Make StringRef's std::string conversion operator explicit 2020-01-28 23:47:07 +01:00
GlobalCompilationDatabaseTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
HeaderSourceSwitchTests.cpp [clangd] Rename DiagnosticsConsumer -> ClangdServer::Callbacks, and make it optional 2020-01-24 15:59:32 +01:00
HeadersTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
HoverTests.cpp [clangd][Hover] Handle uninstantiated default args 2020-01-31 15:03:33 +01:00
IndexActionTests.cpp Even more fixes of implicit std::string conversions 2020-01-30 07:32:53 +01:00
IndexTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
JSONTransportTests.cpp
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] Errors in TestTU cause test failures unless suppressed with error-ok. 2020-01-24 11:16:27 +01:00
PathMappingTests.cpp [clangd] Add path mappings functionality 2020-01-07 12:40:51 +01: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] Add a symbol-name-based blacklist for rename. 2020-01-29 10:32:40 +01:00
SelectionTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
SemanticHighlightingTests.cpp [ADT] Make StringRef's std::string conversion operator explicit 2020-01-28 23:47:07 +01:00
SemanticSelectionTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
SerializationTests.cpp [clangd] Use our own relation kind. 2019-10-17 14:08:28 +00:00
SourceCodeTests.cpp [ADT] Make StringRef's std::string conversion operator explicit 2020-01-28 23:47:07 +01:00
SymbolCollectorTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
SymbolInfoTests.cpp [clangd] Errors in TestTU cause test failures unless suppressed with error-ok. 2020-01-24 11:16:27 +01:00
SyncAPI.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
SyncAPI.h [clangd] Implement cross-file rename. 2019-11-26 10:04:31 +01:00
TUSchedulerTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
TestFS.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
TestFS.h [clangd] Reland rL365634 2019-07-11 09:54:31 +00:00
TestIndex.cpp
TestIndex.h
TestScheme.h
TestTU.cpp [clangd] Errors in TestTU cause test failures unless suppressed with error-ok. 2020-01-24 11:16:27 +01:00
TestTU.h Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ThreadingTests.cpp
TraceTests.cpp
TweakTesting.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
TweakTesting.h [clangd] Define out-of-line availability checks 2019-12-04 08:21:09 +01:00
TweakTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
TypeHierarchyTests.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
URITests.cpp
XRefsTests.cpp [clangd] Make go-to-def jumps to overriden methods on `final` specifier. 2020-01-30 12:49:30 +01: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