Skip to content

Commit bdd4da2

Browse files
committed
PR: Fix stack trace namespace
1 parent 581a3e8 commit bdd4da2

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

compiler-rt/lib/radsan/radsan_stack.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
//
99
//===----------------------------------------------------------------------===//
1010

11+
#include "radsan_stack.h"
12+
1113
#include <sanitizer_common/sanitizer_flags.h>
1214
#include <sanitizer_common/sanitizer_stacktrace.h>
1315

@@ -28,7 +30,6 @@ void BufferedStackTrace::UnwindImpl(uptr pc, uptr bp, void *context,
2830
} // namespace __sanitizer
2931

3032
namespace __radsan {
31-
3233
void SetGlobalStackTraceFormat() {
3334
SetCommonFlagsDefaults();
3435
CommonFlags cf;
@@ -37,8 +38,10 @@ void SetGlobalStackTraceFormat() {
3738
cf.external_symbolizer_path = GetEnv("RADSAN_SYMBOLIZER_PATH");
3839
OverrideCommonFlags(cf);
3940
}
41+
} // namespace __radsan
4042

41-
void PrintStackTrace() {
43+
using namespace __radsan;
44+
void __radsan::PrintStackTrace() {
4245

4346
BufferedStackTrace Stack{};
4447

@@ -48,4 +51,3 @@ void PrintStackTrace() {
4851
SetGlobalStackTraceFormat();
4952
Stack.Print();
5053
}
51-
} // namespace __radsan

compiler-rt/lib/radsan/radsan_stack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
namespace __radsan {
1414
void PrintStackTrace();
15-
}
15+
} // namespace __radsan

0 commit comments

Comments
 (0)