arduino / arduino/ArduinoCore-API

Use modern C++ casts instead of current C-style casting approaches

未关闭
#250 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
C++
星标
306
派生
150
PR 合并指标
30 天内没有已合并 PR

描述

### Description

Update various API implementations that use c-style pointer casting and other c-style approaches to use modern C++ casts.

### Is this a breaking change?

The function signatures would remain unchanged
The behavior of the functions would be identical
User code that calls these functions wouldn't need any modifications

### Additional information

Modernizes the code base. Compilers will optimize these the same, but coding standards favor using C++ cast in C++ code.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位使用 C-style pointer casts 或其他 C-style casting approaches 的 API 实现。将相关的 casts 替换为 modern C++ casts,同时保持 function signatures 和行为不变,然后验证这些实现仍能成功构建且行为完全一致。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
api
Issue 类型
重构
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。