aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/DiagnosticOptions.cpp
blob: f54a0ef4edb2562463e5c5b53dfd965114ff2ddb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===--- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ----===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//  This file implements the DiagnosticOptions related interfaces.
//
//===----------------------------------------------------------------------===//

#include "clang/Basic/DiagnosticOptions.h"
#include "llvm/Support/raw_ostream.h"

namespace clang {

raw_ostream& operator<<(raw_ostream& Out, DiagnosticLevelMask M) {
  using UT = std::underlying_type<DiagnosticLevelMask>::type;
  return Out << static_cast<UT>(M);
}

} // end namespace clang