| line |
true |
false |
branch |
|
38
|
2704 |
542 |
return c == '}' || c == ')' || c == ']'; |
|
|
2703 |
1 |
return c == '}' || c == ')' || c == ']'; |
|
|
0 |
2703 |
return c == '}' || c == ')' || c == ']'; |
|
56
|
60 |
181 |
while (*p == ' ' || *p == '\t') p++; |
|
|
0 |
181 |
while (*p == ' ' || *p == '\t') p++; |
|
58
|
30 |
151 |
if (strncmp(p, "if", 2) == 0 && !isalnum((unsigned char)p[2]) && p[2] != '_') |
|
|
4 |
26 |
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
|
15 |
162 |
if (strncmp(p, "ifdef", 5) == 0 && !isalnum((unsigned char)p[5])) |
|
|
15 |
0 |
if (strncmp(p, "ifdef", 5) == 0 && !isalnum((unsigned char)p[5])) |
|
62
|
11 |
151 |
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
|
30 |
121 |
if (strncmp(p, "endif", 5) == 0 && !isalnum((unsigned char)p[5])) |
|
|
30 |
0 |
if (strncmp(p, "endif", 5) == 0 && !isalnum((unsigned char)p[5])) |
|
66
|
5 |
116 |
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 |
115 |
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
|
107716 |
3505 |
while (p < end) { |
|
91
|
60127 |
546 |
if (c == '{' || c == '(' || c == '[') { |
|
|
58774 |
1353 |
if (c == '{' || c == '(' || c == '[') { |
|
|
56 |
58718 |
if (c == '{' || c == '(' || c == '[') { |
|
93
|
58172 |
546 |
} else if (c == '}' || c == ')' || c == ']') { |
|
|
56819 |
1353 |
} else if (c == '}' || c == ')' || c == ']') { |
|
|
56 |
56763 |
} else if (c == '}' || c == ')' || c == ']') { |
|
95
|
0 |
1955 |
if (ctx->depth < 0) ctx->depth = 0; |
|
96
|
77 |
56686 |
} else if (c == '"') { |
|
98
|
414 |
56272 |
} else if (c == '\'') { |
|
100
|
457 |
55815 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '/') { |
|
|
457 |
0 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '/') { |
|
|
3 |
454 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '/') { |
|
103
|
454 |
55815 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '*') { |
|
|
454 |
0 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '*') { |
|
|
446 |
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
|
147 |
681 |
if (c == '\\' && p + 1 < end) { |
|
|
147 |
0 |
if (c == '\\' && p + 1 < end) { |
|
120
|
414 |
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
|
693 |
44856 |
if (c == '*' && p + 1 < end && *(p + 1) == '/') { |
|
|
673 |
20 |
if (c == '*' && p + 1 < end && *(p + 1) == '/') { |
|
|
446 |
227 |
if (c == '*' && p + 1 < end && *(p + 1) == '/') { |
|
174
|
480 |
3689 |
if (content >= eol) { |
|
182
|
262 |
3427 |
if (ctx->state == ESHU_COMMENT_BLOCK) { |
|
193
|
181 |
3246 |
if (eshu_c_is_pp(content)) { |
|
197
|
5 |
176 |
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
|
28 |
148 |
if (pp_dir > 0) |
|
214
|
28 |
120 |
else if (pp_dir < 0) { |
|
216
|
0 |
28 |
if (ctx->pp_depth < 0) ctx->pp_depth = 0; |
|
229
|
543 |
2703 |
if (eshu_c_is_closing(*content)) { |
|
231
|
0 |
543 |
if (indent_depth < 0) indent_depth = 0; |
|
259
|
3992 |
72 |
while (p < end) { |
|
262
|
3989 |
3 |
if (eshu_in_range(cfg, line_num)) { |
|
274
|
3992 |
0 |
if (*p == '\n') p++; |