aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2020-11-10 23:40:12 -0600
committerFaisal Vali <faisalv@yahoo.com>2020-11-10 23:40:12 -0600
commite4d27932a59fb61aaba3ff7a3ccd1b5bc9215fb9 (patch)
tree9ff3962d42df521a9950a4689231ea9cda61f11f /clang/lib/Sema/DeclSpec.cpp
parentb8a8ef32762bfe02b10495595e578002b29c8dc8 (diff)
downloadllvm-e4d27932a59fb61aaba3ff7a3ccd1b5bc9215fb9.zip
llvm-e4d27932a59fb61aaba3ff7a3ccd1b5bc9215fb9.tar.gz
llvm-e4d27932a59fb61aaba3ff7a3ccd1b5bc9215fb9.tar.bz2
[NFC, Refactor] Rename the (scoped) enum DeclaratorContext's enumerators to remove duplication
Since these are scoped enumerators, they have to be prefixed by DeclaratorContext, so lets remove Context from the name, and return some characters to the multiverse. Patch was reviewed here: https://reviews.llvm.org/D91011 Thank you to aaron, bruno, wyatt and barry for indulging me.
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r--clang/lib/Sema/DeclSpec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index b139855..8831cb5 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/lib/Sema/DeclSpec.cpp
@@ -408,7 +408,7 @@ bool Declarator::isDeclarationOfFunction() const {
}
bool Declarator::isStaticMember() {
- assert(getContext() == DeclaratorContext::MemberContext);
+ assert(getContext() == DeclaratorContext::Member);
return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static ||
(getName().Kind == UnqualifiedIdKind::IK_OperatorFunctionId &&
CXXMethodDecl::isStaticOverloadedOperator(