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

Member predicate Declaration::getTemplateArgumentKind

Gets the ith template argument value used to instantiate this declaration from a template. When called on a template, this will return the ith template parameter value if it exists.

For example:

template<typename T, T X> class Foo;

Will have getTemplateArgumentKind(1) return T, and no result for getTemplateArgumentKind(0).

`Foo<int, 10> bar;

Will have getTemplateArgumentKind(1) return int, and no result for getTemplateArgumentKind(0).

Locatable getTemplateArgumentKind(int index)