2018-02-17 07:40:07 +08:00
|
|
|
//===- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ------===//
|
2015-06-13 15:11:40 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-06-13 15:11:40 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// 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
|