10 #include "clang/AST/ASTContext.h"
11 #include "clang/ASTMatchers/ASTMatchFinder.h"
17 void CloexecSocketCheck::registerMatchers(MatchFinder *Finder) {
18 registerMatchersImpl(Finder,
19 functionDecl(isExternC(), returns(isInteger()),
21 hasParameter(0, hasType(isInteger())),
22 hasParameter(1, hasType(isInteger())),
23 hasParameter(2, hasType(isInteger()))));
27 insertMacroFlag(Result,
"SOCK_CLOEXEC", 1);