CodeQL library for C/C++
Search

Module File

Provides predicates for identifying function calls that open or close a file.

Import path

import semmle.code.cpp.commons.File

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Predicates

fcloseCall

A call to a library function that closes a file.

fopenCall

A call to a library function that opens a file.