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

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 12 20:53:28 PST 2024


================
@@ -14040,6 +14040,8 @@ class Sema final {
   bool SemaValueIsRunOfOnes(CallExpr *TheCall, unsigned ArgNum);
 
 public:
+  bool SemaIsLayoutCompatible(QualType T1, QualType T2);
----------------
tbaederr wrote:

Can this function no be `const`? And I guess the "Sema" prefix is to disambiguate with the existing `isLayoutCompatible`?

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


More information about the cfe-commits mailing list