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

Member predicate C11GenericExpr::getAssociationType

Gets the type of the nth element in the association list of the generic selection.

For example, for

_Generic(e, int: "a", default: "b")

the type of the 0th element is int. In the case of the default element the type will an instance of VoidType.

Type getAssociationType(int n)