[libcxx-commits] [libcxxabi] [libcxxabi][test] Check that all copied files are synced between llvm and libcxxabi (PR #142262)

Michael Buch via libcxx-commits libcxx-commits at lists.llvm.org
Sat May 31 01:32:43 PDT 2025


https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/142262

This patch expands the list of files we check to all the ones that are copied via `cp-to-llvm.sh`.

>From f1d6e9040e4be808211fa46ac8de5a284b115d13 Mon Sep 17 00:00:00 2001
From: Michael Buch <michaelbuch12 at gmail.com>
Date: Sat, 31 May 2025 09:31:46 +0100
Subject: [PATCH] [libcxxabi][test] Check that all copied files are synced
 between llvm and libcxxabi

This patch expands the list of files we check to all the ones that are
copied via `cp-to-llvm.sh`.
---
 .../test/itanium_demangle_matches_llvm.sh.test | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/libcxxabi/test/itanium_demangle_matches_llvm.sh.test b/libcxxabi/test/itanium_demangle_matches_llvm.sh.test
index 31371d121fbdd..55e389bdd7210 100644
--- a/libcxxabi/test/itanium_demangle_matches_llvm.sh.test
+++ b/libcxxabi/test/itanium_demangle_matches_llvm.sh.test
@@ -1,6 +1,20 @@
-# This test diffs the ItaniumDemangle.h header in libcxxabi and LLVM to ensure
-# that they are the same.
+# This test diffs the various headers synced by cp-to-llvm.sh
+# between libcxxabi and LLVM to ensure that they are the same.
 
 # RUN: tail -n +3 %{libcxxabi}/src/demangle/ItaniumDemangle.h > %t.libcxxabi_demangle
 # RUN: tail -n +3 %{llvm}/include/llvm/Demangle/ItaniumDemangle.h > %t.llvm_demangle
 # RUN: diff %t.libcxxabi_demangle %t.llvm_demangle
+
+# RUN: tail -n +3 %{libcxxabi}/src/demangle/ItaniumNodes.def > %t.libcxxabi_nodes
+# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/ItaniumNodes.def > %t.llvm_nodes
+# RUN: diff %t.libcxxabi_nodes %t.llvm_nodes
+
+# RUN: tail -n +3 %{libcxxabi}/src/demangle/StringViewExtras.h > %t.libcxxabi_extras
+# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/StringViewExtras.h > %t.llvm_extras
+# RUN: diff %t.libcxxabi_extras %t.llvm_extras
+
+# RUN: tail -n +3 %{libcxxabi}/src/demangle/Utility.h > %t.libcxxabi_utility
+# RUN: tail -n +3 %{llvm}/include/llvm/Demangle/Utility.h > %t.llvm_utility
+# RUN: diff %t.libcxxabi_utility %t.llvm_utility
+
+# RUN: diff %{libcxxabi}/test/DemangleTestCases.inc %{llvm}/include/llvm/Testing/Demangle/DemangleTestCases.inc



More information about the libcxx-commits mailing list