mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
CPP: Additional test cases.
This commit is contained in:
@@ -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 |
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user