Files
swift-mirror/include/swift/Basic/PrintDiagnosticNamesMode.h
Dmitrii Galimzianov a8b71ea97f Add -print-diagnostic-groups flag
This change adds the `-print-diagnostic-groups` flag as described by SE-0443.
2024-09-11 13:34:42 +02:00

35 lines
1.1 KiB
C++

//===--- PrintDiagnosticNamesMode.h -----------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_BASIC_PRINTDIAGNOSTICNAMESMODE_H
#define SWIFT_BASIC_PRINTDIAGNOSTICNAMESMODE_H
namespace swift {
/// What diagnostic name will be printed alongside the diagnostic message.
enum class PrintDiagnosticNamesMode {
/// No diagnostic name will be printed.
None,
/// The identifier of a diagnostic (DiagID) will be used. Corresponds to the
/// `-debug-diagnostic-names` option in the frontend.
Identifier,
/// The associated group name (DiagGroupID) will be used. Corresponds to the
/// `-print-diagnostic-groups` option in the frontend.
Group
};
} // end namespace swift
#endif // SWIFT_BASIC_PRINTDIAGNOSTICNAMESMODE_H