Eugene Zelenko | 25cae5a2 | 2018-02-16 23:40:07 +0000 | [diff] [blame] | 1 | //===- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ------===// |
Eric Fiselier | 098e6de | 2015-06-13 07:11:40 +0000 | [diff] [blame] | 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame^] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Eric Fiselier | 098e6de | 2015-06-13 07:11:40 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // This file implements the DiagnosticOptions related interfaces. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "clang/Basic/DiagnosticOptions.h" |
| 14 | #include "llvm/Support/raw_ostream.h" |
Eugene Zelenko | 25cae5a2 | 2018-02-16 23:40:07 +0000 | [diff] [blame] | 15 | #include <type_traits> |
Eric Fiselier | 098e6de | 2015-06-13 07:11:40 +0000 | [diff] [blame] | 16 | |
| 17 | namespace clang { |
| 18 | |
Mehdi Amini | 9670f84 | 2016-07-18 19:02:11 +0000 | [diff] [blame] | 19 | raw_ostream &operator<<(raw_ostream &Out, DiagnosticLevelMask M) { |
Eric Fiselier | 098e6de | 2015-06-13 07:11:40 +0000 | [diff] [blame] | 20 | using UT = std::underlying_type<DiagnosticLevelMask>::type; |
| 21 | return Out << static_cast<UT>(M); |
| 22 | } |
| 23 | |
Eugene Zelenko | 25cae5a2 | 2018-02-16 23:40:07 +0000 | [diff] [blame] | 24 | } // namespace clang |