higher-performance
1594413d5e
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.
2025-01-14 13:31:12 -05:00
..
2024-11-13 10:35:22 +01:00
2025-01-08 21:02:46 -08:00
2024-05-04 17:31:08 -07:00
2024-05-04 17:31:08 -07:00
2022-10-28 21:42:57 -07:00
2022-10-28 21:42:57 -07:00
2022-10-28 21:42:57 -07:00
2023-08-28 12:13:42 -04:00
2023-06-12 12:44:25 +02:00
2022-10-28 17:00:18 -07:00
2023-11-17 01:13:38 -08:00
2024-07-03 13:45:48 -07:00
2022-10-14 14:33:10 -07:00
2024-06-14 00:40:33 -07:00
2024-08-22 09:20:53 -07:00
2024-09-24 15:59:33 -07:00
2024-04-28 09:42:43 -07:00
2023-10-24 06:14:27 +02:00
2024-10-09 20:00:33 +02:00
2023-06-26 00:27:15 +09:00
2023-06-26 00:27:15 +09:00
2022-07-27 11:10:54 +02:00
2023-05-31 07:26:03 +02:00
2023-07-14 22:59:41 +09:00
2023-07-14 22:59:41 +09:00
2022-06-29 14:57:35 +02:00
2023-09-05 12:12:42 +09:00
2024-08-04 23:28:54 -03:00
2024-05-24 11:38:22 -03:00
2024-12-01 19:21:42 -08:00
2022-12-16 11:38:51 +00:00
2023-06-16 19:26:53 +09:00
2023-08-17 10:09:50 +02:00
2022-09-24 07:58:40 -05:00
2023-08-28 12:13:42 -04:00
2024-05-04 17:15:51 -07:00
2023-06-06 13:50:04 -07:00
2023-05-31 07:26:03 +02:00
2023-10-24 16:44:12 +02:00
2024-05-04 23:08:11 -07:00
2024-05-04 23:08:11 -07:00
2024-11-18 15:28:17 -06:00
2025-01-14 13:31:12 -05:00
2023-08-28 12:13:42 -04:00
2024-09-11 16:04:56 -07:00
2023-06-06 13:50:04 -07:00
2023-09-08 16:38:08 -07:00
2023-05-01 18:22:49 -07:00
2022-07-22 15:24:54 -04:00
2024-11-06 09:45:16 +01:00
2023-05-31 07:26:03 +02:00
2023-05-31 07:26:03 +02:00
2023-05-31 07:26:03 +02:00
2022-11-16 14:36:16 -08:00
2024-11-08 11:25:39 -05:00
2024-11-13 10:35:22 +01:00
2024-11-13 10:35:22 +01:00
2024-10-03 02:14:51 +02:00
2024-06-05 09:56:08 +08:00
2023-05-31 07:26:03 +02:00