CodeQL library for C/C++
Search

Module Comments

Provides classes representing C and C++ comments.

Import path

import semmle.code.cpp.Comments

Imports

Element

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

Location

Provides classes and predicates for locations in the source code.

Classes

CStyleComment

A C style comment (one which starts with /*).

Comment

A C/C++ comment. For example the comment in the following code: // C++ style single-line comment or a C style comment (which starts with /*).

CppStyleComment

A CPP style comment. For example the comment in the following code: // C++ style single-line comment