[llvm-branch-commits] [libcxx] e5cc7ba - [libc++] NFC: Reindent non-lockfree-atomics feature
Louis Dionne via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 25 13:18:47 PST 2020
Author: Louis Dionne
Date: 2020-11-25T16:14:34-05:00
New Revision: e5cc7baf67dbd53d282bd9dff3f2241ca1d33f1d
URL: https://github.com/llvm/llvm-project/commit/e5cc7baf67dbd53d282bd9dff3f2241ca1d33f1d
DIFF: https://github.com/llvm/llvm-project/commit/e5cc7baf67dbd53d282bd9dff3f2241ca1d33f1d.diff
LOG: [libc++] NFC: Reindent non-lockfree-atomics feature
Added:
Modified:
libcxx/utils/libcxx/test/features.py
Removed:
################################################################################
diff --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py
index f78db66f49ad..2f9a048df345 100644
--- a/libcxx/utils/libcxx/test/features.py
+++ b/libcxx/utils/libcxx/test/features.py
@@ -41,12 +41,14 @@
sys.platform.lower().strip() == 'darwin'), # TODO: this doesn't handle cross-compiling to Apple platforms.
Feature(name='objective-c++', when=lambda cfg: hasCompileFlag(cfg, '-xobjective-c++ -fobjc-arc')),
Feature(name='modules-support', when=lambda cfg: hasCompileFlag(cfg, '-fmodules')),
- Feature(name='non-lockfree-atomics', when=lambda cfg: sourceBuilds(cfg, """
- #include <atomic>
- struct Large { int storage[100]; };
- std::atomic<Large> x;
- int main(int, char**) { return x.load(), x.is_lock_free(); }
- """)),
+
+ Feature(name='non-lockfree-atomics',
+ when=lambda cfg: sourceBuilds(cfg, """
+ #include <atomic>
+ struct Large { int storage[100]; };
+ std::atomic<Large> x;
+ int main(int, char**) { return x.load(), x.is_lock_free(); }
+ """)),
Feature(name='apple-clang', when=_isAppleClang),
Feature(name=lambda cfg: 'apple-clang-{__clang_major__}'.format(**compilerMacros(cfg)), when=_isAppleClang),
More information about the llvm-branch-commits
mailing list