CodeQL library for C/C++
codeql/cpp-all 4.0.1 (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

An Objective C #import preprocessor directive (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>

TypeLibraryImport

A Microsoft #import preprocessor directive for importing a type library. For example the following code contains one TypeLibraryImport directive: #import "library.tlb"