@@ -5109,7 +5109,30 @@ const PatternList = struct {
5109
5109
[2 ][]const u8 { "Ull_SUFFIX(X) (X ## Ull)" , "ULL_SUFFIX" },
5110
5110
[2 ][]const u8 { "ULL_SUFFIX(X) (X ## ULL)" , "ULL_SUFFIX" },
5111
5111
5112
+ [2 ][]const u8 { "f_SUFFIX(X) X ## f" , "F_SUFFIX" },
5113
+ [2 ][]const u8 { "F_SUFFIX(X) X ## F" , "F_SUFFIX" },
5114
+
5115
+ [2 ][]const u8 { "u_SUFFIX(X) X ## u" , "U_SUFFIX" },
5116
+ [2 ][]const u8 { "U_SUFFIX(X) X ## U" , "U_SUFFIX" },
5117
+
5118
+ [2 ][]const u8 { "l_SUFFIX(X) X ## l" , "L_SUFFIX" },
5119
+ [2 ][]const u8 { "L_SUFFIX(X) X ## L" , "L_SUFFIX" },
5120
+
5121
+ [2 ][]const u8 { "ul_SUFFIX(X) X ## ul" , "UL_SUFFIX" },
5122
+ [2 ][]const u8 { "uL_SUFFIX(X) X ## uL" , "UL_SUFFIX" },
5123
+ [2 ][]const u8 { "Ul_SUFFIX(X) X ## Ul" , "UL_SUFFIX" },
5124
+ [2 ][]const u8 { "UL_SUFFIX(X) X ## UL" , "UL_SUFFIX" },
5125
+
5126
+ [2 ][]const u8 { "ll_SUFFIX(X) X ## ll" , "LL_SUFFIX" },
5127
+ [2 ][]const u8 { "LL_SUFFIX(X) X ## LL" , "LL_SUFFIX" },
5128
+
5129
+ [2 ][]const u8 { "ull_SUFFIX(X) X ## ull" , "ULL_SUFFIX" },
5130
+ [2 ][]const u8 { "uLL_SUFFIX(X) X ## uLL" , "ULL_SUFFIX" },
5131
+ [2 ][]const u8 { "Ull_SUFFIX(X) X ## Ull" , "ULL_SUFFIX" },
5132
+ [2 ][]const u8 { "ULL_SUFFIX(X) X ## ULL" , "ULL_SUFFIX" },
5133
+
5112
5134
[2 ][]const u8 { "CAST_OR_CALL(X, Y) (X)(Y)" , "CAST_OR_CALL" },
5135
+ [2 ][]const u8 { "CAST_OR_CALL(X, Y) ((X)(Y))" , "CAST_OR_CALL" },
5113
5136
5114
5137
[2 ][]const u8 {
5115
5138
\\wl_container_of(ptr, sample, member) \
@@ -5303,6 +5326,7 @@ test "Macro matching" {
5303
5326
5304
5327
try helper .checkMacro (allocator , pattern_list , "NO_MATCH(X, Y) (X + Y)" , null );
5305
5328
try helper .checkMacro (allocator , pattern_list , "CAST_OR_CALL(X, Y) (X)(Y)" , "CAST_OR_CALL" );
5329
+ try helper .checkMacro (allocator , pattern_list , "CAST_OR_CALL(X, Y) ((X)(Y))" , "CAST_OR_CALL" );
5306
5330
try helper .checkMacro (allocator , pattern_list , "IGNORE_ME(X) (void)(X)" , "DISCARD" );
5307
5331
try helper .checkMacro (allocator , pattern_list , "IGNORE_ME(X) ((void)(X))" , "DISCARD" );
5308
5332
try helper .checkMacro (allocator , pattern_list , "IGNORE_ME(X) (const void)(X)" , "DISCARD" );
0 commit comments