[all-commits] [llvm/llvm-project] d5cef3: [Clang] Make '-Wglobal-constructors` work on the G...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Thu Mar 6 18:44:03 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d5cef39d7411b3c48e5c2160f1e4711edc24dcd3
https://github.com/llvm/llvm-project/commit/d5cef39d7411b3c48e5c2160f1e4711edc24dcd3
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-03-06 (Thu, 06 Mar 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaDeclAttr.cpp
M clang/test/SemaCXX/attr-require-constant-initialization.cpp
Log Message:
-----------
[Clang] Make '-Wglobal-constructors` work on the GNU attributes (#129917)
Summary:
The `-Wglobal-constructors` option is useful for restricting the usage
of global constructors / destructors. However, it currently ignores the
attributes that introduce global constructors, meaning that the module
can still have ctors if `-Werror` is set. If this is intentional by the
user, I believe it would be more correct to push the diagnostic.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list