/// Find any attempt to compare or dereference struct clk pointers. /// // Confidence: High // Copyright: (C) 2015 Quentin Lambert, INRIA/LiP6. GPLv2 // URL: http://coccinelle.lip6.fr/ // Options: --recursive-includes --relax-include-path // Options: --include-headers-for-types virtual context virtual org virtual report // ---------------------------------------------------------------------------- @comparison_dereference depends on context || org || report@ struct clk *x1, x2; position j0; @@ ( * x1@j0 == x2 | * x1@j0 != x2 | * *x1@j0 ) // ---------------------------------------------------------------------------- @script:python comparison_dereference_org depends on org@ j0 << comparison_dereference.j0; @@ msg = "WARNING trying to compare or dereference struct clk pointers." coccilib.org.print_todo(j0[0], msg) // ---------------------------------------------------------------------------- @script:python comparison_dereference_report depends on report@ j0 << comparison_dereference.j0; @@ msg = "WARNING trying to compare or dereference struct clk pointers." coccilib.report.print_report(j0[0], msg)