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

Predicate getParameterTypeWithoutTemplateArguments

Gets a type name for the n’th parameter of f without any template arguments.

If canonical = false then the result may be a string representing a type for which the typedefs have been resolved. If canonical = true then the result will be a string representing a type without resolving typedefs.

Import path

import semmle.code.cpp.dataflow.ExternalFlow
string getParameterTypeWithoutTemplateArguments(Function f, int n, boolean canonical)