Lines Matching defs:PVD
3042 const ParmVarDecl *PVD = FD->getParamDecl(i);
3044 if (S.lookup(PVD) == FixitStrategy::Kind::Wontfix)
3046 if (S.lookup(PVD) != FixitStrategy::Kind::Span)
3052 getPointeeTypeText(PVD, SM, LangOpts, &PteTyQuals);
3194 static FixItList fixParamWithSpan(const ParmVarDecl *PVD, const ASTContext &Ctx,
3196 if (hasUnsupportedSpecifiers(PVD, Ctx.getSourceManager())) {
3197 DEBUG_NOTE_DECL_FAIL(PVD, " : has unsupport specifier(s)");
3200 if (PVD->hasDefaultArg()) {
3202 DEBUG_NOTE_DECL_FAIL(PVD, " : has default arg");
3208 PVD, Ctx.getSourceManager(), Ctx.getLangOpts(), &PteTyQualifiers);
3211 DEBUG_NOTE_DECL_FAIL(PVD, " : invalid pointee type");
3215 std::optional<StringRef> PVDNameText = PVD->getIdentifier()->getName();
3218 DEBUG_NOTE_DECL_FAIL(PVD, " : invalid identifier name");
3223 std::optional<std::string> SpanTyText = createSpanTypeForVarDecl(PVD, Ctx);
3231 if (PVD->getType().hasQualifiers())
3232 SS << ' ' << PVD->getType().getQualifiers().getAsString();
3236 return {FixItHint::CreateReplacement(PVD->getSourceRange(), SS.str())};
3363 if (const auto *PVD = dyn_cast<ParmVarDecl>(VD)) {
3364 auto *FD = dyn_cast<clang::FunctionDecl>(PVD->getDeclContext());
3366 // `FD != D` means that `PVD` belongs to a function that is not being
3392 if (const auto *PVD = dyn_cast<ParmVarDecl>(VD))
3393 return fixParamWithSpan(PVD, Ctx, Handler);