Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// When building with modules, including headers inside extern "C" is an anti-pattern
// that we don't want to support and can't support with LSV enabled.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// Sometimes C++'s <foo.h> headers get included within extern "C" contexts. This
// is ill-formed (no diagnostic required), per [using.headers]p3, but we permit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

// We're building as C, so this test doesn't work when building with modules.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// GCC complains about unrecognized arguments because we're compiling the
// file as C, but we're passing C++ flags on the command-line.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

// This test breaks when enabling LSV.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// Test that limits macros are available when <stdint.h> is included
// with or without macro _XOPEN_SOURCE=700.
Expand Down
2 changes: 1 addition & 1 deletion libcxx/test/extensions/posix/xopen_source.gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Some parts of the code like <fstream> use non-standard functions in their implementation,
# and these functions are not provided when _XOPEN_SOURCE is set to older values. This
# breaks when building with modules even when we don't use the offending headers directly.
# UNSUPPORTED: clang-modules-build
# ADDITIONAL_COMPILE_FLAGS: -fno-modules

# The AIX localization support uses some functions as part of their headers that require a
# recent value of _XOPEN_SOURCE.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

// This compile-time customization requires cross-file macros, which doesn't work with modules.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// Make sure that we can customize the verbose termination function at compile-time by
// defining _LIBCPP_VERBOSE_ABORT ourselves. Note that this does not have any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
// This test verifies that setting the hardening mode to a value that's not part of the predefined constants triggers
// a compile-time error.

// Modules build produces a different error ("Could not build module 'std'").
// UNSUPPORTED: clang-modules-build
// REQUIRES: verify-support

// TODO: Investigate
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// Note that GCC doesn't support `-Wno-macro-redefined`.
// RUN: %{verify} -U_LIBCPP_HARDENING_MODE -D_LIBCPP_HARDENING_MODE=42
// Make sure that common cases of misuse produce readable errors. We deliberately disallow setting the hardening mode as
Expand Down
2 changes: 1 addition & 1 deletion libcxx/test/libcxx-03/transitive_includes.gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

// When built with modules, this test doesn't work because --trace-includes doesn't
// report the stack of includes correctly.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// This test uses --trace-includes, which is not supported by GCC.
// UNSUPPORTED: gcc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// The test suite needs to define the ABI macros on the command line when
// modules are enabled.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// <utility>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03, c++11, c++14, c++17
// In the modules build, adding another overload of `memmove` doesn't work.
// UNSUPPORTED: clang-modules-build

// GCC complains about "ambiguating" `__builtin_memmove`.
// UNSUPPORTED: gcc

// In the modules build, adding another overload of `memmove` doesn't work.
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// <algorithm>

#include <cassert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03, c++11, c++14, c++17
// In the modules build, adding another overload of `memmove` doesn't work.
// UNSUPPORTED: clang-modules-build

// GCC complains about "ambiguating" `__builtin_memmove`.
// UNSUPPORTED: gcc

// In the modules build, adding another overload of `memmove` doesn't work.
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// <algorithm>

// These tests check that `std::copy` and `std::move` (including their variations like `copy_n`) forward to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

// This compile-time customization requires cross-file macros, which doesn't work with modules.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// Make sure that we can customize the verbose termination function at compile-time by
// defining _LIBCPP_VERBOSE_ABORT ourselves. Note that this does not have any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
// This test verifies that setting the hardening mode to a value that's not part of the predefined constants triggers
// a compile-time error.

// Modules build produces a different error ("Could not build module 'std'").
// UNSUPPORTED: clang-modules-build
// REQUIRES: verify-support

// TODO: Investigate
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// Note that GCC doesn't support `-Wno-macro-redefined`.
// RUN: %{verify} -U_LIBCPP_HARDENING_MODE -D_LIBCPP_HARDENING_MODE=42
// Make sure that common cases of misuse produce readable errors. We deliberately disallow setting the hardening mode as
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
// This test verifies that setting the assertion semantic to a value that's not part of the predefined constants
// triggers a compile-time error.

// Modules build produces a different error ("Could not build module 'std'").
// UNSUPPORTED: clang-modules-build
// UNSUPPORTED: c++03, libcpp-has-no-experimental-hardening-observe-semantic
// REQUIRES: verify-support

