Commit a56a8f3
feat(lang): add C and C++ language support (#2746)
## Summary
- Add tree-sitter-based C and C++ language implementations for
maintainability analysis (complexity, duplication, nested control flow,
etc.)
- Wire up tree-sitter dependencies, language registration in
`ALL_LANGS`, file type/extension mappings, and protobuf enum mappings
- Add integration test fixtures and test registration for both C and C++
## Test plan
- [x] Unit tests pass for both C and C++ language modules (11 tests)
- [x] Integration tests pass for both `c_tests` and `cpp_tests`
- [x] `cargo check` passes cleanly
- [ ] CI passes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: marschattha <arslan_21@rocketmail.com>1 parent 6e7a156 commit a56a8f3
File tree
31 files changed
+3648
-2
lines changed- qlty-analysis
- src
- lang
- qlty-cli/tests
- lang
- cpp
- basic.in
- .qlty
- c
- basic.in
- .qlty
- qlty-config
- qlty-types/src
31 files changed
+3648
-2
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
22 | | - | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
0 commit comments