17 void CloexecMemfdCreateCheck::registerMatchers(MatchFinder *Finder) {
18 auto CharPointerType = hasType(pointerType(pointee(isAnyCharacter())));
20 Finder, functionDecl(returns(isInteger()), hasName(
"memfd_create"),
21 hasParameter(0, CharPointerType),
22 hasParameter(1, hasType(isInteger()))));
25 void CloexecMemfdCreateCheck::check(
const MatchFinder::MatchResult &
Result) {
26 insertMacroFlag(Result,
"MFD_CLOEXEC", 1);
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result