一呼百應, "one call, a hundred responses"
Loading...
Searching...
No Matches
Initialization
Collaboration diagram for Initialization:

Macros

#define ein_constinit
 constinit
 
#define ein_uninitialized
 [[clang::uninitialized]]
 
#define ein_reinitializes
 [[clang::reinitializes]]
 

Detailed Description

Macro Definition Documentation

◆ ein_constinit

#define ein_constinit

constinit

constinit requires C++20, but __attribute__((require_constant_initialization)) was available slightly earlier.

Definition at line 389 of file common.hpp.

◆ ein_reinitializes

#define ein_reinitializes

[[clang::reinitializes]]

Indicates to any uninitialised object state sanitizer that this restores an object to a fresh state independent of its previous state.

Definition at line 418 of file common.hpp.

◆ ein_uninitialized

#define ein_uninitialized

[[clang::uninitialized]]

ensures a stack variable remains uninitialized regardless of -ftrivial-auto-var-init=* settings passed to the compiler

Definition at line 403 of file common.hpp.