Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
CodeQL library for C/C++
codeql/cpp-all 5.0.0 (changelog, source)

Member predicate C11GenericExpr::isSelectedAssociation

Holds if the nth element of the association list of the generic selection is the one whose expression was selected.

For example, with e of type int and

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

this holds for 0.

predicate isSelectedAssociation(int n)