Lines Matching defs:Variable
112 const auto *Variable = Result.Nodes.getNodeAs<VarDecl>("local-value");
122 TemplateDiagnosticsCache.contains(Variable->getBeginLoc()))
126 if (Variable->getType()->isReferenceType())
128 if (Variable->getType()->isPointerType())
130 if (Variable->getType()->isArrayType()) {
131 if (const auto *ArrayT = dyn_cast<ArrayType>(Variable->getType())) {
143 Variable->getType()->getPointeeType()->isPointerType() &&
157 if (ScopesCache[LocalScope]->isMutated(Variable))
160 auto Diag = diag(Variable->getBeginLoc(),
162 << Variable << Variable->getType();
164 TemplateDiagnosticsCache.insert(Variable->getBeginLoc());
175 Diag << addQualifierToVarDecl(*Variable, *Result.Context, Qualifiers::Const,
184 Diag << addQualifierToVarDecl(*Variable, *Result.Context, Qualifiers::Const,
192 Diag << addQualifierToVarDecl(*Variable, *Result.Context,