1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +00:00

Everywhere: Remove unnecessary clang-format offs

Mostly due to the fact that clang-format allows aligned comments via
AlignTrailingComments.

We could also use raw string literals in inline asm, which clang-format
deals with properly (and would be nicer in a lot of places).
This commit is contained in:
William McPherson 2021-03-04 19:15:17 +11:00 committed by Andreas Kling
parent 2119c9e801
commit 2479ead718
10 changed files with 8 additions and 29 deletions

View file

@ -48,7 +48,6 @@ struct ifreq {
unsigned int ifru_index;
} ifr_ifru;
// clang-format off
#define ifr_addr ifr_ifru.ifru_addr // address
#define ifr_dstaddr ifr_ifru.ifru_dstaddr // other end of p-to-p link
#define ifr_broadaddr ifr_ifru.ifru_broadaddr // broadcast address
@ -65,7 +64,6 @@ struct ifreq {
#define ifr_index ifr_ifru.ifru_index // interface index
#define ifr_llprio ifr_ifru.ifru_metric // link layer priority
#define ifr_hwaddr ifr_ifru.ifru_hwaddr // MAC address
// clang-format on
};
__END_DECLS

View file

@ -44,7 +44,6 @@ struct icmphdr {
} un;
};
// clang-format off
#define ICMP_ECHOREPLY 0 // Echo Reply
#define ICMP_DEST_UNREACH 3 // Destination Unreachable
#define ICMP_SOURCE_QUENCH 4 // Source Quench
@ -59,6 +58,5 @@ struct icmphdr {
#define ICMP_ADDRESS 17 // Address Mask Request
#define ICMP_ADDRESSREPLY 18 // Address Mask Reply
#define NR_ICMP_TYPES 18
//clang-format on
__END_DECLS

View file

@ -102,7 +102,6 @@ enum __RegexAllFlags {
__Regex_Last = __Regex_SkipTrimEmptyMatches
};
// clang-format off
// Values for the cflags parameter to the regcomp() function:
#define REG_EXTENDED __Regex_Extended // Use Extended Regular Expressions.
#define REG_ICASE __Regex_Insensitive // Ignore case in match.
@ -116,7 +115,6 @@ enum __RegexAllFlags {
//static_assert (sizeof(FlagsUnderlyingType) * 8 >= regex::POSIXFlags::Last << 1), "flags type too small")
#define REG_SEARCH __Regex_Last << 1
// clang-format on
int regcomp(regex_t*, const char*, int);
int regexec(const regex_t*, const char*, size_t, regmatch_t[], int);

View file

@ -40,7 +40,6 @@ typedef struct
} a_un;
} auxv_t;
// clang-format off
#define AT_NULL 0 /* No length, last entry's a_type has this value */
#define AT_IGNORE 1 /* Entry has no meaning, a_un undefined */
#define AT_EXECFD 2 /* a_val contains a file descriptor of the main program image */
@ -66,7 +65,6 @@ typedef struct
#define AT_EXECFN 31 /* a_ptr points to file name of executed program */
#define AT_EXE_BASE 32 /* a_ptr holds base address where main program was loaded into memory */
#define AT_EXE_SIZE 33 /* a_val holds the size of the main program in memory */
// clang-format on
namespace ELF {