CPP: Additional test cases.

This commit is contained in:
Geoffrey White
2018-10-29 14:09:08 +00:00
parent ec2bf914c8
commit 630233fc3e
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
| empty_block.cpp:7:10:7:11 | { ... } | Empty block without comment |
| empty_block.cpp:10:10:11:3 | { ... } | Empty block without comment |
| empty_block.cpp:18:10:19:3 | { ... } | Empty block without comment |
| empty_block.cpp:53:10:53:11 | { ... } | Empty block without comment |
| empty_block.cpp:56:10:56:11 | { ... } | Empty block without comment |

View File

@@ -48,4 +48,10 @@ int f(int x) {
// GOOD (no block)
for (;;) ;
// GOOD (has comment): [FALSE POSITIVE]
if (x) {} // comment
// GOOD (has comment): [FALSE POSITIVE]
if (x) {} // comment
}