Currently, when -u dir/**/*.cpp is specified on a very large directory, the time to filter the translation units against the compile commands is very long. This should be refactored, so that first we extract the files from compile commands and then check them against the glob pattern instead of listing everything.
Currently, when
-u dir/**/*.cppis specified on a very large directory, the time to filter the translation units against the compile commands is very long. This should be refactored, so that first we extract the files from compile commands and then check them against the glob pattern instead of listing everything.