10 #include "clang/AST/ASTContext.h"
11 #include "clang/ASTMatchers/ASTMatchFinder.h"
19 void CloexecEpollCreateCheck::registerMatchers(MatchFinder *Finder) {
21 Finder, functionDecl(returns(isInteger()), hasName(
"epoll_create"),
22 hasParameter(0, hasType(isInteger()))));
25 void CloexecEpollCreateCheck::check(
const MatchFinder::MatchResult &Result) {
27 "prefer epoll_create() to epoll_create1() "
28 "because epoll_create1() allows "
30 "epoll_create1(EPOLL_CLOEXEC)");