class Preprocessor::ImportSeq
Declaration
class Preprocessor::ImportSeq { /* full declaration omitted */ };
Description
A position within a C++20 import-seq.
Declared at: clang/include/clang/Lex/Preprocessor.h:324
Member Variables
- private clang::Preprocessor::ImportSeq::State S
- private bool AfterHeaderName = false
- Whether we're in the pp-import-suffix following the header-name in a pp-import. If so, a close-brace is not sufficient to end the top-level-token-seq of an import-seq.
Method Overview
- public ImportSeq(clang::Preprocessor::ImportSeq::State S)
- public bool afterImportSeq()
- public bool afterTopLevelSeq()
- public bool atTopLevel()
- public void handleCloseBrace()
- public void handleCloseBracket()
- public void handleExport()
- public void handleHeaderName()
- public void handleImport()
- public void handleMisc()
- public void handleOpenBracket()
- public void handleSemi()
Methods
¶ImportSeq(clang::Preprocessor::ImportSeq::State S)
ImportSeq(clang::Preprocessor::ImportSeq::State S)
Declared at: clang/include/clang/Lex/Preprocessor.h:334
Parameters
- clang::Preprocessor::ImportSeq::State S
¶bool afterImportSeq()
bool afterImportSeq()
Declared at: clang/include/clang/Lex/Preprocessor.h:388
¶bool afterTopLevelSeq()
bool afterTopLevelSeq()
Declared at: clang/include/clang/Lex/Preprocessor.h:389
¶bool atTopLevel()
bool atTopLevel()
Declared at: clang/include/clang/Lex/Preprocessor.h:387
¶void handleCloseBrace()
void handleCloseBrace()
Description
Saw a close brace.
Declared at: clang/include/clang/Lex/Preprocessor.h:345
¶void handleCloseBracket()
void handleCloseBracket()
Description
Saw any kind of close bracket other than '}'.
Declared at: clang/include/clang/Lex/Preprocessor.h:341
¶void handleExport()
void handleExport()
Description
Saw an 'export' identifier.
Declared at: clang/include/clang/Lex/Preprocessor.h:359
¶void handleHeaderName()
void handleHeaderName()
Description
Saw a 'header-name' token; do not recognize any more 'import' tokens until we reach a top-level semicolon.
Declared at: clang/include/clang/Lex/Preprocessor.h:375
¶void handleImport()
void handleImport()
Description
Saw an 'import' identifier.
Declared at: clang/include/clang/Lex/Preprocessor.h:366
¶void handleMisc()
void handleMisc()
Description
Saw any other token.
Declared at: clang/include/clang/Lex/Preprocessor.h:382
¶void handleOpenBracket()
void handleOpenBracket()
Description
Saw any kind of open bracket.
Declared at: clang/include/clang/Lex/Preprocessor.h:337
¶void handleSemi()
void handleSemi()
Description
Saw a semicolon.
Declared at: clang/include/clang/Lex/Preprocessor.h:351