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

References

tools/clang/tools/extra/clang-tidy/readability/RedundantDeclarationCheck.cpp
   42   const auto *Prev = D->getPreviousDecl();
   47   if (Prev->getLocation() == D->getLocation())
   50       (D->getLocation().isMacroID() || Prev->getLocation().isMacroID()))
   60       !SM.isInMainFile(D->getLocation()) &&
   61       !SM.isWrittenInSameFile(Prev->getLocation(), D->getLocation());
   64   if (const auto *VD = dyn_cast<VarDecl>(D)) {
   67       if (Other != D && Other->getBeginLoc() == VD->getBeginLoc()) {
   75       D->getSourceRange().getEnd(), 0, SM, Result.Context->getLangOpts());
   77     auto Diag = diag(D->getLocation(), "redundant %0 declaration") << D;
   77     auto Diag = diag(D->getLocation(), "redundant %0 declaration") << D;
   80           SourceRange(D->getSourceRange().getBegin(), EndLoc));