| line |
true |
false |
branch |
|
38
|
2620 |
534 |
return c == '}' || c == ')' || c == ']'; |
|
|
2619 |
1 |
return c == '}' || c == ')' || c == ']'; |
|
|
0 |
2619 |
return c == '}' || c == ')' || c == ']'; |
|
56
|
0 |
139 |
while (*p == ' ' || *p == '\t') p++; |
|
|
0 |
139 |
while (*p == ' ' || *p == '\t') p++; |
|
58
|
28 |
111 |
if (strncmp(p, "if", 2) == 0 && !isalnum((unsigned char)p[2]) && p[2] != '_') |
|
|
4 |
24 |
if (strncmp(p, "if", 2) == 0 && !isalnum((unsigned char)p[2]) && p[2] != '_') |
|
|
4 |
0 |
if (strncmp(p, "if", 2) == 0 && !isalnum((unsigned char)p[2]) && p[2] != '_') |
|
60
|
13 |
122 |
if (strncmp(p, "ifdef", 5) == 0 && !isalnum((unsigned char)p[5])) |
|
|
13 |
0 |
if (strncmp(p, "ifdef", 5) == 0 && !isalnum((unsigned char)p[5])) |
|
62
|
11 |
111 |
if (strncmp(p, "ifndef", 6) == 0 && !isalnum((unsigned char)p[6])) |
|
|
11 |
0 |
if (strncmp(p, "ifndef", 6) == 0 && !isalnum((unsigned char)p[6])) |
|
64
|
28 |
83 |
if (strncmp(p, "endif", 5) == 0 && !isalnum((unsigned char)p[5])) |
|
|
28 |
0 |
if (strncmp(p, "endif", 5) == 0 && !isalnum((unsigned char)p[5])) |
|
66
|
5 |
78 |
if (strncmp(p, "else", 4) == 0 && !isalnum((unsigned char)p[4])) { |
|
|
5 |
0 |
if (strncmp(p, "else", 4) == 0 && !isalnum((unsigned char)p[4])) { |
|
70
|
1 |
77 |
if (strncmp(p, "elif", 4) == 0 && !isalnum((unsigned char)p[4])) { |
|
|
1 |
0 |
if (strncmp(p, "elif", 4) == 0 && !isalnum((unsigned char)p[4])) { |
|
86
|
104342 |
3399 |
while (p < end) { |
|
91
|
58105 |
538 |
if (c == '{' || c == '(' || c == '[') { |
|
|
56792 |
1313 |
if (c == '{' || c == '(' || c == '[') { |
|
|
56 |
56736 |
if (c == '{' || c == '(' || c == '[') { |
|
93
|
56198 |
538 |
} else if (c == '}' || c == ')' || c == ']') { |
|
|
54885 |
1313 |
} else if (c == '}' || c == ')' || c == ']') { |
|
|
56 |
54829 |
} else if (c == '}' || c == ')' || c == ']') { |
|
95
|
0 |
1907 |
if (ctx->depth < 0) ctx->depth = 0; |
|
96
|
77 |
54752 |
} else if (c == '"') { |
|
98
|
408 |
54344 |
} else if (c == '\'') { |
|
100
|
439 |
53905 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '/') { |
|
|
439 |
0 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '/') { |
|
|
3 |
436 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '/') { |
|
103
|
436 |
53905 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '*') { |
|
|
436 |
0 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '*') { |
|
|
428 |
8 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '*') { |
|
110
|
17 |
649 |
if (c == '\\' && p + 1 < end) { |
|
|
17 |
0 |
if (c == '\\' && p + 1 < end) { |
|
112
|
77 |
572 |
} else if (c == '"') { |
|
118
|
141 |
675 |
if (c == '\\' && p + 1 < end) { |
|
|
141 |
0 |
if (c == '\\' && p + 1 < end) { |
|
120
|
408 |
267 |
} else if (c == '\'') { |
|
127
|
0 |
0 |
if (c == '\\' && p + 1 < end) { |
|
|
0 |
0 |
if (c == '\\' && p + 1 < end) { |
|
129
|
0 |
0 |
} else if (c == '\'') { |
|
135
|
663 |
43554 |
if (c == '*' && p + 1 < end && *(p + 1) == '/') { |
|
|
643 |
20 |
if (c == '*' && p + 1 < end && *(p + 1) == '/') { |
|
|
428 |
215 |
if (c == '*' && p + 1 < end && *(p + 1) == '/') { |
|
174
|
478 |
3541 |
if (content >= eol) { |
|
182
|
248 |
3293 |
if (ctx->state == ESHU_COMMENT_BLOCK) { |
|
193
|
139 |
3154 |
if (eshu_c_is_pp(content)) { |
|
197
|
5 |
134 |
if (ctx->cfg.indent_pp) { |
|
198
|
2 |
3 |
if (pp_dir < 0) { |
|
201
|
0 |
2 |
if (ctx->pp_depth < 0) ctx->pp_depth = 0; |
|
203
|
1 |
4 |
if (is_else) { |
|
208
|
2 |
3 |
if (pp_dir > 0) |
|
212
|
26 |
108 |
if (pp_dir > 0) |
|
214
|
26 |
82 |
else if (pp_dir < 0) { |
|
216
|
0 |
26 |
if (ctx->pp_depth < 0) ctx->pp_depth = 0; |
|
229
|
535 |
2619 |
if (eshu_c_is_closing(*content)) { |
|
231
|
0 |
535 |
if (indent_depth < 0) indent_depth = 0; |
|
259
|
3900 |
72 |
while (p < end) { |
|
262
|
3897 |
3 |
if (eshu_in_range(cfg, line_num)) { |
|
274
|
3900 |
0 |
if (*p == '\n') p++; |