mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +00:00
Everywhere: Re-format with clang-format-11
Compared to version 10 this fixes a bunch of formatting issues, mostly around structs/classes with attributes like [[gnu::packed]], and incorrect insertion of spaces in parameter types ("T &"/"T &&"). I also removed a bunch of // clang-format off/on and FIXME comments that are no longer relevant - on the other hand it tried to destroy a couple of neatly formatted comments, so I had to add some as well.
This commit is contained in:
parent
2568a93b5d
commit
bbe787a0af
54 changed files with 130 additions and 230 deletions
|
@ -64,8 +64,7 @@ int closedir(DIR* dirp)
|
|||
return rc;
|
||||
}
|
||||
|
||||
struct [[gnu::packed]] sys_dirent
|
||||
{
|
||||
struct [[gnu::packed]] sys_dirent {
|
||||
ino_t ino;
|
||||
u8 file_type;
|
||||
size_t namelen;
|
||||
|
|
|
@ -47,6 +47,8 @@ struct ifreq {
|
|||
void* ifru_data;
|
||||
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
|
||||
|
@ -63,6 +65,7 @@ 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
|
||||
|
|
|
@ -101,6 +101,7 @@ 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.
|
||||
|
@ -114,6 +115,7 @@ 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);
|
||||
|
|
|
@ -28,8 +28,7 @@
|
|||
|
||||
#include <AK/Types.h>
|
||||
|
||||
struct [[gnu::packed]] PtraceRegisters
|
||||
{
|
||||
struct [[gnu::packed]] PtraceRegisters {
|
||||
u32 eax;
|
||||
u32 ecx;
|
||||
u32 edx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue