From 5c9e58d032b39a815291a9f3fbc0569930b24ce0 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 16 Aug 2020 17:34:58 +0200 Subject: [PATCH] Style fixes. --- src/Exception.hpp | 5 +++-- tests/ExceptionTests.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Exception.hpp b/src/Exception.hpp index 8688e34..b9e249c 100644 --- a/src/Exception.hpp +++ b/src/Exception.hpp @@ -52,7 +52,7 @@ namespace ArbUt { AppendNoSourceStack(ss, trace, include_addr); } else { AppendSourceStack(ss, trace, foundExceptionClass); - if (foundExceptionClass){ + if (foundExceptionClass) { framesAppended++; if (framesAppended >= depth) break; @@ -83,7 +83,8 @@ namespace ArbUt { } ss << " " << function << std::endl; } - static void AppendSourceStack(std::stringstream& ss, const backward::ResolvedTrace& trace, bool& foundExceptionClass) { + static void AppendSourceStack(std::stringstream& ss, const backward::ResolvedTrace& trace, + bool& foundExceptionClass) { auto fileName = (strrchr(trace.source.filename.c_str(), '/') ? strrchr(trace.source.filename.c_str(), '/') + 1 : trace.source.filename.c_str()); diff --git a/tests/ExceptionTests.cpp b/tests/ExceptionTests.cpp index acec35a..77f3133 100644 --- a/tests/ExceptionTests.cpp +++ b/tests/ExceptionTests.cpp @@ -6,7 +6,8 @@ using namespace ArbUt; #ifndef WINDOWS __attribute__((optnone)) #endif -static void Thrower(){ +static void +Thrower() { throw ArbUt::Exception("foobar"); }