From efc82c4ad2bcb256a4f4c20238d08cd3afba4d2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Sch=C3=BCtt?= Date: Wed, 23 Dec 2020 16:56:00 +0100 Subject: [NFC, Refactor] Modernize StorageClass from Specifiers.h to a scoped enum (II) Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D93765 --- clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp') diff --git a/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp b/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp index b7c1e69..ae1ba80 100644 --- a/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp +++ b/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp @@ -58,8 +58,8 @@ class InterfaceStubFunctionsConsumer : public ASTConsumer { if (isa(Parent) || isa(Parent)) return true; - if ((VD->getStorageClass() == StorageClass::SC_Extern) || - (VD->getStorageClass() == StorageClass::SC_Static && + if ((VD->getStorageClass() == StorageClass::Extern) || + (VD->getStorageClass() == StorageClass::Static && VD->getParentFunctionOrMethod() == nullptr)) return true; } @@ -75,7 +75,7 @@ class InterfaceStubFunctionsConsumer : public ASTConsumer { if (MD->isDependentContext() || !MD->hasBody()) return true; } - if (FD->getStorageClass() == StorageClass::SC_Static) + if (FD->getStorageClass() == StorageClass::Static) return true; } return false; -- cgit v1.1