Files
swift-mirror/include/swift/AST/DiagnosticsIRGen.def

126 lines
5.0 KiB
C++

//===--- DiagnosticsIRGen.def - Diagnostics Text ----------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 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
//
//===----------------------------------------------------------------------===//
//
// This file defines diagnostics emitted during IR generation.
// Each diagnostic is described using one of three kinds (error, warning, or
// note) along with a unique identifier, category, options, and text, and is
// followed by a signature describing the diagnostic argument kinds.
//
//===----------------------------------------------------------------------===//
#define DEFINE_DIAGNOSTIC_MACROS
#include "DefineDiagnosticMacros.h"
ERROR(no_llvm_target,none,
"error loading LLVM target for triple '%0': %1", (StringRef, StringRef))
ERROR(error_codegen_init_fail,none,
"cannot initialize code generation passes for target", ())
ERROR(irgen_unimplemented,none,
"unimplemented IR generation feature %0", (StringRef))
ERROR(irgen_failure,none, "IR generation failure: %0", (StringRef))
ERROR(type_to_verify_not_found,none, "unable to find type '%0' to verify",
(StringRef))
ERROR(type_to_verify_ambiguous,none, "type to verify '%0' is ambiguous",
(StringRef))
ERROR(type_to_verify_dependent,none,
"type to verify '%0' has unbound generic parameters",
(StringRef))
ERROR(too_few_output_filenames,none,
"too few output file names specified", ())
ERROR(no_input_files_for_mt,none,
"no swift input files for multi-threaded compilation", ())
ERROR(ir_profile_read_failed, none,
"error reading profile '%0': %1", (StringRef, StringRef))
ERROR(ir_profile_invalid, none,
"invalid ir profile '%0'", (StringRef))
ERROR(alignment_dynamic_type_layout_unsupported,none,
"'@_alignment' is not supported on types with dynamic layout", ())
ERROR(alignment_less_than_natural,none,
"'@_alignment' cannot decrease alignment below natural alignment of %0",
(unsigned))
ERROR(alignment_more_than_maximum,none,
"'@_alignment' cannot increase alignment above maximum alignment of %0",
(unsigned))
ERROR(temporary_allocation_size_negative,none,
"allocation capacity must be greater than or equal to zero", ())
ERROR(temporary_allocation_size_overflow,none,
"allocation byte count too large", ())
ERROR(temporary_allocation_alignment_not_positive,none,
"alignment value must be greater than zero", ())
ERROR(temporary_allocation_alignment_not_power_of_2,none,
"alignment value must be a power of two", ())
ERROR(explosion_size_oveflow,none,
"explosion size too large", ())
NOTE(layout_strings_blocked,none,
"Layout string value witnesses have been disabled for module '%0' "
"through block list entry", (StringRef))
ERROR(attr_objc_implementation_resilient_property_not_supported, none,
"'@implementation' does not support stored properties whose size can "
"change due to library evolution; store this value in an object or 'any' "
"type",
())
ERROR(attr_objc_implementation_resilient_property_deployment_target, none,
"'@implementation' on %0 %1 does not support stored properties whose "
"size can change due to library evolution; raise the minimum deployment "
"target to %0 %2 or store this value in an object or 'any' type",
(AvailabilityDomain, const AvailabilityRange, const AvailabilityRange))
ERROR(unable_to_load_pass_plugin,none,
"unable to load plugin '%0': '%1'", (StringRef, StringRef))
ERROR(failed_emit_copy, none,
"failed to copy %0; did you mean to import %0 as ~Copyable?",
(const clang::NamedDecl *))
NOTE(use_requires_expression, none,
"use 'requires' (since C++20) to specify the constraints under which the "
"copy "
"constructor is available",
())
NOTE(annotate_copyable_if, none,
"annotate a type with SWIFT_COPYABLE_IF(<T>) in C++ to specify "
"that the type is Copyable if <T> is Copyable",
())
NOTE(annotate_non_copyable, none,
"annotate a type with SWIFT_NONCOPYABLE in C++ to import it as "
"~Copyable",
())
NOTE(maybe_missing_annotation, none,
"one of the types that %0 depends on may need a 'requires' clause (since "
"C++20) in the copy constructor, a SWIFT_COPYABLE_IF annotation or a "
"SWIFT_NONCOPYABLE annotation'",
(const clang::NamedDecl *))
NOTE(maybe_missing_parameter, none,
"the %select{'requires' clause on the copy constructor "
"of|SWIFT_COPYABLE_IF annotation on}0 %1 may be missing a "
"%select{constraint|parameter}0",
(bool, const clang::NamedDecl *))
ERROR(ir_function_redefinition_external,none,
"multiple definitions of symbol '%0'",
(StringRef))
#define UNDEFINE_DIAGNOSTIC_MACROS
#include "DefineDiagnosticMacros.h"