10 #include "clang/AST/ASTContext.h" 11 #include "clang/ASTMatchers/ASTMatchFinder.h" 19 void CloexecSocketCheck::registerMatchers(MatchFinder *Finder) {
20 registerMatchersImpl(Finder,
21 functionDecl(isExternC(), returns(isInteger()),
23 hasParameter(0, hasType(isInteger())),
24 hasParameter(1, hasType(isInteger())),
25 hasParameter(2, hasType(isInteger()))));
28 void CloexecSocketCheck::check(
const MatchFinder::MatchResult &Result) {
29 insertMacroFlag(Result,
"SOCK_CLOEXEC", 1);
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//