11 #include "../utils/ASTUtils.h" 12 #include "clang/AST/ASTContext.h" 13 #include "clang/ASTMatchers/ASTMatchFinder.h" 21 void CloexecEpollCreate1Check::registerMatchers(MatchFinder *Finder) {
23 Finder, functionDecl(returns(isInteger()), hasName(
"epoll_create1"),
24 hasParameter(0, hasType(isInteger()))));
27 void CloexecEpollCreate1Check::check(
const MatchFinder::MatchResult &Result) {
28 insertMacroFlag(Result,
"EPOLL_CLOEXEC", 0);
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//