diff options
author | cor3ntin <corentinjabot@gmail.com> | 2025-05-14 08:41:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-14 08:41:10 +0200 |
commit | 6c1bb48cc45396894597c8cb897c31205d1bdeb6 (patch) | |
tree | d2431ac5ce3e59a22987cbca473f48291afd22df /clang/lib/Parse/ParseDecl.cpp | |
parent | 301340ace64b7c741f14101ec84b3d8448b85cec (diff) | |
download | llvm-6c1bb48cc45396894597c8cb897c31205d1bdeb6.zip llvm-6c1bb48cc45396894597c8cb897c31205d1bdeb6.tar.gz llvm-6c1bb48cc45396894597c8cb897c31205d1bdeb6.tar.bz2 |
[Clang] Remove workaround for libstdc++4.7 (#139693)
We document libstdc++4.8 as the minimum supported version, and we
carried a hack for `include/tr1/hashtable.h` fixed in 4.7.
Cleanup some libstdc++ compatibility comments.
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 434d81a..7a87cd2 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -3736,13 +3736,14 @@ void Parser::ParseDeclarationSpecifiers( } case tok::kw___is_signed: - // GNU libstdc++ 4.4 uses __is_signed as an identifier, but Clang - // typically treats it as a trait. If we see __is_signed as it appears - // in libstdc++, e.g., + // HACK: before 2022-12, libstdc++ uses __is_signed as an identifier, + // but Clang typically treats it as a trait. + // If we see __is_signed as it appears in libstdc++, e.g., // // static const bool __is_signed; // // then treat __is_signed as an identifier rather than as a keyword. + // This was fixed by libstdc++ in December 2022. if (DS.getTypeSpecType() == TST_bool && DS.getTypeQualifiers() == DeclSpec::TQ_const && DS.getStorageClassSpec() == DeclSpec::SCS_static) |