Skip to content

Commit 9ca33f3

Browse files
committed
Apply correct query format
1 parent ef8c9be commit 9ca33f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/cert/src/rules/FIO51-CPP/CloseFilesWhenTheyAreNoLongerNeeded.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ predicate filebufAccess(ControlFlowNode node, FileStreamSource fss) {
4040
node.(ExtractionOperatorCall).getFStream() = fss.getAUse() or
4141
// Methods inherited from istream or ostream that access the file stream.
4242
// Exclude is_open as it is not a filebuf access
43-
any(IOStreamFunctionCall call | node = call and not call.getTarget().hasName("is_open")).getFStream() = fss.getAUse()
43+
any(IOStreamFunctionCall call | node = call and not call.getTarget().hasName("is_open"))
44+
.getFStream() = fss.getAUse()
4445
}
4546

4647
/**

0 commit comments

Comments
 (0)