summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/plugins/python_os_plugin
diff options
context:
space:
mode:
authorhigher-performance <higher.performance.github@gmail.com>2025-01-14 13:31:12 -0500
committerGitHub <noreply@github.com>2025-01-14 13:31:12 -0500
commit1594413d5edf6a47d4100cb6a2bc613cfbb92beb (patch)
treefc9743f336e09c4e40794ca00570b403ee73f718 /lldb/test/API/functionalities/plugins/python_os_plugin
parent576b53801fc3d721602ae0d8377af9950f356000 (diff)
Add Clang attribute to ensure that fields are initialized explicitly (#102040)
This is a new Clang-specific attribute to ensure that field initializations are performed explicitly. For example, if we have ``` struct B { [[clang::explicit]] int f1; }; ``` then the diagnostic would trigger if we do `B b{};`: ``` field 'f1' is left uninitialized, but was marked as requiring initialization ``` This prevents callers from accidentally forgetting to initialize fields, particularly when new fields are added to the class.
Diffstat (limited to 'lldb/test/API/functionalities/plugins/python_os_plugin')
0 files changed, 0 insertions, 0 deletions