[PATCH] D27852: [modules] Handle modules with nonstandard names in module.private.modulemaps
Bruno Cardoso Lopes via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 20 14:59:17 PST 2016
bruno added a reviewer: bruno.
bruno added inline comments.
================
Comment at: test/Modules/implicit-private-with-different-name.m:13
+// expected-warning at Inputs/implicit-private-with-different-name/A.framework/Modules/module.private.modulemap:1{{top-level module 'APrivate' in private module map, expected a submodule of 'A'}}
+// expected-note at Inputs/implicit-private-with-different-name/A.framework/Modules/module.private.modulemap:1{{make 'APrivate' a submodule of 'A' to ensure it can be found by name}}
+// CHECK: fix-it:"{{.*}}/Inputs/implicit-private-with-different-name/A.framework/Modules/module.private.modulemap":{1:18-1:26}:"A.Private"
----------------
I think we can enhance the usability a bit here, how about:
warning: top-level module 'APrivate' in private module map, expected a submodule of 'A'
note: make 'APrivate' a submodule of 'A' to ensure it can be found by name
framework module APrivate {
^
A.Private
https://reviews.llvm.org/D27852
More information about the cfe-commits
mailing list