2018-02-17 07:40:07 +08:00
|
|
|
//===- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ------===//
|
2015-06-13 15:11:40 +08:00
|
|
|
//
|
|
|
|
// 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"
|
2018-02-17 07:40:07 +08:00
|
|
|
#include <type_traits>
|
2015-06-13 15:11:40 +08:00
|
|
|
|
|
|
|
namespace clang {
|
|
|
|
|
2016-07-19 03:02:11 +08:00
|
|
|
raw_ostream &operator<<(raw_ostream &Out, DiagnosticLevelMask M) {
|
2015-06-13 15:11:40 +08:00
|
|
|
using UT = std::underlying_type<DiagnosticLevelMask>::type;
|
|
|
|
return Out << static_cast<UT>(M);
|
|
|
|
}
|
|
|
|
|
2018-02-17 07:40:07 +08:00
|
|
|
} // namespace clang
|