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

Member predicate Variable::getTypeWithAuto

Gets the type of this variable prior to deduction caused by the C++11 auto keyword.

If the type of this variable was not declared with the C++11 auto keyword, then this predicate does not hold.

If the type of this variable is completely auto, then result is an instance of AutoType. For example:

auto four = 4;

If the type of this variable is partially auto, then a descendant of result is an instance of AutoType. For example:

const auto& c = container;

Type getTypeWithAuto()