Repository navigation
docs: add a guide for using cpp-linter with AI coding agents - #82
Merged
Merged
Conversation
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.
✅ Deploy Preview for cpp-linter-github-io ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:PostToolUsehook that runs clang-format and clang-tidy on each edited file and sends findings back to the agent,copilot-setup-steps.ymlfor GitHub Copilot coding agent,AGENTS.mdsnippet that has the agent run cpp-linter on its changed lines before finishing,tidy-reviewon 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 docsandmkdocs build --strictpass. The Copilot setup details follow GitHub's docs but were not run against a live Copilot agent.