From 0b6d71fe10d46741a6f50c17b3fc795fd82e27b7 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Mon, 28 Apr 2025 12:50:03 +0300 Subject: [PATCH] [clang][NFC] Convert `Sema::TUFragmentKind` to scoped enum --- clang/include/clang/Sema/Sema.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index ce2aa0a0f064..3df6b06a35da 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -484,6 +484,18 @@ enum class PragmaOptionsAlignKind { Reset // #pragma options align=reset }; +enum class TUFragmentKind { + /// The global module fragment, between 'module;' and a module-declaration. + Global, + /// A normal translation unit fragment. For a non-module unit, this is the + /// entire translation unit. Otherwise, it runs from the module-declaration + /// to the private-module-fragment (if any) or the end of the TU (if not). + Normal, + /// The private module fragment, between 'module :private;' and the end of + /// the translation unit. + Private +}; + /// Sema - This implements semantic analysis and AST building for C. /// \nosubgrouping class Sema final : public SemaBase { @@ -635,18 +647,6 @@ public: // Emit all deferred diagnostics. void emitDeferredDiags(); - enum TUFragmentKind { - /// The global module fragment, between 'module;' and a module-declaration. - Global, - /// A normal translation unit fragment. For a non-module unit, this is the - /// entire translation unit. Otherwise, it runs from the module-declaration - /// to the private-module-fragment (if any) or the end of the TU (if not). - Normal, - /// The private module fragment, between 'module :private;' and the end of - /// the translation unit. - Private - }; - /// This is called before the very first declaration in the translation unit /// is parsed. Note that the ASTContext may have already injected some /// declarations.