From f9c17d9b5be16947007323d287f4390c5e690e72 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 19:50:44 -0400 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#3822) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/mirrors-clang-format: v19.1.7 → v20.1.0](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.7...v20.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- test/lexer_test.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e9ce69fa..c0c0596dd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.7 + rev: v20.1.0 hooks: - id: clang-format types_or: [c++, c] diff --git a/test/lexer_test.cpp b/test/lexer_test.cpp index 715c46081..0189699bb 100644 --- a/test/lexer_test.cpp +++ b/test/lexer_test.cpp @@ -293,7 +293,10 @@ int TEST_NAME(int, char**) { "'wonder'+0 : 'prowonderbread'+3 --> 6"); // Test all Lexer types. -#define NO {"", Lexer::Type::word} +#define NO \ + { \ + "", Lexer::Type::word \ + } struct { const char* input; struct {