chore: compatibility with clang-format 20 to 21 (#7499)

This commit is contained in:
Cœur
2025-12-16 06:55:32 +01:00
committed by GitHub
parent fcd1e2ff8a
commit c56723ef1f
7 changed files with 73 additions and 46 deletions

View File

@@ -6,7 +6,7 @@
@class BlocklistDownloaderViewController;
typedef NS_ENUM(NSUInteger, BlocklistDownloadState) { //
typedef NS_ENUM(NSUInteger, BlocklistDownloadState) {
BlocklistDownloadStateStart,
BlocklistDownloadStateDownloading,
BlocklistDownloadStateProcessing

View File

@@ -258,13 +258,15 @@ static NSString* const kWebSeedAnimationId = @"webSeed";
}
}
- (NSString*)connectedTextFrom:(NSUInteger)tracker //
// clang-format off: compatibility with unnamed arguments
- (NSString*)connectedTextFrom:(NSUInteger)tracker
:(NSUInteger)incoming
:(NSUInteger)cache
:(NSUInteger)lpd
:(NSUInteger)pex
:(NSUInteger)dht
:(NSUInteger)ltep
// clang-format on
{
NSMutableArray* fromComponents = [NSMutableArray arrayWithCapacity:7];
if (tracker > 0)