clang 23.0.0git
clang::ExportContextualKeywordInfo Class Reference

Record the previous 'export' keyword info. More...

#include "clang/Lex/Preprocessor.h"

Public Member Functions

 ExportContextualKeywordInfo ()=default
 ExportContextualKeywordInfo (const Token &Tok, bool AtPhysicalStartOfLine)
bool isValid () const
bool isAtPhysicalStartOfLine () const
Token getExportTok () const
void reset ()

Detailed Description

Record the previous 'export' keyword info.

Since P1857R3, the standard introduced several rules to determine whether the 'module', 'export module', 'import', 'export import' is a valid directive introducer. This class is used to record the previous 'export' keyword token, and then handle 'export module' and 'export import'.

Definition at line 146 of file Preprocessor.h.

Constructor & Destructor Documentation

◆ ExportContextualKeywordInfo() [1/2]

clang::ExportContextualKeywordInfo::ExportContextualKeywordInfo ( )
default

◆ ExportContextualKeywordInfo() [2/2]

clang::ExportContextualKeywordInfo::ExportContextualKeywordInfo ( const Token & Tok,
bool AtPhysicalStartOfLine )
inline

Definition at line 152 of file Preprocessor.h.

References Tok.

Member Function Documentation

◆ getExportTok()

Token clang::ExportContextualKeywordInfo::getExportTok ( ) const
inline

Definition at line 157 of file Preprocessor.h.

◆ isAtPhysicalStartOfLine()

bool clang::ExportContextualKeywordInfo::isAtPhysicalStartOfLine ( ) const
inline

Definition at line 156 of file Preprocessor.h.

◆ isValid()

bool clang::ExportContextualKeywordInfo::isValid ( ) const
inline

Definition at line 155 of file Preprocessor.h.

◆ reset()

void clang::ExportContextualKeywordInfo::reset ( )
inline

Definition at line 158 of file Preprocessor.h.


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