check-style should recommend use of g_slice
This commit is contained in:
parent
68c12e950e
commit
a908d8a9f1
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ violations = [
|
||||||
|getpwnam|getpwuid|gmtime|localtime \
|
|getpwnam|getpwuid|gmtime|localtime \
|
||||||
|rand|readdir|strtok|ttyname', 'Not thread-safe posix, use _r variant'],
|
|rand|readdir|strtok|ttyname', 'Not thread-safe posix, use _r variant'],
|
||||||
['while.*g_list_nth', 'Use g_list_next() instead of g_list_nth'],
|
['while.*g_list_nth', 'Use g_list_next() instead of g_list_nth'],
|
||||||
|
['[^a-z]g_new.*1[^0-9]', 'Use g_slice_new() instead of g_new()'],
|
||||||
]
|
]
|
||||||
# No validation for strings, comments, includes
|
# No validation for strings, comments, includes
|
||||||
omissions = [
|
omissions = [
|
||||||
|
|
Loading…
Reference in a new issue