blob: 68571f2cf94fa83df2145fd90d4202e6579d3ef4 [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//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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 Fiselier098e6de2015-06-13 07:11:40 +00006//
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 Zelenko25cae5a22018-02-16 23:40:07 +000015#include <type_traits>
Eric Fiselier098e6de2015-06-13 07:11:40 +000016
17namespace clang {
18
Mehdi Amini9670f842016-07-18 19:02:11 +000019raw_ostream &operator<<(raw_ostream &Out, DiagnosticLevelMask M) {
Eric Fiselier098e6de2015-06-13 07:11:40 +000020 using UT = std::underlying_type<DiagnosticLevelMask>::type;
21 return Out << static_cast<UT>(M);
22}
23
Eugene Zelenko25cae5a22018-02-16 23:40:07 +000024} // namespace clang