DiagnosticOptions.cpp 837 B

123456789101112131415161718192021222324
  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. #include "clang/Basic/DiagnosticOptions.h"
  13. #include "llvm/Support/raw_ostream.h"
  14. #include <type_traits>
  15. namespace clang {
  16. raw_ostream &operator<<(raw_ostream &Out, DiagnosticLevelMask M) {
  17. using UT = std::underlying_type<DiagnosticLevelMask>::type;
  18. return Out << static_cast<UT>(M);
  19. }
  20. } // namespace clang