Refs #24783
Attempted to keep the style and flow of implementation as it is.
Additional Notes(Optional):
- There is scope of improvement on how the related files are fetched. In this
git grep
withsubprocess
is still used as I found it to be the simplest. Any pointers on this are appreciated. - Removed sort operation on the matching files as I couldn’t think of any strong arguments to have it. Any pointers on this are appreciated.
- Not important, but one small detail is that the previous implementation was storing matched files for all the
function_names
iterated so far. Fixed that in this PR.