10 #include "../utils/ASTUtils.h"
11 #include "clang/AST/ASTContext.h"
12 #include "clang/ASTMatchers/ASTMatchFinder.h"
20 void CloexecPipe2Check::registerMatchers(MatchFinder *Finder) {
21 registerMatchersImpl(Finder,
22 functionDecl(returns(isInteger()), hasName(
"pipe2"),
23 hasParameter(0, hasType(pointsTo(isInteger()))),
24 hasParameter(1, hasType(isInteger()))));
28 insertMacroFlag(Result,
"O_CLOEXEC", 1);