enum class Sema::ModuleImportState

Description

An enumeration to represent the transition of states in parsing module fragments and imports. If we are not parsing a C++20 TU, or we find an error in state transition, the state is set to NotACXX20Module.

Declared at: clang/include/clang/Sema/Sema.h:3079

Enumerators

NameValueComment
FirstDecl0Parsing the first decl in a TU.
GlobalFragment1after 'module;' but before 'module X;'
ImportAllowed2after 'module X;' but before any non-import decl.
ImportFinished3after any non-import decl.
PrivateFragment4after 'module :private;'.
NotACXX20Module5Not a C++20 TU, or an invalid state was found.