Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-10-22 | tor-coccinelle: handle SIMPLEQ and TAILQ better. | Nick Mathewson | |
2019-10-22 | tor-coccinelle.h: Add {EN,DIS}ABLE_GCC_WARNING. | Nick Mathewson | |
2019-10-22 | tor-coccinelle: expect parentheses after HT_INITIALIZER | Nick Mathewson | |
2019-10-22 | try_parse.sh: add a verbose mode and a meaningful exit code. | Nick Mathewson | |
2019-10-22 | document test-operator-cleanup | Nick Mathewson | |
2019-10-09 | Document tor-coccinelle.h | Nick Mathewson | |
2019-09-11 | Add some more of our trickier macros to tor-coccinelle.h | Nick Mathewson | |
Note that this header file behaves a bit strangely. It is used by coccinelle just for the purpose of knowing how to parse difficult-to-parse stuff. It doesn't need to produce good C -- just grammatical C. | |||
2019-09-11 | Add a script to tell whether a file can be perfectly parsed by spatch | Nick Mathewson | |
spatch can let us know whether a file has parsed "perfectly" or not. The more perfect it parses, the likelier any semantic patches are to apply. I've used this script to identify problem areas in our code. | |||
2019-09-11 | Add a script to run spatch with appropriate arguments | Nick Mathewson | |
It's a bit tricky to remember the right incantation to get the proper include paths and incantations for coccinelle, but without it, coccinelle is less effective at parsing our C. | |||
2019-04-30 | Coccinelle scripts for control.c refactor | Taylor Yu | |
2017-08-24 | Add Coccinelle patch for replacing NULL/non-NULL tt_assert(). | Alexander Færøy | |
This patch replaces tt_assert() checks for NULL/non-NULL values with tt_ptr_op(). | |||
2017-08-24 | Add Coccinelle patch for replacing tt_assert() usage on integer types. | Alexander Færøy | |
This patch replaces tt_assert() comparison of integers and unsigned integers with their respective tt_int_op or tt_uint_op counterpart. | |||
2017-08-24 | Add Coccinelle patch for replacing tt_assert(0) with tt_abort(). | Alexander Færøy | |
2017-08-24 | Add Coccinelle patch for detecing places where CEIL_DIV should be used. | Alexander Færøy | |
2017-08-24 | Add script for cleaning op operator usage in test files. | Alexander Færøy | |
This patch adds a script written by Nick for bug #13172 to clean up the usage of ==, !=, <, >, <=, and >= by replacing them with their symbolic OP_* counterpart. This will ensure that a tool like Coccinelle doesn't get confused and silently ignore large blocks of code. | |||
2014-11-02 | Add a rule to the calloc semantic patch for argument ordering. | Mansour Moufid | |
2014-11-02 | The second argument to tor_calloc should be a constant. | Mansour Moufid | |
Just like the conventional calloc. | |||
2014-11-02 | Refactor the calloc semantic patch. | Mansour Moufid | |
This does not change its effects. | |||
2014-09-16 | Add coccinelle script to remove pointless callocs | Nick Mathewson | |
2014-09-16 | Add script to detect and remove unCish malloc-then-cast pattern | Nick Mathewson | |
Also, apply it. | |||
2014-08-13 | Add a simple coccinelle script to replace malloc->calloc | Nick Mathewson | |
Coccinelle is a semantic patching tool that can automatically change C code via semantic patching. This script also replaces realloc with reallocarray as appropriate. |