From 097a6fc5110638f27c0badb932c9847a007f0a98 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Wed, 4 Jan 2023 19:24:33 +0100 Subject: [PATCH] Run clang-format on the codebase. --- .clang-format | 2 +- src/errors.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index 8d716df..96f13ad 100644 --- a/.clang-format +++ b/.clang-format @@ -4,7 +4,7 @@ IndentWidth: 2 --- Language: Cpp PointerAlignment: Left -AllowShortFunctionsOnASingleLine: Inline +AllowShortFunctionsOnASingleLine: All AllowShortIfStatementsOnASingleLine: true ColumnLimit: 100 AlignEscapedNewlines: DontAlign diff --git a/src/errors.h b/src/errors.h index 67d2cee..2910bfa 100644 --- a/src/errors.h +++ b/src/errors.h @@ -37,8 +37,7 @@ protected: exit(1); } - template - [[noreturn]] void error(const Location& where, const First& first) { + template [[noreturn]] void error(const Location& where, const First& first) { printErrorLocation(std::cerr, where, where); print(std::cerr, first); exit(1); @@ -51,7 +50,8 @@ protected: exit(1); } - private : std::string source_filename_; +private: + std::string source_filename_; }; } // namespace monicelli