Author: Vlad Serebrennikov Date: 2025-04-28T12:50:26+03:00 New Revision: 0b6d71fe10d46741a6f50c17b3fc795fd82e27b7
URL: https://github.com/llvm/llvm-project/commit/0b6d71fe10d46741a6f50c17b3fc795fd82e27b7 DIFF: https://github.com/llvm/llvm-project/commit/0b6d71fe10d46741a6f50c17b3fc795fd82e27b7.diff LOG: [clang][NFC] Convert `Sema::TUFragmentKind` to scoped enum Added: Modified: clang/include/clang/Sema/Sema.h Removed: ################################################################################ diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index ce2aa0a0f0646..3df6b06a35da0 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 @@ class Sema final : public SemaBase { // 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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits