reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaDeclCXX.cpp
  443   DeclContext *ScopeDC = New->isLocalExternDecl()
  444                              ? New->getLexicalDeclContext()
  445                              : New->getDeclContext();
  452        PrevForDefaultArgs = New->isLocalExternDecl()
  460         !New->isCXXClassMember()) {
  467     if (PrevForDefaultArgs->isLocalExternDecl() != New->isLocalExternDecl()) {
  502     ParmVarDecl *NewParam = New->getParamDecl(p);
  515         CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(New);
  555       if (New->getFriendObjectKind() == Decl::FOK_None ||
  556           !New->getLexicalDeclContext()->isDependentContext()) {
  569       if (New->getDescribedFunctionTemplate()) {
  577       } else if (New->getTemplateSpecializationKind()
  579                  New->getTemplateSpecializationKind() != TSK_Undeclared) {
  590           << (New->getTemplateSpecializationKind() ==TSK_ExplicitSpecialization)
  591           << New->getDeclName()
  593       } else if (New->getDeclContext()->isDependentContext()) {
  605               = dyn_cast<CXXRecordDecl>(New->getDeclContext())) {
  625   if (isa<CXXConstructorDecl>(New) &&
  626       New->getMinRequiredArguments() < Old->getMinRequiredArguments()) {
  627     CXXSpecialMember NewSM = getSpecialMember(cast<CXXMethodDecl>(New)),
  630       ParmVarDecl *NewParam = New->getParamDecl(New->getMinRequiredArguments());
  630       ParmVarDecl *NewParam = New->getParamDecl(New->getMinRequiredArguments());
  642   if (New->getConstexprKind() != Old->getConstexprKind()) {
  643     Diag(New->getLocation(), diag::err_constexpr_redecl_mismatch)
  644         << New << New->getConstexprKind() << Old->getConstexprKind();
  644         << New << New->getConstexprKind() << Old->getConstexprKind();
  647   } else if (!Old->getMostRecentDecl()->isInlined() && New->isInlined() &&
  652              (New->isInlineSpecified() ||
  653               New->getFriendObjectKind() == Decl::FOK_None)) {
  657     Diag(New->getLocation(), diag::err_inline_decl_follows_def) << New;
  657     Diag(New->getLocation(), diag::err_inline_decl_follows_def) << New;
  666   if (isa<CXXDeductionGuideDecl>(New) &&
  667       !New->isFunctionTemplateSpecialization()) {
  668     Diag(New->getLocation(), diag::err_deduction_guide_redeclared);
  678     Diag(New->getLocation(), diag::err_friend_decl_with_def_arg_redeclared);