[all-commits] [llvm/llvm-project] a54471: [Driver] Enable to use C++20 standalne by -fcxx-mo...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Sun May 29 23:22:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a544710cd43ba9f7729a613c58729f146e792a8e
      https://github.com/llvm/llvm-project/commit/a544710cd43ba9f7729a613c58729f146e792a8e
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-05-30 (Mon, 30 May 2022)

  Changed paths:
    M clang-tools-extra/test/pp-trace/pp-trace-modules.cpp
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/modules.cpp
    A clang/test/Modules/cxx-modules.cppm

  Log Message:
  -----------
  [Driver] Enable to use C++20 standalne by -fcxx-modules

This patch allows user to use C++20 module by -fcxx-modules. Previously,
we could only use it under -std=c++20. Given that user could use C++20
coroutine standalonel by -fcoroutines-ts. It makes sense to offer an
option to use C++20 modules without enabling C++20.

Reviewed By: iains, MaskRay

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




More information about the All-commits mailing list