llvm-project/clang-tools-extra/clangd/unittests
Nathan James dfac97d557
[clangd] Validate clang-tidy Checks in clangd config.
Add instrumentation in ConfigCompile to validate that items in ClangTidy:[Add|Remove] correspond to actual clang-tidy checks.
If they don't a warning will be presented to the user.

This is especially useful for catching typos in the glob items.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D92874
2020-12-15 21:10:57 +00: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 [clangd] NFC: Use SmallVector<T> where possible 2020-12-10 13:36:49 +01:00
tweaks clangd: Migrate to FileEntryRef in TweakTests, NFC 2020-12-09 17:00:42 -08:00
xpc [clangd][xpc] Fix XPC unittests 2019-04-29 19:41:30 +00:00
ASTTests.cpp [clangd] Improve goToDefinition on auto and dectype 2020-12-15 16:32:22 +01:00
Annotations.cpp
Annotations.h
BackgroundIndexTests.cpp [clangd] Collect main file refs by default 2020-11-25 20:33:57 -05:00
CMakeLists.txt [clangd] Split tweak tests into one file per tweak. 2020-12-09 17:17:06 +01:00
CallHierarchyTests.cpp [clangd] Sort results of incomingCalls request by container name 2020-11-24 03:29:02 -05:00
CanonicalIncludesTests.cpp [clangd] Disambiguate overloads of std::move for header insertion. 2020-10-07 19:42:41 +02:00
ClangdLSPServerTests.cpp [clangd] Call hierarchy (ClangdLSPServer layer) 2020-11-23 20:44:07 -05:00
ClangdTests.cpp [clangd] Implement clang-tidy options from config 2020-11-25 18:35:35 +00:00
CodeCompleteTests.cpp [clangd] Bundle code completion items when the include paths differ, but resolve to the same file. 2020-12-03 16:33:15 +01:00
CodeCompletionStringsTests.cpp [clangd] Fix invalid UTF8 when extracting doc comments. 2020-09-30 16:05:12 +02:00
CollectMacrosTests.cpp [clangd] Value initialize SymbolIDs 2020-11-02 11:37:47 +01:00
CompileCommandsTests.cpp [clangd] NFC: Use SmallVector<T> where possible 2020-12-10 13:36:49 +01:00
CompilerTests.cpp [clangd] Don't crash on `#pragma clang __debug parser_crash` 2020-08-20 15:53:21 +03:00
ConfigCompileTests.cpp [clangd] Validate clang-tidy Checks in clangd config. 2020-12-15 21:10:57 +00:00
ConfigProviderTests.cpp [clangd] Provide suggestions with invalid config keys 2020-12-15 18:16:17 +00:00
ConfigTesting.h [clangd] Publish config file errors over LSP 2020-12-07 11:07:32 +01:00
ConfigYAMLTests.cpp [clangd] Provide suggestions with invalid config keys 2020-12-15 18:16:17 +00: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] Don't create as much garbage while building Dex index. 2020-05-14 13:35:44 +02:00
DiagnosticsTests.cpp [clang-tidy] [clangd] Avoid multi-line diagnostic range for else-after-return diagnostic 2020-11-29 18:32:23 -05:00
DraftStoreTests.cpp [clangd] Propagate versions into DraftStore, assigning where missing. NFC 2020-03-03 16:20:13 +01:00
DumpASTTests.cpp [clangd] Mention when CXXThis is implicit in exposed AST. 2020-11-24 16:57:56 +01:00
ExpectedTypeTest.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
FSTests.cpp [clangd] Change FSProvider::getFileSystem to take CurrentWorkingDirectory 2020-06-19 12:12:02 +02:00
FileDistanceTests.cpp
FileIndexTests.cpp [clangd] Add a TestWorkspace utility 2020-10-24 20:15:17 -04:00
FindSymbolsTests.cpp [clangd] Try harder to get accurate ranges for documentSymbols in macros 2020-10-12 19:26:36 -04:00
FindTargetTests.cpp [clangd][ObjC] Support nullability annotations 2020-10-20 17:36:32 -04: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] Always retrieve ProjectInfo from Base in OverlayCDB 2020-07-16 12:33:54 +02:00
HeaderSourceSwitchTests.cpp [clangd][NFC] Rename FSProvider and getFileSystem 2020-06-19 12:12:03 +02:00
HeadersTests.cpp [clangd] Rename FSProvider to TFS in case of ThreadsafeFS 2020-06-19 12:12:03 +02:00
HoverTests.cpp [clangd] Add hover info for `this` expr 2020-12-15 09:47:29 +01: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
LoggerTests.cpp [clangd] Add error() function for creating formatv-style llvm::Errors. NFC 2020-09-14 10:43:42 +02:00
Matchers.h Replace llvm::integer_sequence and friends with the C++14 standard version 2019-08-15 10:56:05 +00:00
ModulesTests.cpp [clangd] Discard diagnostics from another SourceManager. 2020-08-21 13:11:21 +02:00
ParsedASTTests.cpp [clangd] Implement clang-tidy options from config 2020-11-25 18:35:35 +00: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] Fix tests build for GCC5 2020-07-13 09:06:20 +02:00
PrintASTTests.cpp [clangd] Errors in TestTU cause test failures unless suppressed with error-ok. 2020-01-24 11:16:27 +01:00
ProjectAwareIndexTests.cpp [clangd] Fix use-after-free in ProjectAwareIndex tests 2020-11-22 21:29:45 +01:00
QualityTests.cpp [clangd] Rename evaluate() to evaluateHeuristics() 2020-09-28 20:05:01 +02:00
RIFFTests.cpp
RenameTests.cpp [clangd] Fix an assertion violation in rename. 2020-12-04 12:23:26 +01:00
SelectionTests.cpp [clangd] Add language metrics for recovery AST usage. 2020-12-07 10:52:05 +01:00
SemanticHighlightingTests.cpp [clangd] Do not treat line as inactive if skipped range ends at character position 0 2020-11-26 03:42:42 -05:00
SemanticSelectionTests.cpp [clangd] Start using SyntaxTrees for folding ranges feature 2020-10-27 16:47:35 +01:00
SerializationTests.cpp [clangd] Express ASAN interactions of tests more clearly. NFC 2020-11-19 20:14:51 +01:00
SourceCodeTests.cpp [clangd] Add isKeyword function. 2020-10-05 15:11:24 +02:00
SymbolCollectorTests.cpp [clangd] Add OverridenBy Relation to index. 2020-11-18 06:59:49 +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] Add a NewName optional parameter to clangdServer::prepareRename. 2020-10-07 21:18:51 +02:00
SyncAPI.h [clangd] Add a NewName optional parameter to clangdServer::prepareRename. 2020-10-07 21:18:51 +02:00
TUSchedulerTests.cpp [clangd] Config: also propagate in sync (testing) mode 2020-07-15 12:30:08 +02:00
TestFS.cpp Revert "[clangd] testPath's final result agrees with the passed in Style" 2020-11-23 13:12:59 +01:00
TestFS.h [clangd] Fix crash-bug in preamble indexing when using modules. 2020-08-20 14:19:52 +02:00
TestIndex.cpp [clangd] NFC: Use SmallVector<T> where possible 2020-12-10 13:36:49 +01:00
TestIndex.h
TestScheme.h
TestTU.cpp [clangd][NFC] Remove unnecessary vector. 2020-12-10 14:59:17 +00:00
TestTU.h [clangd] Implement clang-tidy options from config 2020-11-25 18:35:35 +00:00
TestWorkspace.cpp [clangd] Add a TestWorkspace utility 2020-10-24 20:15:17 -04:00
TestWorkspace.h [clangd] Add a TestWorkspace utility 2020-10-24 20:15:17 -04:00
TypeHierarchyTests.cpp [clangd] Avoid type hierarchy crash on incomplete type 2020-11-25 03:45:00 -05:00
URITests.cpp [clangd] Fix conversion from Windows UNC paths to file URI format. 2020-07-22 12:13:09 +02:00
XRefsTests.cpp [clangd] Improve goToDefinition on auto and dectype 2020-12-15 16:32:22 +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