← every case · 1000 · comments

1030-brace_and_trailing_comment

a line holding only a brace and a comment. The brace is not content, and the comment still is

read ascloc.defaultmezura.contentmezura.regionscc.defaulttokei.default
input.c
1codeint main(void) {
2code return 0;
3code} // end of main

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask3 lines · 0 blanks · 3 code · 0 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

cloc --json cases/1000-comments/1030-brace_and_trailing_comment/input.c

mezura.content ✓ agrees
the rules ask3 lines · 2 code · 1 comments · 0 extra
it answers3 lines · 2 code · 1 comments · 0 extra

mezura cases/1000-comments/1030-brace_and_trailing_comment/input.c --output json --hide timing --counting content

mezura.region ✓ agrees
the rules ask3 lines · 0 blanks · 3 code · 0 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

mezura cases/1000-comments/1030-brace_and_trailing_comment/input.c --output json --hide timing --counting region

scc.default ✓ agrees
the rules ask3 lines · 0 blanks · 3 code · 0 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

scc --format json cases/1000-comments/1030-brace_and_trailing_comment/input.c

tokei.default ✓ agrees
the rules ask3 lines · 0 blanks · 3 code · 0 comments
it answers3 lines · 0 blanks · 3 code · 0 comments

tokei --output json cases/1000-comments/1030-brace_and_trailing_comment/input.c