I think can use `functionDecl(unless(hasParent(cxxRecordDecl(isLambda()))))` s.t. functions that are lambdas are ignored.