zephyr/subsys/cpp
Piotr Pryga 9f56e3d8a5 cpp: Add C++20 [[nodiscard]] attribute to operator new
C++20 standard added [[nodiscard]] attribute to operator new
definitions. In case value returned by operator new is ignored,
compiler emits a warning.

The commit adds the attribute to operator new definitions.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2022-10-03 10:13:25 +02:00
..
include cpp: Add spec of new operator with alignment request 2022-10-03 10:13:25 +02:00
CMakeLists.txt
cpp_ctors.c linker: ensure global constructors only run once 2022-06-09 11:33:36 +02:00
cpp_dtors.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
cpp_init_array.c linker: ensure global constructors only run once 2022-06-09 11:33:36 +02:00
cpp_init.c ARC: MWDT: get rid of MWDT startup libs 2021-09-01 17:08:32 -04:00
cpp_new.cpp cpp: Add C++20 [[nodiscard]] attribute to operator new 2022-10-03 10:13:25 +02:00
cpp_virtual.c cpp: remove @return doc for void functions 2022-01-12 16:02:16 -05:00
cpp_vtable.cpp cpp: Use malloc/free instead of kernel variants in new/delete 2019-11-26 12:41:54 -06:00
Kconfig kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00