11 #include "../utils/ASTUtils.h" 12 #include "clang/AST/ASTContext.h" 13 #include "clang/ASTMatchers/ASTMatchFinder.h" 21 void CloexecInotifyInit1Check::registerMatchers(MatchFinder *Finder) {
23 Finder, functionDecl(returns(isInteger()), hasName(
"inotify_init1"),
24 hasParameter(0, hasType(isInteger()))));
27 void CloexecInotifyInit1Check::check(
const MatchFinder::MatchResult &
Result) {
28 insertMacroFlag(Result,
"IN_CLOEXEC", 0);
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//