OSDN Git Service

Add option to control whether llvm-pdbdump outputs in color
authorAdrian McCarthy <amccarth@google.com>
Thu, 23 Mar 2017 15:28:15 +0000 (15:28 +0000)
committerAdrian McCarthy <amccarth@google.com>
Thu, 23 Mar 2017 15:28:15 +0000 (15:28 +0000)
commit99f73dd7b8950e2febbfd24ac780a3a2aa8b171c
treec6419ae7622bde44c5b53556d4fe6560e83e081d
parent6a1a59e0623832eece31583d79e498c464e3fcee
Add option to control whether llvm-pdbdump outputs in color

Adds -color-output option to llvm-pdbdump pretty commands that lets the user
specify whether the output should have color. The default depends on whether
the output is going to a TTY (per prior discussion in
https://reviews.llvm.org/D31246).

This will enable tests that pipe llvm-pdbdump output to FileCheck to work
across platforms without regard to the differences in ANSI codes.

Differential Revision: https://reviews.llvm.org/D31263

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298610 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-pdbdump/LinePrinter.cpp
tools/llvm-pdbdump/LinePrinter.h
tools/llvm-pdbdump/llvm-pdbdump.cpp