10 #include "../utils/ASTUtils.h" 11 #include "clang/AST/ASTContext.h" 12 #include "clang/ASTMatchers/ASTMatchFinder.h" 20 void CloexecInotifyInit1Check::registerMatchers(MatchFinder *Finder) {
22 Finder, functionDecl(returns(isInteger()), hasName(
"inotify_init1"),
23 hasParameter(0, hasType(isInteger()))));
26 void CloexecInotifyInit1Check::check(
const MatchFinder::MatchResult &Result) {
27 insertMacroFlag(Result,
"IN_CLOEXEC", 0);
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//