diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Basic/DiagnosticOptions.cpp')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Basic/DiagnosticOptions.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/lib/Basic/DiagnosticOptions.cpp b/contrib/llvm/tools/clang/lib/Basic/DiagnosticOptions.cpp new file mode 100644 index 000000000000..ebd9bb45f380 --- /dev/null +++ b/contrib/llvm/tools/clang/lib/Basic/DiagnosticOptions.cpp @@ -0,0 +1,25 @@ +//===- DiagnosticOptions.cpp - C Language Family Diagnostic Handling ------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements the DiagnosticOptions related interfaces. +// +//===----------------------------------------------------------------------===// + +#include "clang/Basic/DiagnosticOptions.h" +#include "llvm/Support/raw_ostream.h" +#include <type_traits> + +namespace clang { + +raw_ostream &operator<<(raw_ostream &Out, DiagnosticLevelMask M) { + using UT = std::underlying_type<DiagnosticLevelMask>::type; + return Out << static_cast<UT>(M); +} + +} // namespace clang |