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