17 auto CharPointerType = hasType(pointerType(pointee(isAnyCharacter())));
19 Finder, functionDecl(isExternC(), returns(asString(
"FILE *")),
20 hasName(
"fopen"), hasParameter(0, CharPointerType),
21 hasParameter(1, CharPointerType)));
void insertStringFlag(const ast_matchers::MatchFinder::MatchResult &Result, const char Mode, const int ArgPos)
Type3 is also to add a flag to the corresponding argument, but this time, the flag is some string and...