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

Module NameQualifiers

Provides classes for working with name qualifiers such as the N:: in N::f().

Import path

import semmle.code.cpp.NameQualifiers

Imports

cpp

Provides classes and predicates for working with C/C++ code.

Classes

NameQualifiableElement

A C++ element that can be qualified with a name. This is in practice either an expression or a name qualifier. For example, there are two name-qualifiable elements in the following code, the expression f() (which is qualified by N::), and the qualifier N:: (which is not itself qualified in this example):

NameQualifier

A C++ name qualifier, for example N:: in the following code:

NameQualifyingElement

A C++ element that can qualify a name. For example, the namespaces A and A::B and the class A::C in the following code:

SpecialNameQualifyingElement

A special name-qualifying element. For example: __super.