1 // SPDX-License-Identifier: GPL-2.0-only
3 /// Check for opencoded swap() implementation.
6 // Copyright: (C) 2021 Denis Efremov ISPRAS
7 // Options: --no-includes --include-headers
17 @rvar depends on !patch@
47 @rpvar depends on patch@
79 @depends on patch && (rpvar || rp)@
100 @script:python depends on report@
104 coccilib.report.print_report(p[0], "WARNING opportunity for swap()")
106 @script:python depends on org@
110 coccilib.org.print_todo(p[0], "WARNING opportunity for swap()")
112 @script:python depends on report@
116 coccilib.report.print_report(p[0], "WARNING opportunity for swap()")
118 @script:python depends on org@
122 coccilib.org.print_todo(p[0], "WARNING opportunity for swap()")