[;{}] [*] \w+? (\+\+|\-\-) ;
UnusedDeref
style
Redundant * found, "*p++" is the same as "*(p++)".
if \( ([!] )*?(strlen) \( \w+? \) ([>] [0] )*?\) {
StrlenEmptyString
performance
Using strlen() to check if a string is empty is not efficient.
[;{}] [*] \w+? (\+\+|\-\-) ;
UnusedDeref
style
Redundant * found, "*p++" is the same as "*(p++)".
define
define [0-9A-Z_^a-z]*[a-z]
defineUpperCase
style
Macros must be uppercase
define
define (MIGRAP|[^H]{6})[^H][^_]
definePrefix
style
Macros must be prefixed with MIGRAPH_
(memcpy|strcpy|strncpy|strcat|strncat) \(
useStlAlgorithms
style
Use std::copy instead
memset \(
useStlAlgorithms
style
Use std::fill instead
memcmp \(
useStlAlgorithms
style
Use std::equal_range instead
memchr \(
useStlAlgorithms
style
Use std::find instead
(fclose|free|hipFree) \(
useManagePointer
style
Use manage pointer for resource management
normal
! !
doubleNegative
style
Double negative is always positive