15 void CloexecMemfdCreateCheck::registerMatchers(MatchFinder *Finder) {
16 auto CharPointerType = hasType(pointerType(pointee(isAnyCharacter())));
18 Finder, functionDecl(returns(isInteger()), hasName(
"memfd_create"),
19 hasParameter(0, CharPointerType),
20 hasParameter(1, hasType(isInteger()))));
24 insertMacroFlag(Result,
"MFD_CLOEXEC", 1);