mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Merge pull request #381 from geoffw0/comments
CPP: Fix false positive in EmptyBlock.ql
This commit is contained in:
@@ -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