You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3550917
Browse filesBrowse the repository at this point in the historyBrowse files
Documentation website for the `cpp-linter` project and organization.
9
+
10
+
This repository hosts the public site at <https://cpp-linter.github.io/>, including the homepage, getting started guides, and community links for the C/C++ linting ecosystem around `cpp-linter`.
Copy file name to clipboardExpand all lines: docs/getting-started.md
+50-8Lines changed: 50 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,28 @@
2
2
3
3
Welcome to cpp-linter! This guide will help you integrate C/C++ linting into your workflow quickly and efficiently.
4
4
5
+
## What is cpp-linter?
6
+
7
+
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.
8
+
9
+
-`clang-format` checks formatting against a named style or your `.clang-format` file.
10
+
-`clang-tidy` runs static-analysis and modernization checks, usually configured by `.clang-tidy`.
11
+
- cpp-linter wraps those tools into integrations with consistent defaults, reporting, and failure controls.
12
+
5
13
## Choose Your Integration
6
14
7
15
<!-- markdownlint-disable MD033 -->
8
16
9
17
Select the method that best fits your development workflow:
Distribution clang tools static binaries for various platforms
81
+
Statically-linked `clang-format`, `clang-tidy`, `clang-query`, `clang-apply-replacements`, and `clang-include-cleaner`binaries for Linux, macOS, and Windows
64
82
65
83
[Download from →](https://github.com/cpp-linter/clang-tools-static-binaries){ .md-button .md-button--primary }
Install `clang-include-cleaner` via pip — detects unused `#include` directives
114
+
115
+
[Install from PyPI →](https://pypi.org/project/clang-include-cleaner/){ .md-button .md-button--primary }
116
+
83
117
</div>
84
118
85
119
## Easy Installation
@@ -90,7 +124,7 @@ Select the method that best fits your development workflow:
90
124
91
125
---
92
126
93
-
Easy installation of clang tools static binaries via pip
127
+
Install `clang-format`, `clang-tidy`, `clang-query`, `clang-apply-replacements`, and `clang-include-cleaner` via static binaries or Python wheels using a single CLI
94
128
95
129
[Get started with clang-tools CLI →](https://cpp-linter.github.io/clang-tools-pip/){ .md-button .md-button--primary }
96
130
@@ -102,4 +136,12 @@ Select the method that best fits your development workflow:
102
136
103
137
[Get started with asdf →](https://github.com/cpp-linter/asdf-clang-tools){ .md-button .md-button--primary }
104
138
139
+
- :fontawesome-brands-apple: **Homebrew Tap**
140
+
141
+
---
142
+
143
+
Install `clang-format`, `clang-tidy`, `clang-query`, `clang-apply-replacements`, and `clang-include-cleaner` via Homebrew — no compilation required
144
+
145
+
[Get started with Homebrew →](https://github.com/cpp-linter/homebrew-tap){ .md-button .md-button--primary }
0 commit comments