pytorch
474bdaf5 - Add --print-include-paths option to tools/linter/clang_tidy.py (#60744)

Commit
3 years ago
Add --print-include-paths option to tools/linter/clang_tidy.py (#60744) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/60744 Fixes #60739 Test Plan: Run this comand: ``` python3 tools/linter/clang_tidy.py --paths torch/csrc/fx --print-include-paths ``` Output (varies from machine to machine): ``` (clang-tidy output) . . . clang -cc1 version 11.0.0 based upon LLVM 11.0.0 default target x86_64-unknown-linux-gnu ignoring nonexistent directory "nccl/include" ignoring nonexistent directory "/include" ignoring duplicate directory ".." ignoring duplicate directory "../aten/src" ignoring duplicate directory "../third_party/onnx" ignoring duplicate directory ".." ignoring duplicate directory ".." ignoring duplicate directory "../torch/lib" ignoring duplicate directory "../torch/../third_party/gloo" as it is a non-system directory that duplicates a system directory ignoring duplicate directory "../third_party/ideep/mkl-dnn/src/../include" as it is a non-system directory that duplicates a system directory #include "..." search starts here: #include <...> search starts here: aten/src ../aten/src . .. ../cmake/../third_party/benchmark/include caffe2/contrib/aten ../third_party/onnx third_party/onnx ../third_party/foxi third_party/foxi ../torch/../aten/src/TH caffe2/aten/src third_party ../torch/../third_party/valgrind-headers ../torch/csrc ../torch/csrc/api/include ../torch/lib ../torch/lib/libshm ../torch/csrc/api third_party/ideep/mkl-dnn/include ../third_party/fmt/include third_party/gloo ../torch/../third_party/gloo ../cmake/../third_party/googletest/googlemock/include ../cmake/../third_party/googletest/googletest/include ../third_party/protobuf/src /data/users/eltonpinto/miniconda3/envs/pytorch/include ../third_party/gemmlowp ../third_party/neon2sse ../third_party/XNNPACK/include ../third_party ../cmake/../third_party/eigen /home/eltonpinto/local/miniconda3/envs/pytorch/include/python3.8 /home/eltonpinto/local/miniconda3/envs/pytorch/lib/python3.8/site-packages/numpy/core/include ../cmake/../third_party/pybind11/include /usr/local/cuda-11.3/include ../third_party/ideep/mkl-dnn/src/../include ../third_party/ideep/include /usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8 /usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/x86_64-redhat-linux /usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/backward /usr/local/include /usr/lib64/clang/11.0.0/include /usr/include . . . (more clang-tidy output) ``` Imported from OSS Reviewed By: ngimel Differential Revision: D29395398 fbshipit-source-id: e92077a9c4e9dee7f9d7e05df180d552e3763540
Author
Parents
Loading