From: Joel Rosdahl Date: Mon, 21 Oct 2024 18:29:26 +0000 (+0200) Subject: refactor: Restructure code to help Clang-Tidy understand it X-Git-Tag: v4.11~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69b0a4284aaab0f33a60305c0f0c9fef9907d16c;p=thirdparty%2Fccache.git refactor: Restructure code to help Clang-Tidy understand it --- diff --git a/src/ccache/context.cpp b/src/ccache/context.cpp index 0f9fe0ee..62650f98 100644 --- a/src/ccache/context.cpp +++ b/src/ccache/context.cpp @@ -67,8 +67,9 @@ Context::initialize(Args&& compiler_and_args, // initial configuration file. The intention is that all files and directories // in the cache directory should be affected by the configured umask and that // no other files and directories should. - if (config.umask()) { - original_umask = util::set_umask(*config.umask()); + auto mask = config.umask(); + if (mask) { + original_umask = util::set_umask(*mask); } }