summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSanitizer/UBSanitizer.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-04-01 20:58:27 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-01 21:24:45 +0100
commit086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch)
tree02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibSanitizer/UBSanitizer.cpp
parent0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff)
downloadserenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibSanitizer/UBSanitizer.cpp')
-rw-r--r--Userland/Libraries/LibSanitizer/UBSanitizer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibSanitizer/UBSanitizer.cpp b/Userland/Libraries/LibSanitizer/UBSanitizer.cpp
index 7411a34ff6..c86a74d9af 100644
--- a/Userland/Libraries/LibSanitizer/UBSanitizer.cpp
+++ b/Userland/Libraries/LibSanitizer/UBSanitizer.cpp
@@ -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);