[clang] [clang] Strict aliasing warning ala GCC [PR50066] (PR #74155)

Nathan Sidwell via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 15 11:16:39 PST 2023


================
@@ -37,6 +38,27 @@ class ASTConsumer {
 
   friend class SemaConsumer;
 
+public:
+  /// Allow type-based aliasing information to be interrogated by the AST
+  /// producer (for diagnostics).
+  class TypeAliasing {
----------------
urnathan wrote:

Oh, we also endup deriving from the TypeAliasing class to override the virtual function it provides.

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


More information about the cfe-commits mailing list