Lines Matching defs:PVD
2435 const ParmVarDecl *PVD = FD->getParamDecl(i);
2437 if (S.lookup(PVD) == FixitStrategy::Kind::Wontfix)
2439 if (S.lookup(PVD) != FixitStrategy::Kind::Span)
2445 getPointeeTypeText(PVD, SM, LangOpts, &PteTyQuals);
2587 static FixItList fixParamWithSpan(const ParmVarDecl *PVD, const ASTContext &Ctx,
2589 if (hasUnsupportedSpecifiers(PVD, Ctx.getSourceManager())) {
2590 DEBUG_NOTE_DECL_FAIL(PVD, " : has unsupport specifier(s)");
2593 if (PVD->hasDefaultArg()) {
2595 DEBUG_NOTE_DECL_FAIL(PVD, " : has default arg");
2601 PVD, Ctx.getSourceManager(), Ctx.getLangOpts(), &PteTyQualifiers);
2604 DEBUG_NOTE_DECL_FAIL(PVD, " : invalid pointee type");
2608 std::optional<StringRef> PVDNameText = PVD->getIdentifier()->getName();
2611 DEBUG_NOTE_DECL_FAIL(PVD, " : invalid identifier name");
2616 std::optional<std::string> SpanTyText = createSpanTypeForVarDecl(PVD, Ctx);
2624 if (PVD->getType().hasQualifiers())
2625 SS << ' ' << PVD->getType().getQualifiers().getAsString();
2629 return {FixItHint::CreateReplacement(PVD->getSourceRange(), SS.str())};
2756 if (const auto *PVD = dyn_cast<ParmVarDecl>(VD)) {
2757 auto *FD = dyn_cast<clang::FunctionDecl>(PVD->getDeclContext());
2759 // `FD != D` means that `PVD` belongs to a function that is not being
2785 if (const auto *PVD = dyn_cast<ParmVarDecl>(VD))
2786 return fixParamWithSpan(PVD, Ctx, Handler);