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
| Name | Value | Comment |
|---|---|---|
| FirstDecl | 0 | Parsing the first decl in a TU. |
| GlobalFragment | 1 | after 'module;' but before 'module X;' |
| ImportAllowed | 2 | after 'module X;' but before any non-import decl. |
| ImportFinished | 3 | after any non-import decl. |
| PrivateFragment | 4 | after 'module :private;'. |
| NotACXX20Module | 5 | Not a C++20 TU, or an invalid state was found. |