// TODO: Investigate
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// RUN: %{verify} -U_LIBCPP_ASSERTION_SEMANTIC -D_LIBCPP_ASSERTION_SEMANTIC=42
// `hardening-dependent` cannot be set as the semantic (it's only an indicator to use hardening-related logic to pick
// the final semantic).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// When built with modules, this test gives diagnostics like declaration of
// 'unexpected' must be imported from module 'std.expected.unexpected' before
// it is required. Therefore disable it in this configuration.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// test unexpected

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//

// This test breaks when enabling LSV.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// UNSUPPORTED: c++03, c++11, c++14

Expand Down
2 changes: 1 addition & 1 deletion libcxx/test/libcxx/transitive_includes.gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

// When built with modules, this test doesn't work because --trace-includes doesn't
// report the stack of includes correctly.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// This test uses --trace-includes, which is not supported by GCC.
// UNSUPPORTED: gcc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// The test suite needs to define the ABI macros on the command line when
// modules are enabled.
// UNSUPPORTED: clang-modules-build
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// <utility>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
// UNSUPPORTED: clang-modules-build
// UNSUPPORTED: gcc

// TODO: This test is currently written in a way that is specific to libc++, but it's really trying to test a property
Expand All @@ -20,6 +19,9 @@
// The tests only look for the expected components and not the exact flags.
// Otherwise changing the location of the module would break this test.

// C++20 modules are incompatible with Clang modules
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// MODULE_DEPENDENCIES: std std.compat

// RUN: echo "%{compile_flags}" | grep -- "-fmodule-file=std=.*/std.pcm .*/std.pcm"
Expand Down
4 changes: 3 additions & 1 deletion libcxx/test/selftest/modules/std-module.sh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
// UNSUPPORTED: clang-modules-build
// UNSUPPORTED: gcc

// TODO: This test is currently written in a way that is specific to libc++, but it's really trying to test a property
Expand All @@ -20,6 +19,9 @@
// The tests only look for the expected components and not the exact flags.
// Otherwise changing the location of the module would break this test.

// C++20 modules are incompatible with Clang modules
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// MODULE_DEPENDENCIES: std

// RUN: echo "%{compile_flags}" | grep -- "-fmodule-file=std=.*/std.pcm .*/std.pcm"
Expand Down
4 changes: 3 additions & 1 deletion libcxx/test/selftest/modules/std.compat-module.sh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
// UNSUPPORTED: clang-modules-build
// UNSUPPORTED: gcc

// TODO: This test is currently written in a way that is specific to libc++, but it's really trying to test a property
Expand All @@ -16,6 +15,9 @@

// XFAIL: has-no-cxx-module-support

// C++20 modules are incompatible with Clang modules
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// Make sure that the compile flags contain the expected elements.
// The tests only look for the expected components and not the exact flags.
// Otherwise changing the location of the module would break this test.
Expand Down
4 changes: 3 additions & 1 deletion libcxx/test/std/modules/std.compat.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03, c++11, c++14, c++17
// UNSUPPORTED: clang-modules-build
// UNSUPPORTED: gcc

// XFAIL: has-no-cxx-module-support

// A minimal test to validate import works.

// C++20 modules are incompatible with Clang modules
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// MODULE_DEPENDENCIES: std.compat

import std.compat;
Expand Down
4 changes: 3 additions & 1 deletion libcxx/test/std/modules/std.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
// UNSUPPORTED: clang-modules-build
// UNSUPPORTED: gcc

// XFAIL: has-no-cxx-module-support

// A minimal test to validate import works.

// C++20 modules are incompatible with Clang modules
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// MODULE_DEPENDENCIES: std

import std;
Expand Down
4 changes: 3 additions & 1 deletion libcxx/utils/libcxx/test/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,15 @@ def write_lit_configuration(self):
print(
f"""\
// UNSUPPORTED: c++03, c++11, c++14, c++17
// UNSUPPORTED: clang-modules-build

// REQUIRES: has-clang-tidy

// The GCC compiler flags are not always compatible with clang-tidy.
// UNSUPPORTED: gcc

// C++20 modules are incompatible with Clang modules
// ADDITIONAL_COMPILE_FLAGS: -fno-modules

// MODULE_DEPENDENCIES: {self.module}

// RUN: echo -n > {self.tmp_prefix}.all_partitions
Expand Down
Loading