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