Contenuto principale

Ast.PreprocInclude Class

Namespace: Ast
Superclasses: AstNodeProperties

Represents the preproc_include nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.PreprocInclude represents the node preproc_include in the syntax tree of your code.

#include <iostream>
#include "myheader.h"
#define AN_INCLUDE "<cstdint>"
#include AN_INCLUDE

int main() {
    std::cout << "hello\n";
    return 0;
}

The three #include lines generate preproc_include nodes in the tree. Each directive in the demo corresponds to a Cpp.PreprocInclude node.

Predicates

expand all

Version History

Introduced in R2026a