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

Predicate getTypeForPRValueOrUnknown

Gets the CppType that represents a prvalue of type type, if such a CppType exists. Otherwise, gets CppUnknownType.

Import path

import semmle.code.cpp.ir.internal.CppType
CppType getTypeForPRValueOrUnknown(Type type)