CodeQL library for C/C++
codeql/cpp-all 2.0.1-dev (changelog, source)
Search

Member predicate AbstractIRVariable::isReadOnly

Holds if this variable’s value cannot be changed within a function. Currently used for string literals, but could also apply to const global and static variables.

predicate isReadOnly()