comparison libcxx/docs/DesignDocs/FeatureTestMacros.rst @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
6 :local: 6 :local:
7 7
8 Overview 8 Overview
9 ======== 9 ========
10 10
11 Libc++ implements the C++ feature test macros as specified in the C++2a standard, 11 Libc++ implements the C++ feature test macros as specified in the C++20 standard,
12 and before that in non-normative guiding documents 12 and before that in non-normative guiding documents
13 (`See cppreference <https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros>`_) 13 (`See cppreference <https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros>`_)
14 14
15 15
16 Design 16 Design
37 37
38 The `generate_feature_test_macro_components.py` script is used to track and 38 The `generate_feature_test_macro_components.py` script is used to track and
39 update feature test macros in libc++. 39 update feature test macros in libc++.
40 40
41 Whenever a feature test macro is added or changed, the table should be updated 41 Whenever a feature test macro is added or changed, the table should be updated
42 and the script should be re-ran. The script will clobber the existing test files 42 and the script should be re-ran. The script will clobber the existing test files,
43 and the documentation and it will generate a new `<version>` header as a 43 the documentation and the `<version>` header.
44 temporary file. The generated `<version>` header should be merged with the
45 existing one.