@@ -484,6 +484,18 @@ enum class PragmaOptionsAlignKind {
484484 Reset // #pragma options align=reset
485485};
486486
487+ enum class TUFragmentKind {
488+ /// The global module fragment, between 'module;' and a module-declaration.
489+ Global,
490+ /// A normal translation unit fragment. For a non-module unit, this is the
491+ /// entire translation unit. Otherwise, it runs from the module-declaration
492+ /// to the private-module-fragment (if any) or the end of the TU (if not).
493+ Normal,
494+ /// The private module fragment, between 'module :private;' and the end of
495+ /// the translation unit.
496+ Private
497+ };
498+
487499/// Sema - This implements semantic analysis and AST building for C.
488500/// \nosubgrouping
489501class Sema final : public SemaBase {
@@ -635,18 +647,6 @@ class Sema final : public SemaBase {
635647 // Emit all deferred diagnostics.
636648 void emitDeferredDiags();
637649
638- enum TUFragmentKind {
639- /// The global module fragment, between 'module;' and a module-declaration.
640- Global,
641- /// A normal translation unit fragment. For a non-module unit, this is the
642- /// entire translation unit. Otherwise, it runs from the module-declaration
643- /// to the private-module-fragment (if any) or the end of the TU (if not).
644- Normal,
645- /// The private module fragment, between 'module :private;' and the end of
646- /// the translation unit.
647- Private
648- };
649-
650650 /// This is called before the very first declaration in the translation unit
651651 /// is parsed. Note that the ASTContext may have already injected some
652652 /// declarations.
0 commit comments