
ast-grep
7.0#3 in code search toolsFree planFree planWebAPIExtensionLinux
Visit

| Fact | ast-grep | Coccinelle |
|---|---|---|
| Purpose | ast-grep is a fast, polyglot tool for structural code search, linting, and rewriting at scale. | Coccinelle is a program matching and transformation engine that uses SmPL to specify desired matches and transformations in C code. |
| Support | The project directs users with questions or issues to GitHub or Discord and also points to Stack Overflow and Reddit. | Questions can be sent to the [email protected] mailing list, which is moderated for non-members; contributions are preferred via the list and may also be submitted on GitHub. |
It suits developers who need syntax-aware search, linting, or bulk code changes across supported languages. Teams wanting advanced static-analysis information or one rule spanning multiple languages should note its stated limits.
Coccinelle suits developers working on C code who need repository-wide transformations or help finding and fixing systems-code bugs. It also offers C++ mode for projects using that language.