C and C++ analysers: include-what-you-use and valgrind

Đang mở
#592 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, cpp, python
Lĩnh vực
testing, tooling

Hướng nghiên cứu

Read the policy tool-row definitions, fixture coverage, and recipe expansion for CXX=; the issue reports that this already covers Stockfish's case. Then inspect how ./configure --enable-X is represented, since jq's valgrind case depends on it, and decide which policy gate valgrind belongs in. Done means both tools have policy rows and fixtures, with --error treated as advisory or a gate as specified, and valgrind's --error-exitcode enforced.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

question

Problem

  • Stockfish runs make analyze COMP=clang CXX=include-what-you-use CXXFLAGS="… -Xiwyu --error". There's no include-what-you-use model.
  • jq runs valgrind through ./configure --enable-valgrind then make check. There's nothing for valgrind.

Expected

  • include-what-you-use with --error fills static-analysis for C and C++; without it, advisory.
  • valgrind with --error-exitcode is a gate.

Decision needed

Which gate valgrind fills: sanitizers, static analysis, or a new memory-checking slot.

Done when

Both have tool rows in policy, with fixtures. Stockfish's case may light up from the tool row alone, since recipe expansion already applies CXX=. jq's valgrind needs ./configure --enable-X to be read first (see the dependency on this issue).

Split from #486. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Ngôn ngữ chính
Python
Star
4
Fork
1
Merge trung bình
6 giờ 31 phút
Pull request đã merge (30 ngày)
238

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cpp-best-practices/project_validator

Tất cả issue của cpp-best-practices/project_validator

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.