Get the latest tech news

Coccinelle


¶ Coccinelle is a tool for pattern matching and text transformation that has many uses in kernel development, including the application of complex, tree-wide patches and detection of problematic programming patterns. Getting Coccinelle¶ The semantic patches included in the kernel use features and options which are provided by Coccinelle version 1.0.0-rc11 and above.

In these modes, which work on a file basis, there is no information about semantic patches displayed, and no commit message proposed. The COCCI variable may additionally be used to only apply a single semantic patch as shown in the previous section. This is because checking a single file requires spatch to be called twice leading to DEBUG_FILE being set both times to the same value, giving rise to an error.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Coccinelle

Coccinelle