summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_report_decorator.h
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-08-16 11:26:26 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-08-16 11:26:26 +0000
commit13f5be4dd1d8bf6a44d8d976325f1c6f26fa9f7f (patch)
treec9cf6a59b7cb116b86ebe105d3e920383ee2f189 /lib/sanitizer_common/sanitizer_report_decorator.h
parent9d95475f8adb1e08e45484feb03570ae2be2d0f3 (diff)
[ASan/RTL] Disable colored reporting on Windows
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_report_decorator.h')
-rw-r--r--lib/sanitizer_common/sanitizer_report_decorator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_report_decorator.h b/lib/sanitizer_common/sanitizer_report_decorator.h
index 49334d5e0..eef2b15cc 100644
--- a/lib/sanitizer_common/sanitizer_report_decorator.h
+++ b/lib/sanitizer_common/sanitizer_report_decorator.h
@@ -19,6 +19,8 @@
namespace __sanitizer {
class AnsiColorDecorator {
+ // FIXME: This is not portable. It assumes the special strings are printed to
+ // stdout, which is not the case on Windows (see SetConsoleTextAttribute()).
public:
explicit AnsiColorDecorator(bool use_ansi_colors) : ansi_(use_ansi_colors) { }
const char *Bold() const { return ansi_ ? "\033[1m" : ""; }