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

Open
#592 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
c, cpp, python
Domain
testing, tooling

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
4
Forks
1
Avg merge
6h 31m
Merged PRs (30d)
238

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cpp-best-practices/project_validator

All issues in cpp-best-practices/project_validator

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.