parseWildcards is a flat static function in juce_DirectoryIterator.cpp. In my opinion it should be either a public or a private static member of class DirectoryIterator, because with the unity build the static qualifier loses its meaning as the translation unit is not limited to just the .cpp in which it appears.
This applies to all global functions with the static specifier.