diff options
author | Faisal Vali <faisalv@yahoo.com> | 2020-11-10 23:40:12 -0600 |
---|---|---|
committer | Faisal Vali <faisalv@yahoo.com> | 2020-11-10 23:40:12 -0600 |
commit | e4d27932a59fb61aaba3ff7a3ccd1b5bc9215fb9 (patch) | |
tree | 9ff3962d42df521a9950a4689231ea9cda61f11f /clang/lib/Sema/DeclSpec.cpp | |
parent | b8a8ef32762bfe02b10495595e578002b29c8dc8 (diff) | |
download | llvm-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.cpp | 2 |
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( |