Merge pull request #381 from geoffw0/comments

CPP: Fix false positive in EmptyBlock.ql
This commit is contained in:
Robert Marsh
2018-10-29 15:35:08 -07:00
committed by GitHub
3 changed files with 34 additions and 0 deletions

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
}