| line |
true |
false |
branch |
|
38
|
2780 |
552 |
return c == '}' || c == ')' || c == ']'; |
|
|
2779 |
1 |
return c == '}' || c == ')' || c == ']'; |
|
|
0 |
2779 |
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
|
110498 |
3591 |
while (p < end) { |
|
91
|
62045 |
556 |
if (c == '{' || c == '(' || c == '[') { |
|
|
60638 |
1407 |
if (c == '{' || c == '(' || c == '[') { |
|
|
68 |
60570 |
if (c == '{' || c == '(' || c == '[') { |
|
93
|
60014 |
556 |
} else if (c == '}' || c == ')' || c == ']') { |
|
|
58607 |
1407 |
} else if (c == '}' || c == ')' || c == ']') { |
|
|
68 |
58539 |
} else if (c == '}' || c == ')' || c == ']') { |
|
95
|
0 |
2031 |
if (ctx->depth < 0) ctx->depth = 0; |
|
96
|
81 |
58458 |
} else if (c == '"') { |
|
98
|
440 |
58018 |
} else if (c == '\'') { |
|
100
|
475 |
57543 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '/') { |
|
|
475 |
0 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '/') { |
|
|
3 |
472 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '/') { |
|
103
|
472 |
57543 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '*') { |
|
|
472 |
0 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '*') { |
|
|
464 |
8 |
} else if (c == '/' && p + 1 < end && *(p + 1) == '*') { |
|
110
|
17 |
683 |
if (c == '\\' && p + 1 < end) { |
|
|
17 |
0 |
if (c == '\\' && p + 1 < end) { |
|
112
|
81 |
602 |
} else if (c == '"') { |
|
118
|
161 |
719 |
if (c == '\\' && p + 1 < end) { |
|
|
161 |
0 |
if (c == '\\' && p + 1 < end) { |
|
120
|
440 |
279 |
} 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
|
711 |
45606 |
if (c == '*' && p + 1 < end && *(p + 1) == '/') { |
|
|
691 |
20 |
if (c == '*' && p + 1 < end && *(p + 1) == '/') { |
|
|
464 |
227 |
if (c == '*' && p + 1 < end && *(p + 1) == '/') { |
|
174
|
486 |
3775 |
if (content >= eol) { |
|
182
|
262 |
3513 |
if (ctx->state == ESHU_COMMENT_BLOCK) { |
|
193
|
181 |
3332 |
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
|
553 |
2779 |
if (eshu_c_is_closing(*content)) { |
|
231
|
0 |
553 |
if (indent_depth < 0) indent_depth = 0; |
|
259
|
4084 |
72 |
while (p < end) { |
|
262
|
4081 |
3 |
if (eshu_in_range(cfg, line_num)) { |
|
274
|
4084 |
0 |
if (*p == '\n') p++; |