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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 6 05:04:37 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 {
----------------
Endilll wrote:

Sorry I didn't make myself clear enough. I thought that `TypeAliasing` exists for the sole purpose of providing a scope for unscoped enumeration, so my idea was that this whole class can be replaces with a scoped enum.

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


More information about the cfe-commits mailing list