CodeQL library for C/C++
Search

Module Namespace

Provides classes for modeling namespaces, using directives and using declarations.

Import path

import semmle.code.cpp.Namespace

Imports

Element

Provides the Element class, which is the base class for all classes representing C or C++ program elements.

MetricNamespace
Type

Provides a hierarchy of classes for modeling C/C++ types.

Classes

GlobalNamespace

The C/C++ global namespace.

Namespace

A C++ namespace. For example the (single) namespace A in the following code: ``` namespace A { // … }

NamespaceDeclarationEntry

A declaration of (part of) a C++ namespace. This corresponds to a single namespace N { ... } occurrence in the source code. For example the two mentions of A in the following code: ``` namespace A { // … }

StdNamespace

The C++ std:: namespace.

UsingDeclarationEntry

A C++ using declaration. For example: using std::string;

UsingDirectiveEntry

A C++ using directive. For example: using namespace std;

UsingEntry

A C++ using directive or using declaration.