[clang] [C++20] [Modules] Warn for importing implementation partition unit in interface units (PR #108493)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 13 02:11:21 PDT 2024


================
@@ -439,6 +439,9 @@ def warn_deprecated_literal_operator_id: Warning<
   "is deprecated">, InGroup<DeprecatedLiteralOperator>, DefaultIgnore;
 def warn_reserved_module_name : Warning<
   "%0 is a reserved name for a module">, InGroup<ReservedModuleIdentifier>;
+def warn_import_implementation_partition_unit_in_interface_unit : Warning<
+  "it is not suggested to import implementation partition unit in interface unit">,
----------------
ChuanqiXu9 wrote:

Done. But I changed `Symbols exported ` to `Names in ` since the term `name` is more precise and we won't export things in implementation partition unit.

https://github.com/llvm/llvm-project/pull/108493


More information about the cfe-commits mailing list