summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h')
-rw-r--r--llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h b/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h
index 277de973dbf..686cf2c7760 100644
--- a/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h
+++ b/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h
@@ -18,7 +18,17 @@ namespace dwarf {
namespace syntax {
// Symbolic names for various syntax elements.
-enum HighlightColor { Address, String, Tag, Attribute, Enumerator, Macro };
+enum HighlightColor {
+ Address,
+ String,
+ Tag,
+ Attribute,
+ Enumerator,
+ Macro,
+ Error,
+ Warning,
+ Note
+};
/// An RAII object that temporarily switches an output stream to a
/// specific color.
@@ -30,8 +40,8 @@ public:
WithColor(raw_ostream &OS, enum HighlightColor Type);
~WithColor();
- raw_ostream& get() { return OS; }
- operator raw_ostream& () { return OS; }
+ raw_ostream &get() { return OS; }
+ operator raw_ostream &() { return OS; }
};
} // end namespace syntax
OpenPOWER on IntegriCloud