Skip to content

Commit 5934a79

Browse files
committed
[clangd] Split tweak tests into one file per tweak.
No changes to the tests themselves, other than some auto -> const auto diagnostic fixes and formatting. Differential Revision: https://reviews.llvm.org/D92939
1 parent 1a2147f commit 5934a79

22 files changed

+3531
-3131
lines changed

clang-tools-extra/clangd/unittests/CMakeLists.txt

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ add_unittest(ClangdUnitTests ClangdTests
9393
TestTU.cpp
9494
TestWorkspace.cpp
9595
TypeHierarchyTests.cpp
96-
TweakTests.cpp
97-
TweakTesting.cpp
9896
URITests.cpp
9997
XRefsTests.cpp
10098
${CMAKE_CURRENT_BINARY_DIR}/DecisionForestRuntimeTest.cpp
@@ -108,6 +106,26 @@ add_unittest(ClangdUnitTests ClangdTests
108106
support/TestTracer.cpp
109107
support/TraceTests.cpp
110108

109+
tweaks/AddUsingTests.cpp
110+
tweaks/AnnotateHighlightingsTests.cpp
111+
tweaks/DefineInlineTests.cpp
112+
tweaks/DefineOutlineTests.cpp
113+
tweaks/DumpASTTests.cpp
114+
tweaks/DumpRecordLayoutTests.cpp
115+
tweaks/DumpSymbolTests.cpp
116+
tweaks/ExpandAutoTypeTests.cpp
117+
tweaks/ExpandMacroTests.cpp
118+
tweaks/ExtractFunctionTests.cpp
119+
tweaks/ExtractVariableTests.cpp
120+
tweaks/ObjCLocalizeStringLiteralTests.cpp
121+
tweaks/PopulateSwitchTests.cpp
122+
tweaks/RawStringLiteralTests.cpp
123+
tweaks/RemoveUsingNamespaceTests.cpp
124+
tweaks/ShowSelectionTreeTests.cpp
125+
tweaks/SwapIfBranchesTests.cpp
126+
tweaks/TweakTesting.cpp
127+
tweaks/TweakTests.cpp
128+
111129
${REMOTE_TEST_SOURCES}
112130

113131
$<TARGET_OBJECTS:obj.clangDaemonTweaks>

0 commit comments

Comments
 (0)