Reid Kleckner e3c0565b74
Reapply "[cmake] Refactor clang unittest cmake" (#134195)
This reapplies 5ffd9bdb50b57 (#133545) with fixes.

The BUILD_SHARED_LIBS=ON build was fixed by adding missing LLVM
dependencies to the InterpTests binary in
unittests/AST/ByteCode/CMakeLists.txt .
2025-04-02 21:07:30 -07:00

43 lines
995 B
CMake

add_clang_unittest(FormatTests
BracesInserterTest.cpp
BracesRemoverTest.cpp
CleanupTest.cpp
ConfigParseTest.cpp
DefinitionBlockSeparatorTest.cpp
FormatTest.cpp
FormatTestComments.cpp
FormatTestCSharp.cpp
FormatTestJS.cpp
FormatTestJava.cpp
FormatTestJson.cpp
FormatTestMacroExpansion.cpp
FormatTestObjC.cpp
FormatTestProto.cpp
FormatTestRawStrings.cpp
FormatTestSelective.cpp
FormatTestTableGen.cpp
FormatTestTextProto.cpp
FormatTestVerilog.cpp
FormatTokenSourceTest.cpp
FormatReplacementTest.cpp
IntegerLiteralSeparatorTest.cpp
MacroCallReconstructorTest.cpp
MacroExpanderTest.cpp
MatchFilePathTest.cpp
NamespaceEndCommentsFixerTest.cpp
ObjCPropertyAttributeOrderFixerTest.cpp
QualifierFixerTest.cpp
SortImportsTestJS.cpp
SortImportsTestJava.cpp
SortIncludesTest.cpp
UsingDeclarationsSorterTest.cpp
TokenAnnotatorTest.cpp
CLANG_LIBS
clangBasic
clangFormat
clangRewrite
clangToolingCore
LLVM_COMPONENTS
Support
)