chore: apply clang-format version 17.0.1 (#6054)

This commit is contained in:
Cœur
2023-10-02 01:45:52 +02:00
committed by GitHub
parent 94aeff9bc2
commit 1722f00777
8 changed files with 20 additions and 24 deletions

View File

@@ -37,10 +37,6 @@
using namespace std::literals;
#ifndef IN_MULTICAST
#define IN_MULTICAST(a) (((a)&0xf0000000) == 0xe0000000)
#endif
std::string tr_net_strerror(int err)
{
#ifdef _WIN32

View File

@@ -18,7 +18,7 @@ typedef NSString* FilterSearchType NS_TYPED_EXTENSIBLE_ENUM;
extern FilterSearchType const FilterSearchTypeName;
extern FilterSearchType const FilterSearchTypeTracker;
extern const NSInteger kGroupFilterAllTag;
extern NSInteger const kGroupFilterAllTag;
@interface FilterBarController : NSViewController

View File

@@ -6,7 +6,7 @@
@class Torrent;
extern const CGFloat kGroupSeparatorHeight;
extern CGFloat const kGroupSeparatorHeight;
@interface TorrentTableView : NSOutlineView<NSOutlineViewDelegate, NSAnimationDelegate, NSPopoverDelegate>

View File

@@ -99,7 +99,7 @@ namespace
int constexpr DebounceIntervalMSec = 100;
int constexpr RefreshIntervalMSec = 4000;
char const constexpr* const PrefKey = "pref_key";
char constexpr const* const PrefKey = "pref_key";
enum // peer columns
{

View File

@@ -259,7 +259,7 @@ void PrefsDialog::focusChanged(QWidget* old, QWidget* cur)
// We don't want to change the preference every time there's a keystroke
// in a QPlainTextEdit, so instead of connecting to the textChanged signal,
// only update the pref when the text changed AND focus was lost.
char const constexpr* const StartValue = "StartValue";
char constexpr const* const StartValue = "StartValue";
if (auto* const edit = qobject_cast<QPlainTextEdit*>(cur); isDescendantOf(edit, this))
{

View File

@@ -29,8 +29,8 @@ using ::trqt::variant_helpers::variantInit;
namespace
{
char const constexpr* const RequestDataPropertyKey{ "requestData" };
char const constexpr* const RequestFutureinterfacePropertyKey{ "requestReplyFutureInterface" };
char constexpr const* const RequestDataPropertyKey{ "requestData" };
char constexpr const* const RequestFutureinterfacePropertyKey{ "requestReplyFutureInterface" };
TrVariantPtr createVariant()
{

View File

@@ -21,7 +21,7 @@ namespace libtransmission::test
class BlocklistTest : public SessionTest
{
protected:
static char const constexpr* const Contents1 =
static char constexpr const* const Contents1 =
"10.5.6.7/8\n"
"Austin Law Firm:216.16.1.144-216.16.1.151\n"
"Sargent Controls and Aerospace:216.19.18.0-216.19.18.255\n"
@@ -29,7 +29,7 @@ protected:
"Fox Speed Channel:216.79.131.192-216.79.131.223\n"
"IPv6 example:2001:db8::-2001:db8:ffff:ffff:ffff:ffff:ffff:ffff\n";
static char const constexpr* const Contents2 =
static char constexpr const* const Contents2 =
"10.5.6.7/8\n"
"Austin Law Firm:216.16.1.144-216.16.1.151\n"
"Sargent Controls and Aerospace:216.19.18.0-216.19.18.255\n"

View File

@@ -313,22 +313,22 @@ private:
inline void ensureFormattersInited()
{
static constexpr int MEM_K = 1024;
static char const constexpr* const MEM_K_STR = "KiB";
static char const constexpr* const MEM_M_STR = "MiB";
static char const constexpr* const MEM_G_STR = "GiB";
static char const constexpr* const MEM_T_STR = "TiB";
static char constexpr const* const MEM_K_STR = "KiB";
static char constexpr const* const MEM_M_STR = "MiB";
static char constexpr const* const MEM_G_STR = "GiB";
static char constexpr const* const MEM_T_STR = "TiB";
static constexpr int DISK_K = 1000;
static char const constexpr* const DISK_K_STR = "kB";
static char const constexpr* const DISK_M_STR = "MB";
static char const constexpr* const DISK_G_STR = "GB";
static char const constexpr* const DISK_T_STR = "TB";
static char constexpr const* const DISK_K_STR = "kB";
static char constexpr const* const DISK_M_STR = "MB";
static char constexpr const* const DISK_G_STR = "GB";
static char constexpr const* const DISK_T_STR = "TB";
static constexpr int SPEED_K = 1000;
static char const constexpr* const SPEED_K_STR = "kB/s";
static char const constexpr* const SPEED_M_STR = "MB/s";
static char const constexpr* const SPEED_G_STR = "GB/s";
static char const constexpr* const SPEED_T_STR = "TB/s";
static char constexpr const* const SPEED_K_STR = "kB/s";
static char constexpr const* const SPEED_M_STR = "MB/s";
static char constexpr const* const SPEED_G_STR = "GB/s";
static char constexpr const* const SPEED_T_STR = "TB/s";
static std::once_flag flag;