File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3400,7 +3400,7 @@ std::string simplecpp::getCStdString(const std::string &std)
34003400 if (std == " c17" || std == " c18" || std == " iso9899:2017" || std == " iso9899:2018" || std == " gnu17" || std == " gnu18" )
34013401 return " 201710L" ;
34023402 if (std == " c2x" || std == " gnu2x" ) {
3403- // Clang 11 returns "201710L"
3403+ // Clang 11, 12, 13 return "201710L" - correct in 14
34043404 return " 202000L" ;
34053405 }
34063406 return " " ;
@@ -3417,14 +3417,14 @@ std::string simplecpp::getCppStdString(const std::string &std)
34173417 if (std == " c++17" || std == " c++1z" || std == " gnu++17" || std == " gnu++1z" )
34183418 return " 201703L" ;
34193419 if (std == " c++20" || std == " c++2a" || std == " gnu++20" || std == " gnu++2a" ) {
3420- // GCC 10 returns "201703L"
3420+ // GCC 10 returns "201703L" - correct in 11+
34213421 return " 202002L" ;
34223422 }
3423- /*
34243423 if (std == " c++23" || std == " c++2b" || std == " gnu++23" || std == " gnu++2b" ) {
3425- // supported by GCC 11+
3426- return "";
3427- } */
3424+ // supported by GCC 11+ and Clang 12+
3425+ // Clang 12, 13, 14 do not support "c++23" and "gnu++23"
3426+ return " 202100L" ;
3427+ }
34283428 return " " ;
34293429}
34303430
You can’t perform that action at this time.
0 commit comments