[clang] [clang] Implement `__is_layout_compatible` (PR #81506)

via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 13 00:08:55 PST 2024


================
@@ -1717,6 +1717,7 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind,
           tok::kw___is_fundamental,
           tok::kw___is_integral,
           tok::kw___is_interface_class,
+          tok::kw___is_layout_compatible,
----------------
cor3ntin wrote:

I don't think this is necessary. It exists for compatibility with old GCCs that would not have had the notion of layout compatibility 

(and I wonder if we could get rid of the whole switch ultimately @AaronBallman)

https://github.com/llvm/llvm-project/pull/81506


More information about the cfe-commits mailing list