From c34cfd30ab2e7eb4f7f70c93d1ca59bf9ce88a59 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Wed, 21 May 2025 15:26:02 +0100 Subject: [PATCH] Add IWYU pragmas to private headers which provide library symbols (#1103) * Add Zephyr build system module.yml (#1074) The Zephyr build system requires that modules have a `module.yml` file to specify where the module cmake and kconfig files are located. These can also be explicitly set as "external" meaning that they do not exist within the module tree, itself. These build file can still be specified elsewhere via cmake variables, explained more in-depth here: https://docs.zephyrproject.org/latest/develop/modules.html#modules-module-ext-root This change makes it such that ETL can be included more easily in zephyr projects running on embedded systems. A similar change can be observed in the public nanopb repository, where the repo only requires its own `zephyr/module.yml` file to be found by the zephyr build system, but the kconfig and cmake additions can exist outside of the library repository. * Add full West support for ETL (#1075) This will allow ETL to be included via west in a zephyr build without any additional wrappers or external kconfigs. Signed-off-by: Zach Van Camp Co-authored-by: Zach Van Camp * Add IWYU pragmas to private headers which provide library symbols This prevents warnings in clang compiler and IWYU tool https://clangd.llvm.org/guides/include-cleaner#iwyu-pragmas https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-export --------- Signed-off-by: Zach Van Camp Co-authored-by: Zach Van Camp Co-authored-by: Zach Van Camp Co-authored-by: John Wellbelove --- support/Release notes.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/support/Release notes.txt b/support/Release notes.txt index b2dab02b..5d5452a3 100644 --- a/support/Release notes.txt +++ b/support/Release notes.txt @@ -52,10 +52,9 @@ Pull Requests: #1088 Fix numeric overflow in bip buffer's get_write_reserve #1089 Cleanup fixes for C++03 #1090 Fix copy_s() for C++03 +#1103 Add IWYU pragmas to private headers which provide library symbols #1104 Use etl::clamp for setting value in cyclic_value - - =============================================================================== 20.40.0