OSDN Git Service

[libc++] improve feature test macro script
authorWim Leflere <wim.leflere@gmail.com>
Mon, 18 Jan 2021 20:17:28 +0000 (15:17 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 18 Jan 2021 20:19:21 +0000 (15:19 -0500)
commit2776be43f0c28031348d2b18a050a8d6d01120f2
treef2a62b1719115afe08fdf36f13edc576a77bc1c0
parent417f613743239a716d812443ba131207d78c6c9d
[libc++] improve feature test macro script

I've been playing a bit with the `generate_feature_test_macro_components.py` script and replaced some hardcoded values with extra code generation (generate ALL the things).
The output is the same and it makes updating the script less work for the coming 25 C++ standards (until 2 digit number overflow).

Feel free to 'veto' if you think it's overkill.

Differential Revision: https://reviews.llvm.org/D94530
libcxx/utils/generate_feature_test_macro_components.py