File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,9 @@ void AppendToErrorMessageBuffer(const char *buffer) {
45
45
}
46
46
47
47
// ---------------------- Decorator ------------------------------ {{{1
48
- class Decorator : private __sanitizer ::AnsiColorDecorator {
48
+ class Decorator : public __sanitizer ::SanitizerCommonDecorator {
49
49
public:
50
- Decorator () : __sanitizer::AnsiColorDecorator(PrintsToTtyCached()) { }
51
- const char *Warning () { return Red (); }
52
- const char *EndWarning () { return Default (); }
50
+ Decorator () : SanitizerCommonDecorator() { }
53
51
const char *Access () { return Blue (); }
54
52
const char *EndAccess () { return Default (); }
55
53
const char *Location () { return Green (); }
Original file line number Diff line number Diff line change @@ -36,6 +36,15 @@ class AnsiColorDecorator {
36
36
private:
37
37
bool ansi_;
38
38
};
39
+
40
+ class SanitizerCommonDecorator : protected AnsiColorDecorator {
41
+ public:
42
+ SanitizerCommonDecorator ()
43
+ : __sanitizer::AnsiColorDecorator(PrintsToTtyCached()) { }
44
+ const char *Warning () { return Red (); }
45
+ const char *EndWarning () { return Default (); }
46
+ };
47
+
39
48
} // namespace __sanitizer
40
49
41
50
#endif // SANITIZER_REPORT_DECORATOR_H
You can’t perform that action at this time.
0 commit comments