Files
clang-p2996/clang/lib/CodeGen/CGDecl.cpp
Daniel Paoliello c86899d2d2 [clang] Add support for __declspec(no_init_all) (#116847)
In MSVC, when `/d1initall` is enabled, `__declspec(no_init_all)` can be
applied to a type to suppress auto-initialization for all instances of
that type or to a function to suppress auto-initialization for all
locals within that function.

This change does the same for Clang, except that it applies to the
`-ftrivial-auto-var-init` flag instead.

NOTE: I did not add a Clang-specific spelling for this but would be
happy to make a followup PR if folks are interested in that.
2024-11-20 16:48:30 -08:00

110 KiB