Skip to content

lint: add clangtidy and use as default#1662

Draft
horriblename wants to merge 2 commits into
NotAShelf:mainfrom
horriblename:clangtidy
Draft

lint: add clangtidy and use as default#1662
horriblename wants to merge 2 commits into
NotAShelf:mainfrom
horriblename:clangtidy

Conversation

@horriblename

@horriblename horriblename commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

cpplint only checks for conformance to google's code style guide, whereas clangtidy has rules that are more "real issues" i.e. use-after-move

Sanity Checking

  • I have updated the changelog as per my changes
  • I have tested, and self-reviewed my code
  • My changes fit guidelines found in hacking nvf
  • Style and consistency
    • I ran Alejandra to format my code (nix fmt)
    • My code conforms to the editorconfig configuration of the project
    • My changes are consistent with the rest of the codebase
  • If new changes are particularly complex:
    • My code includes comments in particularly complex areas
    • I have added a section in the manual
    • (For breaking changes) I have included a migration guide
  • Package(s) built:
    • .#nix (default package)
    • .#maximal
    • .#docs-html (manual, must build)
    • .#docs-linkcheck (optional, please build if adding links)
  • Tested on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin

Add a 👍 reaction to pull requests you find important.

@github-actions

Copy link
Copy Markdown

🚀 Live preview deployed from d390177

View it here:

Debug Information

Triggered by: horriblename

HEAD at: clangtidy

Reruns: 3323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant