xref: /freebsd/contrib/llvm-project/clang/lib/Basic/DiagnosticOptions.cpp (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
10b57cec5SDimitry Andric //===- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric //
90b57cec5SDimitry Andric //  This file implements the DiagnosticOptions related interfaces.
100b57cec5SDimitry Andric //
110b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
120b57cec5SDimitry Andric 
130b57cec5SDimitry Andric #include "clang/Basic/DiagnosticOptions.h"
140b57cec5SDimitry Andric #include "llvm/Support/raw_ostream.h"
150b57cec5SDimitry Andric #include <type_traits>
160b57cec5SDimitry Andric 
170b57cec5SDimitry Andric namespace clang {
180b57cec5SDimitry Andric 
operator <<(raw_ostream & Out,DiagnosticLevelMask M)190b57cec5SDimitry Andric raw_ostream &operator<<(raw_ostream &Out, DiagnosticLevelMask M) {
20*bdd1243dSDimitry Andric   using UT = std::underlying_type_t<DiagnosticLevelMask>;
210b57cec5SDimitry Andric   return Out << static_cast<UT>(M);
220b57cec5SDimitry Andric }
230b57cec5SDimitry Andric 
240b57cec5SDimitry Andric } // namespace clang
25