Skip to content

Commit

Permalink
tools: Add coccinelle script to catch typecasts to same type
Browse files Browse the repository at this point in the history
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
  • Loading branch information
ton31337 committed Apr 8, 2020
1 parent fa82609 commit 0bed7d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/coccinelle/same_type_casting.cocci
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@@
type T;
T *ptr;
@@

- (T *)ptr
+ ptr

0 comments on commit 0bed7d4

Please sign in to comment.