← every case · 5000 · line splices
a block comment closes and a line comment opens on the same line, with a space between the two. That space is not code, so the splice ending the line still carries the comment on
| 1 | codecodecodecodecodecodecode | int a = 1; |
| 2 | commentscommentscommentscommentscommentscommentscomments | /* block */ // trailing \ |
| 3 | commentscommentscommentscommentscommentscommentscomments | int x = 1; |
| 4 | codecodecodecodecodecodecode | int y = 2; |
stringcommentthe tag around another language
a block comment closing earlier on the line changes nothing: the line comment after it takes its line break with it and stops there, so the line spliced onto it is joined to that line and counts as code
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5050-line_splice_after_a_closed_block_comment/input.c
--strip-str-comments
a block comment closing earlier on the line changes nothing: the line comment after it takes its line break with it and stops there, so the line spliced onto it is joined to that line and counts as code
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5050-line_splice_after_a_closed_block_comment/input.c --strip-str-comments
a block comment closing earlier on the line changes nothing: the line comment after it takes its line break with it and stops there, so the line spliced onto it is joined to that line and counts as code
cloc --json --config /tmp/linejudge-empty-file cases/5000-line_splices/5050-line_splice_after_a_closed_block_comment/input.c --docstring-as-code
codestats cases/5000-line_splices/5050-line_splice_after_a_closed_block_comment/input.c --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/5000-line_splices/5050-line_splice_after_a_closed_block_comment/input.c --output json --hide timing --no-default-config --no-local --counting content
mezura cases/5000-line_splices/5050-line_splice_after_a_closed_block_comment/input.c --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/5000-line_splices/5050-line_splice_after_a_closed_block_comment/input.c
two faults on one line, so it loses two. The line reads as code, which case 1070 holds on its own, and the splice does not carry, which case 5030 holds
tokei --output json cases/5000-line_splices/5050-line_splice_after_a_closed_block_comment/input.c