#include "rtsan/rtsan_diagnostics.h"
#include "sanitizer_common/sanitizer_flags.h"
#include "sanitizer_common/sanitizer_report_decorator.h"
#include "sanitizer_common/sanitizer_stacktrace.h"
usingnamespace__sanitizer;
usingnamespace__rtsan;
namespace __sanitizer {
void BufferedStackTrace::UnwindImpl(uptr pc, uptr bp, void *context,
bool request_fast, u32 max_depth) { … }
}
namespace {
class Decorator : public SanitizerCommonDecorator { … };
}
static void PrintError(const Decorator &decorator,
const DiagnosticsInfo &info) { … }
static void PrintReason(const Decorator &decorator,
const DiagnosticsInfo &info) { … }
void __rtsan::PrintDiagnostics(const DiagnosticsInfo &info) { … }