CodeQL library for C/C++
codeql/cpp-all 2.1.1 (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)