aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2025-04-30 16:40:21 -0700
committerGitHub <noreply@github.com>2025-04-30 16:40:21 -0700
commitafd738cd9016ddef4e26b309770ba35fd017a178 (patch)
treec8b560a1885fbfb1d93d32703eb9d291fb459dba /clang/unittests/Format
parent7d05f67a7377ad67e7eb15e0f8f7cf1f537b5afa (diff)
downloadllvm-afd738cd9016ddef4e26b309770ba35fd017a178.zip
llvm-afd738cd9016ddef4e26b309770ba35fd017a178.tar.gz
llvm-afd738cd9016ddef4e26b309770ba35fd017a178.tar.bz2
[clang] Shard out some small gtest binaries (#138021)
@nico mentioned that FormatTests and BasicTests are small binaries with few dependencies, so keeping them separate is nice. I broke them out as distinct test binaries, and they are still pretty small: $ find tools/clang/unittests/ -type f -name '*Tests' | xargs du -cksh | sort -nr 708M total 276M tools/clang/unittests/AllClangUnitTests 244M tools/clang/unittests/Interpreter/ClangReplInterpreterTests 167M tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests 13M tools/clang/unittests/Format/FormatTests 6.9M tools/clang/unittests/Basic/BasicTests 1.1M tools/clang/unittests/libclang/CrashTests/libclangCrashTests I also broke out libclangCrashTests and re-enabled the failing test to resolve llvm#137855.
Diffstat (limited to 'clang/unittests/Format')
-rw-r--r--clang/unittests/Format/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/unittests/Format/CMakeLists.txt b/clang/unittests/Format/CMakeLists.txt
index 0af571a..edfc8d7a 100644
--- a/clang/unittests/Format/CMakeLists.txt
+++ b/clang/unittests/Format/CMakeLists.txt
@@ -1,4 +1,6 @@
-add_clang_unittest(FormatTests
+# Format tests have few LLVM and Clang dependencies, so linking it as a
+# distinct target enables faster iteration times at low cost.
+add_distinct_clang_unittest(FormatTests
BracesInserterTest.cpp
BracesRemoverTest.cpp
CleanupTest.cpp