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

Member predicate Function::getExplicitExpr

Gets the constant expression that determines whether the function is explicit.

For example, for the following code the result is the expression sizeof(T) == 1:

template<typename T> struct C {
  explicit(sizeof(T) == 1)
  C(const T);
};
Expr getExplicitExpr()