Skip to content

Latest commit

 

History

History
156 lines (82 loc) · 5.09 KB

getting-started.md

File metadata and controls

156 lines (82 loc) · 5.09 KB

Getting Started

Welcome to cpp-linter! This guide will help you integrate C/C++ linting into your workflow quickly and efficiently.

What is cpp-linter?

cpp-linter connects the standard LLVM linting tools, clang-format and clang-tidy, to the places where C/C++ projects need checks: pull requests, pre-commit hooks, local scripts, and CI jobs.

  • clang-format checks formatting against a named style or your .clang-format file.
  • clang-tidy runs static-analysis and modernization checks, usually configured by .clang-tidy.
  • cpp-linter wraps those tools into integrations with consistent defaults, reporting, and failure controls.

Choose Your Integration

Select the method that best fits your development workflow:

Use case Recommended entry point
GitHub pull request checks cpp-linter-action
Local checks before commits cpp-linter-hooks
Custom scripts or CI jobs cpp-linter CLI (Python)
High-performance local runs cpp-linter-rs (Rust)

Install the clang tools

Need clang-format, clang-tidy, and friends without building LLVM from source? Choose whichever fits your setup.

Package managers (recommended)

Prebuilt binaries, Docker & wheels

Standalone tools