We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13fdc4b commit 9a9d663Copy full SHA for 9a9d663
clang/lib/Lex/PPExpressions.cpp
@@ -1019,6 +1019,8 @@ std::optional<unsigned> Preprocessor::getStdLibCxxVersion() {
1019
}
1020
1021
bool Preprocessor::NeedsStdLibCxxWorkaroundBefore(unsigned FixedVersion) {
1022
+ assert(FixedVersion >= 2000'00'00 && FixedVersion <= 2100'00'00 &&
1023
+ "invalid value for __GLIBCXX__");
1024
std::optional<unsigned> Ver = getStdLibCxxVersion();
1025
if (!Ver)
1026
return false;
0 commit comments