Lines Matching full:auto
55 decltype(auto) callsName(const char *FunctionName) { in callsName()
59 decltype(auto) equalsBoundArgDecl(int ArgIdx, const char *DeclName) { in equalsBoundArgDecl()
64 decltype(auto) bindAssignmentToDecl(const char *DeclName) { in bindAssignmentToDecl()
74 if (const auto* ND = dyn_cast<NamedDecl>(D)) { in isTest()
79 if (const auto *OD = dyn_cast<ObjCMethodDecl>(D)) { in isTest()
80 if (const auto *CD = dyn_cast<ObjCContainerDecl>(OD->getParent())) { in isTest()
90 static auto findGCDAntiPatternWithSemaphore() -> decltype(compoundStmt()) { in findGCDAntiPatternWithSemaphore()
93 auto SemaphoreCreateM = callExpr(allOf( in findGCDAntiPatternWithSemaphore()
97 auto SemaphoreBindingM = anyOf( in findGCDAntiPatternWithSemaphore()
103 auto HasBlockArgumentM = hasAnyArgument(hasType( in findGCDAntiPatternWithSemaphore()
107 auto ArgCallsSignalM = hasAnyArgument(stmt(hasDescendant(callExpr( in findGCDAntiPatternWithSemaphore()
113 auto HasBlockAndCallsSignalM = allOf(HasBlockArgumentM, ArgCallsSignalM); in findGCDAntiPatternWithSemaphore()
115 auto HasBlockCallingSignalM = in findGCDAntiPatternWithSemaphore()
122 auto SemaphoreWaitM = forEachDescendant( in findGCDAntiPatternWithSemaphore()
134 static auto findGCDAntiPatternWithGroup() -> decltype(compoundStmt()) { in findGCDAntiPatternWithGroup()
137 auto DispatchGroupCreateM = callExpr(callsName("dispatch_group_create")); in findGCDAntiPatternWithGroup()
139 auto GroupBindingM = anyOf( in findGCDAntiPatternWithGroup()
145 auto GroupEnterM = forEachDescendant( in findGCDAntiPatternWithGroup()
149 auto HasBlockArgumentM = hasAnyArgument(hasType( in findGCDAntiPatternWithGroup()
153 auto ArgCallsSignalM = hasAnyArgument(stmt(hasDescendant(callExpr( in findGCDAntiPatternWithGroup()
159 auto HasBlockAndCallsLeaveM = allOf(HasBlockArgumentM, ArgCallsSignalM); in findGCDAntiPatternWithGroup()
161 auto AcceptsBlockM = in findGCDAntiPatternWithGroup()
168 auto GroupWaitM = forEachDescendant( in findGCDAntiPatternWithGroup()
184 const auto *SW = Nodes.getNodeAs<CallExpr>(WarnAtNode); in emitDiagnostics()
211 auto SemaphoreMatcherM = findGCDAntiPatternWithSemaphore(); in checkASTCodeBody()
212 auto Matches = match(SemaphoreMatcherM, *D->getBody(), AM.getASTContext()); in checkASTCodeBody()
216 auto GroupMatcherM = findGCDAntiPatternWithGroup(); in checkASTCodeBody()