mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Everywhere: Remove unnecessary clang-format off
s
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:
parent
2119c9e801
commit
2479ead718
10 changed files with 8 additions and 29 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue