- Notifications
You must be signed in to change notification settings - Fork25.8k
Commitecc3718
Fix clang-tidy path filtering (#60225)
Summary:PR#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```bashcurl -Lhttps://github.com/pytorch/pytorch/pull/60018.diff > diffpython tools/clang_tidy.py --diff-file diff --paths torch/csrc/curl -Lhttps://github.com/pytorch/pytorch/pull/60222.diff > diffpython tools/clang_tidy.py --diff-file diff --paths torch/csrc/```Shouldfix#60192 andfix#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 Requestresolved:#60225Reviewed By: zhouzhuojieDifferential Revision: D29216251Pulled By: driazatifbshipit-source-id: b5d7fb7161d33eb7958a6f1ccc258099420452091 parent38c3116 commitecc3718
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
| |||
330 | 329 | | |
331 | 330 | | |
332 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
333 | 337 | | |
334 | 338 | | |
335 | 339 | | |
| |||
0 commit comments
Comments
(0)