[PATCH] D84458: [Modules] Improve error message when cannot find parent module for submodule definition.

Volodymyr Sapsai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 25 16:33:51 PDT 2020


vsapsai marked an inline comment as done.
vsapsai added a comment.

Thanks for the review.



================
Comment at: clang/include/clang/Basic/DiagnosticLexKinds.td:700
+  "no module named '%0' %select{found|in '%2'}1, "
+  "expected parent module to be defined before the submodule">;
 def err_mmap_top_level_inferred_submodule : Error<
----------------
bruno wrote:
> vsapsai wrote:
> > Not sure about this second part of the message ("expected..."). Wanted to make it more actionable but not entirely happy with the wording. Any suggestions including removal are welcome.
> How about `, parent module must be defined before the submodule`? 
Thanks, I think it is more direct and slightly more concise.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84458/new/

https://reviews.llvm.org/D84458



More information about the cfe-commits mailing list