Lines Matching full:vardecl
1407 } else if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
1440 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
1441 const VarDecl *First = VD->getFirstDecl();
1475 if (!isa<VarDecl>(D) || isa<ParmVarDecl>(D) || isa<ImplicitParamDecl>(D))
1479 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
1567 if (isa<VarDecl>(D) && cast<VarDecl>(D)->isExceptionVariable())
2073 if (VarDecl *VD = dyn_cast<VarDecl>(D))
2265 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) {
2266 const VarDecl *Def = VD->getDefinition();
2312 VarDecl *VD = cast<VarDecl>(New);
2313 unsigned Diag = cast<VarDecl>(Def)->isThisDeclarationADefinition() ==
2314 VarDecl::TentativeDefinition
2325 if (const VarDecl *VD = dyn_cast<VarDecl>(Def)) {
2327 if (VD->isThisDeclarationADefinition() != VarDecl::Definition) {
3256 void Sema::MergeVarDeclTypes(VarDecl *New, VarDecl *Old,
3344 static bool mergeTypeWithPrevious(Sema &S, VarDecl *NewVD, VarDecl *OldVD,
3381 void Sema::MergeVarDecl(VarDecl *New, LookupResult &Previous) {
3392 VarDecl *Old = nullptr;
3404 Old = dyn_cast<VarDecl>(Previous.getFoundDecl());
3408 if (checkUsingShadowRedecl<VarDecl>(*this, Shadow, New))
3459 VarDecl *MostRecent = Old->getMostRecentDecl();
3550 << New->getDeclName() << (New->getTLSKind() == VarDecl::TLS_Dynamic);
3556 VarDecl *Def;
3558 New->isThisDeclarationADefinition() == VarDecl::Definition &&
4061 /// a VarDecl::StorageClass. Any error reporting is up to the caller:
4067 "Parser allowed 'typedef' as storage class VarDecl.");
4259 else if (isa<VarDecl>(Mem))
4319 Anon = VarDecl::Create(Context, Owner,
4351 if (VarDecl *NewVD = dyn_cast<VarDecl>(Anon)) {
5360 if (VarDecl *var = dyn_cast<VarDecl>(decl)) {
5385 if (VarDecl *var = dyn_cast<VarDecl>(decl)) {
5418 if (auto *VD = dyn_cast<VarDecl>(&ND)) {
5442 auto *VD = dyn_cast<VarDecl>(&ND);
5492 auto *VD = dyn_cast<VarDecl>(OldDecl);
5524 if (const auto *VD = dyn_cast<VarDecl>(NewDecl))
5619 static bool shouldConsiderLinkage(const VarDecl *VD) {
5692 if (const auto *VD = dyn_cast<VarDecl>(D))
5811 VarDecl *NewVD = nullptr;
5815 NewVD = VarDecl::Create(Context, DC, D.getLocStart(),
5935 NewVD = cast<VarDecl>(Res.get());
5938 NewVD = VarDecl::Create(Context, DC, D.getLocStart(),
6094 // check the VarDecl itself.
6295 /// This method is called whenever a VarDecl is added to a "useful"
6301 void Sema::CheckShadow(Scope *S, VarDecl *D, const LookupResult& R) {
6317 if (!isa<VarDecl>(ShadowedDecl) && !isa<FieldDecl>(ShadowedDecl))
6326 if (VarDecl *shadowedVar = dyn_cast<VarDecl>(ShadowedDecl))
6375 void Sema::CheckShadow(Scope *S, VarDecl *D) {
6411 if (!isa<VarDecl>(ND))
6421 if (isa<VarDecl>(*I)) {
6431 if (isa<VarDecl>(*I)) {
6453 Prev = cast<VarDecl>(Prev)->getFirstDecl();
6502 void Sema::CheckVariableDeclarationType(VarDecl *NewVD) {
6699 bool Sema::CheckVariableDeclaration(VarDecl *NewVD, LookupResult &Previous) {
9044 } else if (cast<VarDecl>(OrigDecl)->isStaticLocal()) {
9075 if (!DirectInit && !cast<VarDecl>(OrigDecl)->getType()->isRecordType())
9086 QualType Sema::deduceVarTypeFromInitializer(VarDecl *VDecl,
9184 CorrectDelayedTyposInExpr(Init, dyn_cast_or_null<VarDecl>(RealDecl));
9196 VarDecl *VDecl = dyn_cast<VarDecl>(RealDecl);
9233 if (VarDecl *Old = VDecl->getPreviousDecl()) {
9279 VarDecl *Def;
9588 // direct initializer using VarDecl::getInitStyle().
9599 VDecl->setInitStyle(VarDecl::CallInit);
9602 VDecl->setInitStyle(VarDecl::ListInit);
9616 VarDecl *VD = dyn_cast<VarDecl>(D);
9654 if (VarDecl *Var = dyn_cast<VarDecl>(RealDecl)) {
9702 case VarDecl::Definition:
9712 case VarDecl::DeclarationOnly:
9738 case VarDecl::TentativeDefinition:
9866 Var->setInitStyle(VarDecl::CallInit);
9874 VarDecl *VD = dyn_cast<VarDecl>(D);
9936 cast<VarDecl>(Var)->setCXXForRangeDecl(true);
9942 void Sema::CheckCompleteVariableDeclaration(VarDecl *var) {
9973 VarDecl *prev = var->getPreviousDecl();
9981 if (var->getTLSKind() == VarDecl::TLS_Static) {
10115 static bool hasDependentAlignment(VarDecl *VD) {
10131 VarDecl *VD = dyn_cast_or_null<VarDecl>(ThisDecl);
10165 // Grab the dllimport or dllexport attribute off of the VarDecl.
10300 VarDecl *DeducedDecl = nullptr;
10302 if (VarDecl *D = dyn_cast<VarDecl>(Group[i])) {
10801 VarDecl *VD = C.getCapturedVar();
10977 if (const VarDecl *NRVOCandidate = Returns[I]->getNRVOCandidate()) {
14724 if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) {
14758 if (PrevDecl && (isa<FunctionDecl>(PrevDecl) || isa<VarDecl>(PrevDecl))) {