All changes should adhere to LLVM Developer Policy / Coding Standarts:
All OHOS-related changes to mainline LLVM / clang code MUST be clearly marked such as:
unsigned LoopSizeThreshold = 32; // OHOS_LOCAL
or
// OHOS_LOCAL
unsigned LoopSizeThreshold = Really(Long()).LineOfExtremely()->NecessaryCode();
or in case of multiline change:
// OHOS_LOCAL begin
Some local OHOS change
// OHOS_LOCAL end
The presence of such marks greatly simplifies porting such code snippets to new LLVM versions. All such changes MUST be accompanied with a test case that MUST fail should the change is reverted.
If the change is from the upstream and is a mainline patch, the OHOS_LOCAL flag does not need to be added. Similar PRs, such as:
Commit title and message should be in English.
Commit title should starts with tag in brackets (name of changed component), e.g.:
[lldb] Add support for backward debugging
or, in case of several components:
[lldb][mips][test] Add tests for support for backward debugging on MIPS
Commit message should briefly describe how it is achieved, e.g.:
[lldb] Add support for backward debugging
To support backward steps, auxiliary information is stored in SomeUsefulComponent
Commit message should contain a link to related issue:
[lldb] Add support for backward debugging
To support backward steps, auxiliary information is stored in SomeUsefulComponent
Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/I6ZYBW
All ABI-breaking changes MUST be scheduled to a major toolchain releases. One should explicitly discuss and document such changes. Ideally ABI-breaking change should cause linking error, it should not cause silent and hard to track bugs.
Each pull request which changes existing functionality or adds new one should contains tests (modified or new ones). To add tests, please refer official LLVM documentation:
And also you can check online presentations from LLVM Conferences about LLVM testing infrastructure, e.g.: https://youtu.be/isVQ8kYqaSA
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。