From 93a455e103cdd8030e770dfff4e2d64d9057ed46 Mon Sep 17 00:00:00 2001 From: Daniel Frey Date: Sat, 13 Apr 2024 20:40:10 +0200 Subject: [PATCH] clang-format --- Makefile | 2 +- src/test/config/independence.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 98cd1a0..6bce91d 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ CXXSTD = -std=c++17 CPPFLAGS ?= -pedantic -Iinclude -Iexternal/json/include -Iexternal/json/external/PEGTL/include -CXXFLAGS ?= -Wall -Wextra -Werror -O3 -ftemplate-backtrace-limit=0 +CXXFLAGS ?= -Wall -Wextra -Werror -O3 HEADERS := $(shell find include -name "*.hpp") SOURCES := $(shell find src -name '*.cpp') diff --git a/src/test/config/independence.cpp b/src/test/config/independence.cpp index db5fb07..49c6108 100644 --- a/src/test/config/independence.cpp +++ b/src/test/config/independence.cpp @@ -37,7 +37,7 @@ namespace tao::config return internal::phase2_asterisks( st.root ); } - using func_t = std::size_t( * )( internal::state&, const internal::function_map& ); + using func_t = std::size_t ( * )( internal::state&, const internal::function_map& ); std::set< func_t > p2funcs = { p2fun, p2add, p2ref, p2ast }; @@ -55,7 +55,8 @@ namespace tao::config internal::config_parser p; p.parse( path ); - while( v[ 0 ]( p.st, p.fm ) | v[ 1 ]( p.st, p.fm ) | v[ 2 ]( p.st, p.fm ) | v[ 3 ]( p.st, p.fm ) ); + while( v[ 0 ]( p.st, p.fm ) | v[ 1 ]( p.st, p.fm ) | v[ 2 ]( p.st, p.fm ) | v[ 3 ]( p.st, p.fm ) ) { + } internal::phase3_remove( p.st.root ); const auto cc = internal::phase5_repack< traits >( p.st.root );