Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Take the LoadContext of findStackAnalyzerSection by const reference

オープン 初心者向け
#177 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cmake, cpp
領域
backend, tooling

調査の方向性

src/App/ToolConfig.cpp の findStackAnalyzerSection(1074 行付近)を開いてください。issue では、パラメーターの変更点と、ApplyFn ハンドラーを変更せずにおくべき理由が説明されています。そのパラメーターだけを変更し、続いて記載されている CMake ビルド、ctest、./scripts/format-check.sh を実行してください。ビルドとテストが成功し、ほかにコード変更がなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

chore good first issue severity/minor

findStackAnalyzerSection (src/App/ToolConfig.cpp:1074) takes LoadContext& ctx, but only calls ctx.deprecated(...), which is a const member function. The initial static analysis flagged it twice: cppcheck's constParameterReference and the stack analyzer's ConstParameterNotModified.Reference (docs/quality/static-analysis-initial.md).

To do: change the parameter to const LoadContext& ctx.

Leave the configuration handlers (ApplyFn) as they are. They also take LoadContext& and are flagged too, but they write the configuration through ctx.config. config is a reference, so a const LoadContext& would still compile, but it would hide that these handlers modify the configuration.

Check:

cmake --build build --parallel 4
ctest --test-dir build --output-on-failure
./scripts/format-check.sh

Acceptance

  • findStackAnalyzerSection takes const LoadContext&; nothing else changes.
  • The build (warnings are errors) and ctest pass.

From the technical debt register (docs/quality/technical-debt.md, D11).

主要言語
C++
スター
5
フォーク
4
平均マージ
1時間 2分
マージ済み PR(30日)
74

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CoreTrace/coretrace のほかの issue

CoreTrace/coretrace の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。