OSDN Git Service

Style update. NFC.
[android-x86/external-llvm.git] / tools / dsymutil / ErrorReporting.h
1 //===- ErrorReporting.h - dsymutil error reporting  -------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_TOOLS_DSYMUTIL_ERRORREPORTING_H
11 #define LLVM_TOOLS_DSYMUTIL_ERRORREPORTING_H
12 #include "llvm/Support/WithColor.h"
13 #include "llvm/Support/raw_ostream.h"
14
15 namespace llvm {
16 namespace dsymutil {
17
18 inline raw_ostream &error_ostream() {
19   return WithColor(errs(), HighlightColor::Error).get() << "error: ";
20 }
21
22 inline raw_ostream &warn_ostream() {
23   return WithColor(errs(), HighlightColor::Warning).get() << "warning: ";
24 }
25
26 inline raw_ostream &note_ostream() {
27   return WithColor(errs(), HighlightColor::Note).get() << "note: ";
28 }
29
30 } // namespace dsymutil
31 } // end namespace llvm
32
33 #endif // LLVM_TOOLS_DSYMUTIL_ERRORREPORTING_H