10 #include "../utils/ASTUtils.h"
11 #include "clang/AST/ASTContext.h"
12 #include "clang/ASTMatchers/ASTMatchFinder.h"
20 void CloexecEpollCreate1Check::registerMatchers(MatchFinder *Finder) {
22 Finder, functionDecl(returns(isInteger()), hasName(
"epoll_create1"),
23 hasParameter(0, hasType(isInteger()))));
26 void CloexecEpollCreate1Check::check(
const MatchFinder::MatchResult &Result) {
27 insertMacroFlag(Result,
"EPOLL_CLOEXEC", 0);