[PATCH] D120540: [Driver] Enable to use C++20 modules standalone by -fcxx-modules

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 31 23:49:28 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/test/Driver/modules.cpp:79
+//
+// RUN: %clang -fcxx-modules -### %s 2>&1 | FileCheck %s --check-prefix=CHECK-CXX-MODULES
+// CHECK-CXX-MODULES: "-fcxx-modules"
----------------
You need to specify a pre-20 -stdc to make the test not stale when clang defaults to gnu++20


================
Comment at: clang/test/Modules/cxx-modules.cppm:2
+// This tests that we could use C++20 modules standalone.
+// RUN: %clang -fcxx-modules -fsyntax-only -Xclang -verify %s
+// expected-no-diagnostics
----------------
ditto


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120540



More information about the cfe-commits mailing list