llvm/llvm-project

[libc] Clean up copt naming

オープン

#133,505 opened on 2025/03/28

 (6 件のコメント) (0 件のリアクション) (1 人の担当者)C++ (10,782 件のフォーク)batch import
good first issuelibc

Repository metrics

Stars
 (26,378 個のスター)
PR merge metrics
 (平均マージ 1d 2h) (30d で 1,000 merged PRs)

説明

Our code style document says all our compile flags set by the build system should start LIBC_COPT_ but not all of them do. We should update them to fit our naming scheme.

Steps to fix:

  1. go through the flags in config.json
  2. For each flag, check what copt it defines
  3. If that copt doesn't start with LIBC_COPT_, rename it so it does.
  4. Make sure the flag is renamed everywhere it's used in code, cmake, and bazel.

コントリビューターガイド