diff options
| author | 2018-04-06 14:26:03 +0000 | |
|---|---|---|
| committer | 2018-04-06 14:26:03 +0000 | |
| commit | bdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch) | |
| tree | c50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h | |
| parent | Print a 'p' flag for file descriptors that were opened after pledge(2). (diff) | |
| download | wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip | |
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h')
| -rw-r--r-- | gnu/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gnu/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h b/gnu/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h index 277de973dbf..686cf2c7760 100644 --- a/gnu/llvm/lib/DebugInfo/DWARF/SyntaxHighlighting.h +++ b/gnu/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 |
