From 504a2c14ecda23c9b7a1c0bddb0e1b3b333bac75 Mon Sep 17 00:00:00 2001 From: binarycat Date: Tue, 29 Jul 2025 11:51:43 -0500 Subject: [PATCH] editorconfig: don't trim trailing whitespace in tests --- .editorconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index ef8ed24c52a50..270a388c51d96 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,9 +7,12 @@ root = true [*] end_of_line = lf charset = utf-8 -trim_trailing_whitespace = true insert_final_newline = true +# some tests need trailing whitespace in output snapshots +[!tests/] +trim_trailing_whitespace = true + [!src/llvm-project] indent_style = space indent_size = 4