-
-
Notifications
You must be signed in to change notification settings - Fork 5
docs: add FAQ section #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,6 +19,8 @@ A powerful [pre-commit](https://pre-commit.com/) hook for auto-formatting and li | |||||||||||||||||||||||||||||
| - [Troubleshooting](#troubleshooting) | ||||||||||||||||||||||||||||||
| - [Performance Optimization](#performance-optimization) | ||||||||||||||||||||||||||||||
| - [Verbose Output](#verbose-output) | ||||||||||||||||||||||||||||||
| - [FAQ](#faq) | ||||||||||||||||||||||||||||||
| - [What's the difference between `cpp-linter-hooks` and `mirrors-clang-format`?](#whats-the-difference-between-cpp-linter-hooks-and-mirrors-clang-format) | ||||||||||||||||||||||||||||||
| - [Contributing](#contributing) | ||||||||||||||||||||||||||||||
| - [License](#license) | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
|
|
@@ -181,6 +183,19 @@ repos: | |||||||||||||||||||||||||||||
| args: [--style=file, --version=18, --verbose] # Add -v or --verbose for detailed output | ||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| ## FAQ | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| ### What's the difference between [`cpp-linter-hooks`](https://github.com/cpp-linter/cpp-linter-hooks) and [`mirrors-clang-format`](https://github.com/pre-commit/mirrors-clang-format)? | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| | Feature | [`cpp-linter-hooks`](https://github.com/cpp-linter/cpp-linter-hooks) | [`mirrors-clang-format`](https://github.com/pre-commit/mirrors-clang-format) | | ||||||||||||||||||||||||||||||
| |----------------------------------|:---------------------------------------------------------------------:|:----------------------------------------------------------------------------:| | ||||||||||||||||||||||||||||||
| | Supports `clang-format` and `clang-tidy` | ✅ (`clang-format` & `clang-tidy`) | ✅ (`clang-format` only) | | ||||||||||||||||||||||||||||||
| | Loads style configuration | ✅ via `--version` | ✅ (default behavior) | | ||||||||||||||||||||||||||||||
| | Specify `clang-format` version | ✅ via `--version` | ✅ via `rev` | | ||||||||||||||||||||||||||||||
| | Supports passing code string | ✅ via `--style` | ❌ | | ||||||||||||||||||||||||||||||
| | Verbose output | ✅ via `--verbose` | ❌ | | ||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Fix misleading feature descriptions in the comparison table.
Suggested fix: -| Loads style configuration | ✅ via `--version` | ✅ (default behavior) |
+| Loads style configuration | ✅ via `--style=file` (or default `.clang-format`) | ✅ (default behavior) |
-| Supports passing code string | ✅ via `--style` | ❌ |
+| Supports formatting code from stdin | ✅ via `-` (stdin) | ❌ |Correcting these cells prevents confusion for readers comparing the two hooks. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| ## Contributing | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| We welcome contributions! Whether it's fixing issues, suggesting improvements, or submitting pull requests, your support is greatly appreciated. | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.