125cae5a2SEugene Zelenko //===- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ------===// 2098e6de9SEric Fiselier // 32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6098e6de9SEric Fiselier // 7098e6de9SEric Fiselier //===----------------------------------------------------------------------===// 8098e6de9SEric Fiselier // 9098e6de9SEric Fiselier // This file implements the DiagnosticOptions related interfaces. 10098e6de9SEric Fiselier // 11098e6de9SEric Fiselier //===----------------------------------------------------------------------===// 12098e6de9SEric Fiselier 13098e6de9SEric Fiselier #include "clang/Basic/DiagnosticOptions.h" 14098e6de9SEric Fiselier #include "llvm/Support/raw_ostream.h" 1525cae5a2SEugene Zelenko #include <type_traits> 16098e6de9SEric Fiselier 17098e6de9SEric Fiselier namespace clang { 18098e6de9SEric Fiselier operator <<(raw_ostream & Out,DiagnosticLevelMask M)19098e6de9SEric Fiselierraw_ostream &operator<<(raw_ostream &Out, DiagnosticLevelMask M) { 20*be5c6563SKazu Hirata using UT = std::underlying_type_t<DiagnosticLevelMask>; 21098e6de9SEric Fiselier return Out << static_cast<UT>(M); 22098e6de9SEric Fiselier } 23098e6de9SEric Fiselier 2425cae5a2SEugene Zelenko } // namespace clang 25