18 void CloexecMemfdCreateCheck::registerMatchers(MatchFinder *Finder) {
19 auto CharPointerType = hasType(pointerType(pointee(isAnyCharacter())));
21 Finder, functionDecl(returns(isInteger()), hasName(
"memfd_create"),
22 hasParameter(0, CharPointerType),
23 hasParameter(1, hasType(isInteger()))));
26 void CloexecMemfdCreateCheck::check(
const MatchFinder::MatchResult &Result) {
27 insertMacroFlag(Result,
"MFD_CLOEXEC", 1);
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//