clang  14.0.0git
DiagnosticOptions.cpp
Go to the documentation of this file.
1 //===- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements the DiagnosticOptions related interfaces.
10 //
11 //===----------------------------------------------------------------------===//
12 
14 #include "llvm/Support/raw_ostream.h"
15 #include <type_traits>
16 
17 namespace clang {
18 
19 raw_ostream &operator<<(raw_ostream &Out, DiagnosticLevelMask M) {
21  return Out << static_cast<UT>(M);
22 }
23 
24 } // namespace clang
clang::ast_matchers::type
const internal::VariadicAllOfMatcher< Type > type
Matches Types in the clang AST.
Definition: ASTMatchersInternal.cpp:772
clang::operator<<
const StreamingDiagnostic & operator<<(const StreamingDiagnostic &DB, const ASTContext::SectionInfo &Section)
Insertion operator for diagnostics.
Definition: ASTContext.cpp:11785
clang::DiagnosticLevelMask
DiagnosticLevelMask
A bitmask representing the diagnostic levels used by VerifyDiagnosticConsumer.
Definition: DiagnosticOptions.h:39
clang
Definition: CalledOnceCheck.h:17
DiagnosticOptions.h