← 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 | commentscommentscommentscommentscommentscomments | /* block */ // trailing |
| 2 | codecodecodecodecodecode | int x = 1; |
stringcommentthe tag around another language
cloc --json cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c
--strip-str-comments
cloc --json cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c --strip-str-comments
cloc --json cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c --docstring-as-code
mezura cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/1000-comments/1070-block_comment_closed_then_line_comment/input.c --output json --hide timing --no-default-config --no-local --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