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

Member predicate IRVariable::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()