mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 09:02:08 +00:00
cxx: gnu++23 -> gnu++2b for clang compatibility, added docs and test
* Using -std=gnu++2b now for both gcc and clang as clang does not recognize gnu++23 yet * Added a build test app to check the C++ standard in IDF * Updated english docs to reflect the change to C++23
This commit is contained in:
@@ -32,7 +32,7 @@ extern "C" {
|
||||
* - MACRO_ARGS(__VA_ARGS__) if __VA_ARGS__ was not empty
|
||||
* - MACRO_NO_ARGS() if __VA_ARGS__ was empty
|
||||
*
|
||||
* @note In the future, we want to switch to C++20. We also want to become compatible with clang. Hence, we provide two
|
||||
* @note In the future, we want to become compatible with clang. Hence, we provide two
|
||||
* versions of the following macros which are using variadic arguments. One is using the GNU extension ##__VA_ARGS__.
|
||||
* The other is using the C++20 feature __VA_OPT__(,). This allows users to compile their code with standard C++20
|
||||
* enabled instead of the GNU extension. Below C++20, we haven't found any good alternative to using ##__VA_ARGS__.
|
||||
|
||||
Reference in New Issue
Block a user