@@ -484,6 +484,18 @@ enum class PragmaOptionsAlignKind {
484
484
Reset // #pragma options align=reset
485
485
};
486
486
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
+
487
499
/// Sema - This implements semantic analysis and AST building for C.
488
500
/// \nosubgrouping
489
501
class Sema final : public SemaBase {
@@ -635,18 +647,6 @@ class Sema final : public SemaBase {
635
647
// Emit all deferred diagnostics.
636
648
void emitDeferredDiags();
637
649
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
-
650
650
/// This is called before the very first declaration in the translation unit
651
651
/// is parsed. Note that the ASTContext may have already injected some
652
652
/// declarations.
0 commit comments