aboutsummaryrefslogtreecommitdiff
path: root/libcxx
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2020-11-25 16:14:28 -0500
committerLouis Dionne <ldionne.2@gmail.com>2020-11-25 16:14:34 -0500
commite5cc7baf67dbd53d282bd9dff3f2241ca1d33f1d (patch)
tree88355d528590f8dc4b925a65571af5f513720a61 /libcxx
parent35828b84a5232df020d6de250c3c268e2ccaaf11 (diff)
downloadllvm-project-e5cc7baf67dbd53d282bd9dff3f2241ca1d33f1d.tar.gz
[libc++] NFC: Reindent non-lockfree-atomics feature
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/utils/libcxx/test/features.py14
1 files changed, 8 insertions, 6 deletions
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 @@ DEFAULT_FEATURES = [
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),