[clang] [clang] Strict aliasing warning ala GCC [PR50066] (PR #74155)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 3 03:03:52 PST 2023
================
@@ -128,6 +128,10 @@ class DiagnosticOptions : public RefCountedBase<DiagnosticOptions>{
/// whether -Wsystem-headers is enabled on a per-module basis.
std::vector<std::string> SystemHeaderWarningsModules;
+ /// Level of scrutiny reinterpret_casts get for type-unsafe aliasing
+ /// checks. Requires an ASTConsumer that provides TBAA information.
+ unsigned StrictAliasing;
----------------
Endilll wrote:
Wouldn't a small bit-field suffice here?
https://github.com/llvm/llvm-project/pull/74155
More information about the cfe-commits
mailing list