]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: Improve processing of input file arguments
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 2 Dec 2023 11:24:07 +0000 (12:24 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 10 Dec 2023 19:59:24 +0000 (20:59 +0100)
commit7f77c031cba33aa80d370c049fd3a647501146d0
tree01db80010a93fa61cc06d9347d95aa32389de4ab
parentb763420fdfdc6fdff91dd30698008157613da36f
feat: Improve processing of input file arguments

Instead of checking if a non-option argument has a known file extension,
switch to the better heuristic of checking if the file exists or not: if
it doesn't exist it isn't an input argument.
src/argprocessing.cpp
src/language.cpp
src/language.hpp