From: Joel Rosdahl Date: Mon, 3 May 2021 17:08:56 +0000 (+0200) Subject: source formatting: Don’t bin pack constructor initializer lists X-Git-Tag: v4.3~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c57b22e6147e188552e271eee853de2d7b51a81;p=thirdparty%2Fccache.git source formatting: Don’t bin pack constructor initializer lists --- diff --git a/.clang-format b/.clang-format index cf1d44ad5..c5ffe564b 100644 --- a/.clang-format +++ b/.clang-format @@ -3,6 +3,7 @@ Language: Cpp BasedOnStyle: LLVM +AllowAllConstructorInitializersOnNextLine: false AllowShortFunctionsOnASingleLine: None AlwaysBreakAfterReturnType: AllDefinitions AlwaysBreakBeforeMultilineStrings: true diff --git a/src/MiniTrace.cpp b/src/MiniTrace.cpp index bf17397b9..0516562f1 100644 --- a/src/MiniTrace.cpp +++ b/src/MiniTrace.cpp @@ -65,7 +65,8 @@ time_seconds() } // namespace MiniTrace::MiniTrace(const ArgsInfo& args_info) - : m_args_info(args_info), m_trace_id(reinterpret_cast(getpid())) + : m_args_info(args_info), + m_trace_id(reinterpret_cast(getpid())) { TemporaryFile tmp_file(get_system_tmp_dir() + "/ccache-trace"); m_tmp_trace_file = tmp_file.path; diff --git a/src/Result.cpp b/src/Result.cpp index b20aa6228..8408d2a7b 100644 --- a/src/Result.cpp +++ b/src/Result.cpp @@ -300,7 +300,8 @@ Reader::read_entry(CacheEntryReader& cache_entry_reader, } Writer::Writer(Context& ctx, const std::string& result_path) - : m_ctx(ctx), m_result_path(result_path) + : m_ctx(ctx), + m_result_path(result_path) { } diff --git a/src/ResultRetriever.cpp b/src/ResultRetriever.cpp index 957bbee49..0218877c3 100644 --- a/src/ResultRetriever.cpp +++ b/src/ResultRetriever.cpp @@ -25,7 +25,8 @@ using Result::FileType; ResultRetriever::ResultRetriever(Context& ctx, bool rewrite_dependency_target) - : m_ctx(ctx), m_rewrite_dependency_target(rewrite_dependency_target) + : m_ctx(ctx), + m_rewrite_dependency_target(rewrite_dependency_target) { } diff --git a/src/ZstdCompressor.cpp b/src/ZstdCompressor.cpp index a53cfa2ad..39f6bb25c 100644 --- a/src/ZstdCompressor.cpp +++ b/src/ZstdCompressor.cpp @@ -25,7 +25,8 @@ #include ZstdCompressor::ZstdCompressor(FILE* stream, int8_t compression_level) - : m_stream(stream), m_zstd_stream(ZSTD_createCStream()) + : m_stream(stream), + m_zstd_stream(ZSTD_createCStream()) { if (compression_level == 0) { compression_level = default_compression_level; diff --git a/src/ccache.cpp b/src/ccache.cpp index a40b21e17..31fb2dd7c 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -205,7 +205,8 @@ private: }; inline Failure::Failure(Statistic statistic, nonstd::optional exit_code) - : m_statistic(statistic), m_exit_code(exit_code) + : m_statistic(statistic), + m_exit_code(exit_code) { }