[all-commits] [llvm/llvm-project] a2772f: [C++20] [Modules] Disable preferred_name when writ...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Tue Jul 26 08:59:16 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2772fc806af7db5d58c7e3d604270a92fff79de
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-07-26 (Tue, 26 Jul 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Serialization/ASTWriter.h
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    A clang/test/Modules/preferred_name.cppm

  Log Message:
  [C++20] [Modules] Disable preferred_name when writing a C++20 Module interface

Currently, the use of preferred_name would block implementing std
modules in libcxx. See https://github.com/llvm/llvm-project/issues/56490
for example.
The problem is pretty hard and it looks like we couldn't solve it in a
short time. So we sent this patch as a workaround to avoid blocking us
to modularize STL. This is intended to be fixed properly in the future.

Reviewed By: erichkeane, aaron.ballman, tahonermann

Differential Revision: https://reviews.llvm.org/D130331

More information about the All-commits mailing list