11 #include "clang/AST/ASTContext.h" 12 #include "clang/ASTMatchers/ASTMatchFinder.h" 20 void CloexecEpollCreateCheck::registerMatchers(MatchFinder *Finder) {
22 Finder, functionDecl(returns(isInteger()), hasName(
"epoll_create"),
23 hasParameter(0, hasType(isInteger()))));
26 void CloexecEpollCreateCheck::check(
const MatchFinder::MatchResult &Result) {
28 "prefer epoll_create() to epoll_create1() " 29 "because epoll_create1() allows " 31 "epoll_create1(EPOLL_CLOEXEC)");
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//