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

Module Include

Provides classes representing C/C++ #include, #include_next, and #import preprocessor directives.

Import path

import semmle.code.cpp.Include

Imports

Classes

Import

A #import preprocessor directive (used heavily in Objective C, and supported by GCC as an extension in C). For example the following code contains one Import directive: #import <header3.h>

Include

A C/C++ #include, #include_next, or #import preprocessor directive. The following example contains four different Include directives: #include "header.h" #include <string> #include_next <header2.h> #import <header3.h>

IncludeNext

A #include_next preprocessor directive (a non-standard extension to C/C++). For example the following code contains one IncludeNext directive: #include_next <header2.h>