← every case · 1000 · comments
a block comment opens and closes on one line and a line comment follows it. Nothing is outside the two but the space between them, so the line is comment and holds no code
| 1 | commentscommentscommentscommentscomments | /* block */ // trailing |
| 2 | codecodecodecodecode | int x = 1; |
stringcommentthe tag around another language
cloc --json cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c
mezura cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c --output json --hide timing --counting content
mezura cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c --output json --hide timing --counting region
scc --format json cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c
the line counts as code, because it opens a block and does not end with that block's closer. Any number of blocks closed on one line ends the same way once a line comment follows them
tokei --output json cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c