mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -17,7 +17,7 @@ Atomic<bool> AK::UBSanitizer::g_ubsan_is_deadly;
|
|||
|
||||
extern "C" {
|
||||
|
||||
static void print_location(const SourceLocation& location)
|
||||
static void print_location(SourceLocation const& location)
|
||||
{
|
||||
if (!location.filename()) {
|
||||
WARNLN_AND_DBGLN("UBSAN: in unknown file");
|
||||
|
@ -76,8 +76,8 @@ void __ubsan_handle_nullability_arg(NonnullArgData& data)
|
|||
print_location(location);
|
||||
}
|
||||
|
||||
void __ubsan_handle_nonnull_return_v1(const NonnullReturnData&, SourceLocation&) __attribute__((used));
|
||||
void __ubsan_handle_nonnull_return_v1(const NonnullReturnData&, SourceLocation& location)
|
||||
void __ubsan_handle_nonnull_return_v1(NonnullReturnData const&, SourceLocation&) __attribute__((used));
|
||||
void __ubsan_handle_nonnull_return_v1(NonnullReturnData const&, SourceLocation& location)
|
||||
{
|
||||
auto loc = location.permanently_clear();
|
||||
if (!loc.needs_logging())
|
||||
|
@ -86,8 +86,8 @@ void __ubsan_handle_nonnull_return_v1(const NonnullReturnData&, SourceLocation&
|
|||
print_location(loc);
|
||||
}
|
||||
|
||||
void __ubsan_handle_nullability_return_v1(const NonnullReturnData& data, SourceLocation& location) __attribute__((used));
|
||||
void __ubsan_handle_nullability_return_v1(const NonnullReturnData&, SourceLocation& location)
|
||||
void __ubsan_handle_nullability_return_v1(NonnullReturnData const& data, SourceLocation& location) __attribute__((used));
|
||||
void __ubsan_handle_nullability_return_v1(NonnullReturnData const&, SourceLocation& location)
|
||||
{
|
||||
auto loc = location.permanently_clear();
|
||||
if (!loc.needs_logging())
|
||||
|
@ -258,8 +258,8 @@ void __ubsan_handle_implicit_conversion(ImplicitConversionData& data, ValueHandl
|
|||
auto location = data.location.permanently_clear();
|
||||
if (!location.needs_logging())
|
||||
return;
|
||||
const char* src_signed = data.from_type.is_signed() ? "" : "un";
|
||||
const char* dst_signed = data.to_type.is_signed() ? "" : "un";
|
||||
char const* src_signed = data.from_type.is_signed() ? "" : "un";
|
||||
char const* dst_signed = data.to_type.is_signed() ? "" : "un";
|
||||
WARNLN_AND_DBGLN("UBSAN: implicit conversion from type {} ({}-bit, {}signed) to type {} ({}-bit, {}signed)",
|
||||
data.from_type.name(), data.from_type.bit_width(), src_signed, data.to_type.name(), data.to_type.bit_width(), dst_signed);
|
||||
print_location(location);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue