mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 03:50:17 +08:00
This implements the parts of https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3457.htm which were adopted at the recent meeting in Brno. Clang already implemented `__COUNTER__`, but needed some changes for conformance. Specifically, we now diagnose when the macro is expanded more than 2147483647 times. Additionally, we now give the expected extension and pre-compat warnings for the feature. To support testing the limits, this also adds a -cc1-only option, `-finitial-counter-value=`, which lets you specify the initial value the `__COUNTER__` macro should expand to.
Third-party LLVM dependencies
This directory contains third-party dependencies used in various components of LLVM. Integrating a new third-party dependency generally requires it to be licensed under the Apache-with-LLVM-exception license. For integrating code under other licenses, please follow the process explained in the LLVM Developer Policy.
In particular, due to its non-LLVM license, the Boost.Math third-party dependency can exclusively be used within the libc++ compiled library as discussed in this RFC. Do not use it in other parts of LLVM without prior discussion with the LLVM Board (and update this documentation).