From bd9c316458c53ffbed1cba326a8e5d2ab0469e07 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Mon, 7 Aug 2023 22:13:26 -0400 Subject: [PATCH] Test clang-format lint --- src/util/select.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/util/select.cc b/src/util/select.cc index d339f5c31..be0a5b47f 100644 --- a/src/util/select.cc +++ b/src/util/select.cc @@ -46,3 +46,12 @@ void Select::handle_signal( int signum ) Select& sel = get_instance(); sel.got_signal[signum] = 1; } + +int FunctionNotWrittenInKeithwStyle(int x, int* y) { + if (x > 0) { + return x - 42; + } else { + *y = x + 1; + return 0; + } +}