1//===--- SemaDeclSpec.cpp - Declaration Specifier Semantic Analysis -------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
--- 331 unchanged lines hidden (view full) ---
340 }
341
342 llvm_unreachable("Invalid TypeSpecType!");
343}
344
345bool Declarator::isStaticMember() {
346 assert(getContext() == MemberContext);
347 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static ||
348 (getName().Kind == UnqualifiedId::IK_OperatorFunctionId &&
349 CXXMethodDecl::isStaticOverloadedOperator(
350 getName().OperatorFunctionId.Operator));
351}
352
353bool DeclSpec::hasTagDefinition() const {
354 if (!TypeSpecOwned)
355 return false;
356 return cast<TagDecl>(getRepAsDecl())->isCompleteDefinition();
357}
358
--- 885 unchanged lines hidden ---
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
--- 331 unchanged lines hidden (view full) ---
340 }
341
342 llvm_unreachable("Invalid TypeSpecType!");
343}
344
345bool Declarator::isStaticMember() {
346 assert(getContext() == MemberContext);
347 return getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static ||
348 (getName().Kind == UnqualifiedId::IK_OperatorFunctionId &&
349 CXXMethodDecl::isStaticOverloadedOperator(
350 getName().OperatorFunctionId.Operator));
351}
352
353bool DeclSpec::hasTagDefinition() const {
354 if (!TypeSpecOwned)
355 return false;
356 return cast<TagDecl>(getRepAsDecl())->isCompleteDefinition();
357}
358
--- 885 unchanged lines hidden ---