Skip to content

Commit af88a65

Browse files
committed
[Serialization] Be more specific irt which clang settings may cause a failure
1 parent 9804075 commit af88a65

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,19 +907,19 @@ NOTE(modularization_issue_swift_version,none,
907907
(const ModuleDecl *, llvm::VersionTuple, llvm::VersionTuple))
908908
NOTE(modularization_issue_audit_headers,none,
909909
"declarations in the %select{underlying|}0 clang module %1 "
910-
"may be hidden by clang project settings",
910+
"may be hidden by clang preprocessor macros",
911911
(bool, const ModuleDecl*))
912912
NOTE(modularization_issue_layering_expected_local,none,
913913
"the distributed module %0 refers to the local module %1; "
914-
"this may be caused by clang project settings",
914+
"this may be caused by header maps or search paths",
915915
(const ModuleDecl*, const ModuleDecl*))
916916
NOTE(modularization_issue_layering_found_local,none,
917917
"the reference may break layering; the candidate was found in "
918918
"the local module %1 for a reference from the distributed module %0",
919919
(const ModuleDecl*, const ModuleDecl*))
920920
NOTE(modularization_issue_related_modules,none,
921921
"the %select{declaration|type}0 %1 moved between related modules; "
922-
"clang project settings may affect headers shared between these modules",
922+
"clang preprocessor macros may affect headers shared between these modules",
923923
(bool, DeclName))
924924

925925
NOTE(modularization_issue_side_effect_extension_error,none,

test/Serialization/Recovery/module-recovery-remarks.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030

3131
// CHECK-MOVED: <unknown>:0: note: the module 'LibWithXRef' has enabled library-evolution; the following file may need to be deleted if the SDK was modified: '
3232
// CHECK-MOVED-SAME: LibWithXRef.swiftmodule'
33-
// CHECK-MOVED: <unknown>:0: note: declarations in the underlying clang module 'A' may be hidden by clang project settings
34-
// CHECK-MOVED: <unknown>:0: note: the distributed module 'LibWithXRef' refers to the local module 'A'; this may be caused by clang project settings
35-
// CHECK-MOVED: <unknown>:0: note: the type 'MyType' moved between related modules; clang project settings may affect headers shared between these modules
33+
// CHECK-MOVED: <unknown>:0: note: declarations in the underlying clang module 'A' may be hidden by clang preprocessor macros
34+
// CHECK-MOVED: <unknown>:0: note: the distributed module 'LibWithXRef' refers to the local module 'A'; this may be caused by header maps or search paths
35+
// CHECK-MOVED: <unknown>:0: note: the type 'MyType' moved between related modules; clang preprocessor macros may affect headers shared between these modules
3636
// CHECK-MOVED: LibWithXRef.swiftmodule:1:1: note: could not deserialize type for 'foo()'
3737
// CHECK-MOVED: error: cannot find 'foo' in scope
3838

@@ -48,7 +48,7 @@
4848
// RUN: %target-swift-frontend %t/Empty.swift -emit-module-path %t/A_related.swiftmodule -module-name A_related
4949
// RUN: not %target-swift-frontend -c -O %t/Client.swift -I %t -I %t/sdk -Rmodule-recovery -sdk %t/sdk 2>&1 \
5050
// RUN: | %FileCheck --check-prefixes CHECK-CLANG %s
51-
// CHECK-CLANG: <unknown>:0: note: declarations in the clang module 'A' may be hidden by clang project settings
51+
// CHECK-CLANG: <unknown>:0: note: declarations in the clang module 'A' may be hidden by clang preprocessor macros
5252
// CHECK-CLANG: error: cannot find 'foo' in scope
5353

5454

0 commit comments

Comments
 (0)