Fix clang-tidy path filtering (#60225)
Summary:
PR https://github.com/pytorch/pytorch/issues/60048 neglected to include the `--paths` option for file filtering, so it ended up passing every changed file in the diff to clang-tidy (cpp files outside `torch/csrc/`, yaml/sh files, etc.). This adds that back in to make the filtering work properly again.
Tested it manually by printing out the files to lint and running
```bash
curl -L https://github.com/pytorch/pytorch/pull/60018.diff > diff
python tools/clang_tidy.py --diff-file diff --paths torch/csrc/
curl -L https://github.com/pytorch/pytorch/pull/60222.diff > diff
python tools/clang_tidy.py --diff-file diff --paths torch/csrc/
```
Should fix https://github.com/pytorch/pytorch/issues/60192 and fix https://github.com/pytorch/pytorch/issues/60193, the files tripping errors there shouldn't have been passed to clang-tidy in the first place (supporting aten/ for clang-tidy is a separate task)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60225
Reviewed By: zhouzhuojie
Differential Revision: D29216251
Pulled By: driazati
fbshipit-source-id: b5d7fb7161d33eb7958a6f1ccc25809942045209