Style fixes.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
73e67b8c5d
commit
5c9e58d032
|
@ -52,7 +52,7 @@ namespace ArbUt {
|
||||||
AppendNoSourceStack(ss, trace, include_addr);
|
AppendNoSourceStack(ss, trace, include_addr);
|
||||||
} else {
|
} else {
|
||||||
AppendSourceStack(ss, trace, foundExceptionClass);
|
AppendSourceStack(ss, trace, foundExceptionClass);
|
||||||
if (foundExceptionClass){
|
if (foundExceptionClass) {
|
||||||
framesAppended++;
|
framesAppended++;
|
||||||
if (framesAppended >= depth)
|
if (framesAppended >= depth)
|
||||||
break;
|
break;
|
||||||
|
@ -83,7 +83,8 @@ namespace ArbUt {
|
||||||
}
|
}
|
||||||
ss << " " << function << std::endl;
|
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 =
|
auto fileName =
|
||||||
(strrchr(trace.source.filename.c_str(), '/') ? strrchr(trace.source.filename.c_str(), '/') + 1
|
(strrchr(trace.source.filename.c_str(), '/') ? strrchr(trace.source.filename.c_str(), '/') + 1
|
||||||
: trace.source.filename.c_str());
|
: trace.source.filename.c_str());
|
||||||
|
|
|
@ -6,7 +6,8 @@ using namespace ArbUt;
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
__attribute__((optnone))
|
__attribute__((optnone))
|
||||||
#endif
|
#endif
|
||||||
static void Thrower(){
|
static void
|
||||||
|
Thrower() {
|
||||||
throw ArbUt::Exception("foobar");
|
throw ArbUt::Exception("foobar");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue