Module Function

Import path

semmle.code.cpp.Function

Imports

Classes

BuiltInFunction

A GCC built-in function. For example: __builtin___memcpy_chk.

ConstMemberFunction

A const C++ member function [N4140 9.3.1/4]. A const function does not modify the state of its class. For example: int day() const { return d; }

Constructor

A C++ constructor [N4140 12.1].

ConversionConstructor

A C++ constructor that also defines an implicit conversion.

ConversionOperator

A C++ conversion operator [N4140 12.3.2].

CopyAssignmentOperator

A C++ copy assignment operator, such as T& T::operator=(const T&) [N4140 12.8].

CopyConstructor

A C++ copy constructor, such as T::T(const T&) [N4140 12.8].

Destructor

A C++ destructor [N4140 12.4].

Function

A C/C++ function [N4140 8.3.5]. Both member functions and non-member functions are included.

FunctionDeclarationEntry

A particular declaration or definition of a C/C++ function.

FunctionTemplateInstantiation

A function that is an instantiation of a template.

FunctionTemplateSpecialization

An explicit specialization of a C++ function template. For example: template <> void f<int*>(int *).

ImplicitConversionFunction

A function that defines an implicit conversion.

MemberFunction

A C++ function declared as a member of a class [N4140 9.3]. This includes static member functions.

MoveAssignmentOperator

A C++ move assignment operator, such as T& T::operator=(T&&) [N4140 12.8].

MoveConstructor

A C++ move constructor, such as T::T(T&&) [N4140 12.8].

NoArgConstructor

A C++ constructor that takes no arguments (‘default’ constructor). This is the constructor that is invoked when no initializer is given.

Operator

A C++ user-defined operator [N4140 13.5].

PureVirtualFunction

A C++ pure virtual function [N4140 10.4].

TemplateFunction

A C++ function which has a non-empty template argument list.

TopLevelFunction

A C/C++ non-member function (a function that is not a member of any class).

VirtualFunction

A C++ virtual function.