1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -36,14 +36,14 @@ static internal_regex_t* impl_from(regex_t* re)
return reinterpret_cast<internal_regex_t*>(re->__data);
}
static const internal_regex_t* impl_from(const regex_t* re)
static internal_regex_t const* impl_from(regex_t const* re)
{
return impl_from(const_cast<regex_t*>(re));
}
extern "C" {
int regcomp(regex_t* reg, const char* pattern, int cflags)
int regcomp(regex_t* reg, char const* pattern, int cflags)
{
if (!reg)
return REG_ESPACE;
@ -80,7 +80,7 @@ int regcomp(regex_t* reg, const char* pattern, int cflags)
return REG_NOERR;
}
int regexec(const regex_t* reg, const char* string, size_t nmatch, regmatch_t pmatch[], int eflags)
int regexec(regex_t const* reg, char const* string, size_t nmatch, regmatch_t pmatch[], int eflags)
{
auto const* preg = impl_from(reg);
@ -210,7 +210,7 @@ inline static String get_error(ReError errcode)
return error;
}
size_t regerror(int errcode, const regex_t* reg, char* errbuf, size_t errbuf_size)
size_t regerror(int errcode, regex_t const* reg, char* errbuf, size_t errbuf_size)
{
String error;
auto const* preg = impl_from(reg);