mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Everywhere: Remove 'clang-format off' comments that are no longer needed
This commit is contained in:
parent
c911781c21
commit
996c020b0d
Notes:
sideshowbarker
2024-07-17 08:25:15 +09:00
Author: https://github.com/trflynn89
Commit: 996c020b0d
Pull-request: https://github.com/SerenityOS/serenity/pull/19876
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/BertalanD
6 changed files with 42 additions and 57 deletions
|
@ -52,13 +52,10 @@ static int memfd_create(char const* name, unsigned int flags)
|
|||
} \
|
||||
return success_value;
|
||||
|
||||
// clang-format off
|
||||
template<typename T>
|
||||
concept SupportsReentrantGetpwent = requires(T passwd, T* ptr)
|
||||
{
|
||||
concept SupportsReentrantGetpwent = requires(T passwd, T* ptr) {
|
||||
getpwent_r(&passwd, nullptr, 0, &ptr);
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
// Note: This has to be in the global namespace for the extern declaration to trick the compiler
|
||||
// into finding a declaration of getpwent_r when it doesn't actually exist.
|
||||
|
@ -86,13 +83,10 @@ static ErrorOr<Optional<struct passwd>> getpwent_impl(Span<char> buffer)
|
|||
return Optional<struct passwd> {};
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
template<typename T>
|
||||
concept SupportsReentrantGetgrent = requires(T group, T* ptr)
|
||||
{
|
||||
concept SupportsReentrantGetgrent = requires(T group, T* ptr) {
|
||||
getgrent_r(&group, nullptr, 0, &ptr);
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
// Note: This has to be in the global namespace for the extern declaration to trick the compiler
|
||||
// into finding a declaration of getgrent_r when it doesn't actually exist.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue