Skip to content

docs: add a guide for using cpp-linter with AI coding agents - #82

Merged
shenxianpeng merged 1 commit into
mainfrom
claude/project-thread-u5lqbe
Oct 19, 2026
Merged

shenxianpeng merged 1 commit into
mainfrom
claude/project-thread-u5lqbe

Conversation

@shenxianpeng

@shenxianpeng shenxianpeng commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Before: the site had no page on using cpp-linter with AI coding agents.

After: a new page, "Use cpp-linter with AI coding agents" (docs/ai-coding-agents.md), linked in the nav after "Get started". It has copy-paste configs for each place the check loop can run:

  • a Claude Code PostToolUse hook that runs clang-format and clang-tidy on each edited file and sends findings back to the agent,
  • copilot-setup-steps.yml for GitHub Copilot coding agent,
  • an AGENTS.md snippet that has the agent run cpp-linter on its changed lines before finishing,
  • cpp-linter-hooks for commits,
  • cpp-linter-action with tidy-review on the pull request.

How: the commands were checked against cpp-linter 1.15.0 and clang 18 locally (the hook script with fake hook input, and the changed-lines command with and without staged changes). nox -s docs and mkdocs build --strict pass. The Copilot setup details follow GitHub's docs but were not run against a live Copilot agent.

Show how to make clang-format and clang-tidy the check loop for AI coding
agents: a Claude Code PostToolUse hook, Copilot coding agent setup steps,
an AGENTS.md snippet, cpp-linter-hooks and cpp-linter-action reviews.
@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cpp-linter-github-io ready!

Name Link
🔨 Latest commit 5170994
🔍 Latest deploy log https://app.netlify.com/projects/cpp-linter-github-io/deploys/6ad4925fcca30ec67a153e1d
😎 Deploy Preview https://deploy-preview-82--cpp-linter-github-io.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@shenxianpeng
shenxianpeng merged commit 3e18b92 into main Oct 19, 2026
7 checks passed
@shenxianpeng
shenxianpeng deleted the claude/project-thread-u5lqbe branch October 19, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant