Skip to content

Commit ff40f6b

Browse files
unhappychoiceclaude
andcommitted
docs: add C and C++ language support to documentation
- Update README.md with C and C++ language support - Add C and C++ to supported languages table - Document C extraction features (functions, structs, macros, etc.) - Document C++ extraction features (classes, templates, namespaces) - Update language filtering examples and config files - Remove C++ from planned support (now implemented) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1b58863 commit ff40f6b

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Features ✨
1010

11-
- 🦀🐍⚡🐹💎🍎🎯☕🐘#️⃣ **Multi-language**: Rust, TypeScript, JavaScript, Python, Go, Ruby, Swift, Kotlin, Java, PHP, C# (more languages incoming!)
11+
- 🦀🐍⚡🐹💎🍎🎯☕🐘#️⃣🔧➕ **Multi-language**: Rust, TypeScript, JavaScript, Python, Go, Ruby, Swift, Kotlin, Java, PHP, C#, C, C++ (more languages incoming!)
1212
- 📊 **Real-time metrics**: Live WPM, accuracy, and consistency tracking as you type
1313
- 🏆 **Ranking system**: Unlock developer titles from "Hello World Newbie" to "Quantum Computer" with ASCII art
1414
- 🎮 **Multiple game modes**: Normal, Time Attack, and custom difficulty levels (Easy to Zen)

docs/supported-languages.md

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
| Java | `.java` | ✅ Full support | `tree-sitter-java` |
1616
| PHP | `.php`, `.phtml`, `.php3`, `.php4`, `.php5` | ✅ Full support | `tree-sitter-php` |
1717
| C# | `.cs`, `.csx` | ✅ Full support | `tree-sitter-c-sharp` |
18+
| C | `.c`, `.h` | ✅ Full support | `tree-sitter-c` |
19+
| C++ | `.cpp`, `.cc`, `.cxx`, `.hpp` | ✅ Full support | `tree-sitter-cpp` |
1820

1921
## Extraction Features
2022

@@ -150,11 +152,35 @@
150152
- Attributes
151153
- Access modifiers (public, private, protected, internal)
152154

155+
### C
156+
- Functions (`int main()`, `void function()`)
157+
- Structs (`struct`)
158+
- Type definitions (`typedef`)
159+
- Enum definitions (`enum`)
160+
- Global variables
161+
- Macro definitions (`#define`)
162+
- Static functions and variables
163+
- Function pointers
164+
- Union definitions (`union`)
165+
166+
### C++
167+
- Functions (`int main()`, `void function()`)
168+
- Methods (class and struct member functions)
169+
- Classes (`class`)
170+
- Structs (`struct`)
171+
- Template classes (`template<typename T> class`)
172+
- Template functions (`template<typename T> T function()`)
173+
- Constructors and destructors
174+
- Operator overloading
175+
- Global variables
176+
- Type definitions (`typedef`, `using`)
177+
- Enum definitions (`enum`, `enum class`)
178+
- Namespace functions (functions within namespaces)
179+
153180
## Planned Support
154181

155182
| Language | Priority | Expected | Notes |
156183
|----------|----------|----------|--------|
157-
| C++ | High | Q2 2025 | Modern C++17/20 features |
158184
| Dart | Medium | Q4 2025 | Flutter development |
159185
| Zig | Low | Future | Systems programming |
160186

@@ -167,14 +193,14 @@
167193
gittype --langs rust
168194

169195
# Multiple languages
170-
gittype --langs rust,typescript,javascript,python,go,ruby,swift,kotlin,java,php,csharp
196+
gittype --langs rust,typescript,javascript,python,go,ruby,swift,kotlin,java,php,csharp,c,cpp
171197
```
172198

173199
### Configuration File
174200

175201
```toml
176202
[default]
177-
langs = ["rust", "typescript", "javascript", "python", "go", "ruby", "swift", "kotlin", "java", "php", "csharp"]
203+
langs = ["rust", "typescript", "javascript", "python", "go", "ruby", "swift", "kotlin", "java", "php", "csharp", "c", "cpp"]
178204
```
179205

180206
## Code Extraction Quality

0 commit comments

Comments
 (0)