mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
9 lines
165 B
Plaintext
9 lines
165 B
Plaintext
import cpp
|
|
|
|
predicate isEmpty(Block block) {
|
|
block.isEmpty()
|
|
}
|
|
|
|
from IfStmt ifstmt
|
|
where isEmpty(ifstmt.getThen())
|
|
select ifstmt, "This if-statement is redundant." |