Lines Matching refs:PVD
2159 const ParmVarDecl *PVD = FD->getParamDecl(i); in createOverloadsForFixedParams() local
2161 if (S.lookup(PVD) == Strategy::Kind::Wontfix) in createOverloadsForFixedParams()
2163 if (S.lookup(PVD) != Strategy::Kind::Span) in createOverloadsForFixedParams()
2169 getPointeeTypeText(PVD, SM, LangOpts, &PteTyQuals); in createOverloadsForFixedParams()
2310 static FixItList fixParamWithSpan(const ParmVarDecl *PVD, const ASTContext &Ctx, in fixParamWithSpan() argument
2312 if (hasUnsupportedSpecifiers(PVD, Ctx.getSourceManager())) { in fixParamWithSpan()
2313 DEBUG_NOTE_DECL_FAIL(PVD, " : has unsupport specifier(s)"); in fixParamWithSpan()
2316 if (PVD->hasDefaultArg()) { in fixParamWithSpan()
2318 DEBUG_NOTE_DECL_FAIL(PVD, " : has default arg"); in fixParamWithSpan()
2324 PVD, Ctx.getSourceManager(), Ctx.getLangOpts(), &PteTyQualifiers); in fixParamWithSpan()
2327 DEBUG_NOTE_DECL_FAIL(PVD, " : invalid pointee type"); in fixParamWithSpan()
2331 std::optional<StringRef> PVDNameText = PVD->getIdentifier()->getName(); in fixParamWithSpan()
2334 DEBUG_NOTE_DECL_FAIL(PVD, " : invalid identifier name"); in fixParamWithSpan()
2339 std::optional<std::string> SpanTyText = createSpanTypeForVarDecl(PVD, Ctx); in fixParamWithSpan()
2347 if (PVD->getType().hasQualifiers()) in fixParamWithSpan()
2348 SS << ' ' << PVD->getType().getQualifiers().getAsString(); in fixParamWithSpan()
2352 return {FixItHint::CreateReplacement(PVD->getSourceRange(), SS.str())}; in fixParamWithSpan()
2385 if (const auto *PVD = dyn_cast<ParmVarDecl>(VD)) { in fixVariable() local
2386 auto *FD = dyn_cast<clang::FunctionDecl>(PVD->getDeclContext()); in fixVariable()
2414 if (const auto *PVD = dyn_cast<ParmVarDecl>(VD)) in fixVariable() local
2415 return fixParamWithSpan(PVD, Ctx, Handler); in fixVariable()