11 #include "clang/AST/ASTContext.h" 12 #include "clang/ASTMatchers/ASTMatchFinder.h" 20 void CloexecInotifyInitCheck::registerMatchers(MatchFinder *Finder) {
22 Finder, functionDecl(returns(isInteger()), hasName(
"inotify_init")));
25 void CloexecInotifyInitCheck::check(
const MatchFinder::MatchResult &
Result) {
27 "prefer inotify_init() to inotify_init1() " 28 "because inotify_init1() allows IN_CLOEXEC",
29 "inotify_init1(IN_CLOEXEC)");
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//