Module Declaration

Import path

import semmle.code.cpp.Declaration

Imports

Classes

AccessHolder

A declaration that can potentially have more C++ access rights than its enclosing element. This comprises Class (they have access to their own private members) along with other UserTypes and Function (they can be the target of friend declarations). For example MyClass and myFunction in the following code: ``` class MyClass { public: … };

Declaration

A C/C++ declaration: for example, a variable declaration, a type declaration, or a function declaration.

DeclarationEntry

A C/C++ declaration entry. For example the following code contains five declaration entries: extern int myGlobal; int myVariable; typedef char MyChar; void myFunction(); void myFunction() { // ... } See the comment above Declaration for an explanation of the relationship between Declaration and DeclarationEntry.