-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[Backport v3.2-branch] Update to Clang 15 #56690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Clang 15 added a new warning type `-Wdeprecated-non-prototype` that warns about the functions without prototypes, which have been deprecated since the C89 and will not work in the upcoming C2x. This commit disables the warning because Zephyr deliberately makes use of the functions without prototypes to allow the use of a "generic" function pointer (notoriously in the cbprintf implementation) and Zephyr will not move to the C2x in the foreseeable future. Signed-off-by: Stephanos Ioannidis <[email protected]> (cherry picked from commit 0a63ca6)
This commit removes stale clang-related variables that are not used by the Twister workflow. Signed-off-by: Stephanos Ioannidis <[email protected]> (cherry picked from commit 34e4b6f)
This commit removes stale clang-related variables that are not used by the codecov workflow. Signed-off-by: Stephanos Ioannidis <[email protected]> (cherry picked from commit bbe32d4)
This commit removes stale clang-related variables that are not used by the bluetooth-tests workflow. Signed-off-by: Stephanos Ioannidis <[email protected]> (cherry picked from commit 984731c)
This commit removes stale clang-related variables that are not used by the footprint-tracking workflow. Signed-off-by: Stephanos Ioannidis <[email protected]> (cherry picked from commit 02fbef5)
This commit removes stale clang-related variables that are not used by the footprint workflow. Signed-off-by: Stephanos Ioannidis <[email protected]> (cherry picked from commit ba14a4e)
`CLANG_ROOT_DIR` is deprecated; use `LLVM_TOOLCHAIN_PATH` instead. Signed-off-by: Stephanos Ioannidis <[email protected]> (cherry picked from commit e43aebb)
This commit updates the CI workflows to use the CI image 0.24.3, in order to pull in the LLVM/Clang 15 and Renode 1.13.1. Signed-off-by: Stephanos Ioannidis <[email protected]> (cherry picked from commit e5b17ee)
This commit updates the Clang workflow to build tests using Clang 15. Signed-off-by: Stephanos Ioannidis <[email protected]> (cherry picked from commit 39af513)
|
@galak Since you requested this backport, could you provide some rationale on why this is necessary? |
The first commit is needed for arm-clang to build w/o everything causing warnings. I just tagged the original PR and thus is backported all the commits from it. |
stephanosio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem with this since the Zephyr SDK version has not changed as part of this update, and the update to Clang 15 does not introduce any breaking changes.
|
DNM until the node image is updated to cache the CI image v0.24.3. |
Node image has been updated. Merging. |
Fixes #56067
Backport 39af513~9..39af513 from #50049