blob: ebd9bb45f3809d0e773456d20b473fe59f388e18 [file] [log] [blame]
Eugene Zelenko25cae5a22018-02-16 23:40:07 +00001//===- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ------===//
Eric Fiselier098e6de2015-06-13 07:11:40 +00002//
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// This file implements the DiagnosticOptions related interfaces.
11//
12//===----------------------------------------------------------------------===//
13
14#include "clang/Basic/DiagnosticOptions.h"
15#include "llvm/Support/raw_ostream.h"
Eugene Zelenko25cae5a22018-02-16 23:40:07 +000016#include <type_traits>
Eric Fiselier098e6de2015-06-13 07:11:40 +000017
18namespace clang {
19
Mehdi Amini9670f842016-07-18 19:02:11 +000020raw_ostream &operator<<(raw_ostream &Out, DiagnosticLevelMask M) {
Eric Fiselier098e6de2015-06-13 07:11:40 +000021 using UT = std::underlying_type<DiagnosticLevelMask>::type;
22 return Out << static_cast<UT>(M);
23}
24
Eugene Zelenko25cae5a22018-02-16 23:40:07 +000025} // namespace clang