clang 22.0.0git
clang::dependency_directives_scan::Directive Struct Reference

Represents a directive that's lexed as part of the dependency directives scanning. More...

#include "clang/Lex/DependencyDirectivesScanner.h"

Public Member Functions

 Directive ()=default
 Directive (DirectiveKind K, ArrayRef< Token > Tokens)

Public Attributes

ArrayRef< TokenTokens
DirectiveKind Kind = pp_none
 The kind of token.

Detailed Description

Represents a directive that's lexed as part of the dependency directives scanning.

It's used to track various preprocessor directives that could potentially have an effect on the dependencies.

Definition at line 95 of file DependencyDirectivesScanner.h.

Constructor & Destructor Documentation

◆ Directive() [1/2]

clang::dependency_directives_scan::Directive::Directive ( )
default

◆ Directive() [2/2]

clang::dependency_directives_scan::Directive::Directive ( DirectiveKind K,
ArrayRef< Token > Tokens )
inline

Definition at line 102 of file DependencyDirectivesScanner.h.

References Kind, and Tokens.

Member Data Documentation

◆ Kind

DirectiveKind clang::dependency_directives_scan::Directive::Kind = pp_none

The kind of token.

Definition at line 99 of file DependencyDirectivesScanner.h.

Referenced by Directive(), and clang::printDependencyDirectivesAsSource().

◆ Tokens

ArrayRef<Token> clang::dependency_directives_scan::Directive::Tokens

The documentation for this struct was generated from the following file: