llvm-project
c86899d2 - [clang] Add support for `__declspec(no_init_all)` (#116847)

Commit
1 year ago
[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.
Author
Parents
Loading