From a6ac2b32fbab9679c8f2fa97a3b1123e3a9654c8 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Mon, 16 Nov 2020 08:28:21 -0500 Subject: [PATCH] Convert TypeSpecifiersPipe from Specifiers.h to a scoped enum; NFC --- clang/include/clang/Basic/Specifiers.h | 5 +---- clang/lib/Sema/DeclSpec.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/clang/include/clang/Basic/Specifiers.h b/clang/include/clang/Basic/Specifiers.h index cdd67a6..ed468db 100644 --- a/clang/include/clang/Basic/Specifiers.h +++ b/clang/include/clang/Basic/Specifiers.h @@ -46,10 +46,7 @@ namespace clang { TSS_unsigned }; - enum TypeSpecifiersPipe { - TSP_unspecified, - TSP_pipe - }; + enum class TypeSpecifiersPipe { Unspecified, Pipe }; /// Specifies the kind of type. enum TypeSpecifierType { diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp index 0124793..73a6137 100644 --- a/clang/lib/Sema/DeclSpec.cpp +++ b/clang/lib/Sema/DeclSpec.cpp @@ -877,7 +877,7 @@ bool DeclSpec::SetTypePipe(bool isPipe, SourceLocation Loc, } if (isPipe) { - TypeSpecPipe = TSP_pipe; + TypeSpecPipe = static_cast(TypeSpecifiersPipe::Pipe); } return false; } -- 2.7.4