• Home
  • Raw
  • Download

Lines Matching refs:VD

568     if (const auto *VD = dyn_cast_or_null<VarDecl>(D)) {  in VisitDeclStmt()  local
569 const Expr *E = VD->getInit(); in VisitDeclStmt()
572 QualType T = VD->getType(); in VisitDeclStmt()
573 if (T.isTrivialType(VD->getASTContext())) { in VisitDeclStmt()
574 Ctx = VMap->addDefinition(VD, E, Ctx); in VisitDeclStmt()
1141 static StringRef ClassifyDiagnostic(const ValueDecl *VD) { in ClassifyDiagnostic() argument
1142 assert(VD && "No ValueDecl passed"); in ClassifyDiagnostic()
1145 return ClassifyDiagnostic(VD->getType()); in ClassifyDiagnostic()
1152 if (const ValueDecl *VD = getValueDecl(A->getArg())) in ClassifyDiagnostic() local
1153 return ClassifyDiagnostic(VD); in ClassifyDiagnostic()
1162 if (const ValueDecl *VD = getValueDecl(Arg)) in ClassifyDiagnostic() local
1163 return ClassifyDiagnostic(VD); in ClassifyDiagnostic()
1173 auto *VD = P->clangDecl(); in inCurrentScope() local
1174 if (VD) in inCurrentScope()
1175 return VD->getDeclContext() == CurrentMethod->getDeclContext(); in inCurrentScope()
1479 void handleCall(Expr *Exp, const NamedDecl *D, VarDecl *VD = nullptr);
1595 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()->getCanonicalDecl()); in checkAccess() local
1596 if (VD && VD->isLocalVarDecl() && VD->getType()->isReferenceType()) { in checkAccess()
1597 if (const auto *E = VD->getInit()) { in checkAccess()
1687 void BuildLockset::handleCall(Expr *Exp, const NamedDecl *D, VarDecl *VD) { in handleCall() argument
1696 if (VD) { in handleCall()
1713 A, Exp, D, VD); in handleCall()
1726 Analyzer->getMutexIDs(AssertLocks, A, Exp, D, VD); in handleCall()
1738 Analyzer->getMutexIDs(AssertLocks, A, Exp, D, VD); in handleCall()
1751 Analyzer->getMutexIDs(GenericLocksToRemove, A, Exp, D, VD); in handleCall()
1753 Analyzer->getMutexIDs(SharedLocksToRemove, A, Exp, D, VD); in handleCall()
1755 Analyzer->getMutexIDs(ExclusiveLocksToRemove, A, Exp, D, VD); in handleCall()
1771 A, Exp, D, VD); in handleCall()
1802 SourceLocation MLoc = VD->getLocation(); in handleCall()
1803 DeclRefExpr DRE(VD, false, VD->getType(), VK_LValue, VD->getLocation()); in handleCall()
1986 if (VarDecl *VD = dyn_cast_or_null<VarDecl>(D)) { in VisitDeclStmt() local
1987 Expr *E = VD->getInit(); in VisitDeclStmt()
1996 handleCall(CE, CtorD, VD); in VisitDeclStmt()
2313 VarDecl *VD = const_cast<VarDecl*>(AD.getVarDecl()); in runAnalysis() local
2314 DeclRefExpr DRE(VD, false, VD->getType().getNonReferenceType(), in runAnalysis()