this post was submitted on 31 Jan 2025
8 points (90.0% liked)
C++
1838 readers
5 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
tokei
is the tool that came to mind reading your title.Getting fancier info depends on the fanciness of the tokenizer used. Maximum fanciness probably requires a full language parser. Info beyond code/tokens requires more than just a parser (language server territory).
It might be possible to get this using treesitter, though not sure