Skip to content

Commit e3563ef

Browse files
committed
[nfc][cxx-interop] Fix test failures and diagnostic names.
1 parent 79c68f8 commit e3563ef

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

include/swift/AST/DiagnosticsClangImporter.def

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ NOTE(macro_not_imported_unsupported_structure, none, "macro '%0' not imported: s
144144
NOTE(macro_not_imported, none, "macro '%0' not imported", (StringRef))
145145

146146
NOTE(return_type_not_imported, none, "return type not imported", ())
147-
NOTE(parameter_type_not_imported, none, "parameter '%0' not imported", (const clang::NamedDecl*))
148-
NOTE(incomplete_interface, none, "interface '%0' is incomplete", (const clang::NamedDecl*))
149-
NOTE(incomplete_protocol, none, "protocol '%0' is incomplete", (const clang::NamedDecl*))
147+
NOTE(parameter_type_not_imported, none, "parameter %0 not imported", (const clang::NamedDecl*))
148+
NOTE(incomplete_interface, none, "interface %0 is incomplete", (const clang::NamedDecl*))
149+
NOTE(incomplete_protocol, none, "protocol %0 is incomplete", (const clang::NamedDecl*))
150150
NOTE(incomplete_record, none, "record '%0' is not defined (incomplete)", (StringRef))
151151
NOTE(record_over_aligned, none, "record '%0' is over aligned", (StringRef))
152152
NOTE(record_non_trivial_copy_destroy, none, "record '%0' is not trivial to copy/destroy", (StringRef))
@@ -171,13 +171,13 @@ NOTE(dont_use_iterator_api, none, "C++ method '%0' that returns an unsafe "
171171
(StringRef))
172172

173173
NOTE(unsupported_builtin_type, none, "built-in type '%0' not supported", (StringRef))
174-
NOTE(record_field_not_imported, none, "field '%0' not imported", (const clang::NamedDecl*))
175-
NOTE(invoked_func_not_imported, none, "function '%0' not imported", (const clang::NamedDecl*))
176-
NOTE(record_method_not_imported, none, "method '%0' not imported", (const clang::NamedDecl*))
177-
NOTE(objc_property_not_imported, none, "property '%0' not imported", (const clang::NamedDecl*))
174+
NOTE(record_field_not_imported, none, "field %0 not imported", (const clang::NamedDecl*))
175+
NOTE(invoked_func_not_imported, none, "function %0 not imported", (const clang::NamedDecl*))
176+
NOTE(record_method_not_imported, none, "method %0 not imported", (const clang::NamedDecl*))
177+
NOTE(objc_property_not_imported, none, "property %0 not imported", (const clang::NamedDecl*))
178178

179-
NOTE(forward_declared_interface_label, none, "interface '%0' forward declared here", (const clang::NamedDecl*))
180-
NOTE(forward_declared_protocol_label, none, "protocol '%0' forward declared here", (const clang::NamedDecl*))
179+
NOTE(forward_declared_interface_label, none, "interface %0 forward declared here", (const clang::NamedDecl*))
180+
NOTE(forward_declared_protocol_label, none, "protocol %0 forward declared here", (const clang::NamedDecl*))
181181

182182
#define UNDEFINE_DIAGNOSTIC_MACROS
183183
#include "DefineDiagnosticMacros.h"

test/ClangImporter/objc_parse.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil -I %S/Inputs/custom-modules %s -verify
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil -I %S/Inputs/custom-modules %s -verify -disable-experimental-clang-importer-diagnostics
22

33
// REQUIRES: objc_interop
44

0 commit comments

Comments
 (0)