mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[Easy][BE]: Enable clang-tidy check for duplicate includes (#116193)
Adds a clang-tidy check to flag duplicate include files Pull Request resolved: https://github.com/pytorch/pytorch/pull/116193 Approved by: https://github.com/albanD, https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
2dce364634
commit
cc2c2c6ca9
@ -53,6 +53,7 @@ modernize-*,
|
||||
performance-*,
|
||||
readability-container-size-empty,
|
||||
readability-delete-null-pointer,
|
||||
readability-duplicate-include
|
||||
readability-string-compare,
|
||||
'
|
||||
HeaderFilterRegex: '^(aten/|c10/|torch/).*$'
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include <string>
|
||||
#include <c10/util/Exception.h>
|
||||
#include <ATen/core/interned_strings_class.h>
|
||||
#include <c10/util/Exception.h>
|
||||
|
||||
namespace c10 {
|
||||
|
||||
|
@ -11,8 +11,6 @@
|
||||
#include <torch/csrc/utils/tensor_types.h>
|
||||
#include <cstring>
|
||||
|
||||
#include <torch/csrc/Exceptions.h>
|
||||
|
||||
PyObject* THPDtype_New(at::ScalarType scalar_type, const std::string& name) {
|
||||
HANDLE_TH_ERRORS
|
||||
AT_ASSERT(name.length() < DTYPE_NAME_LEN);
|
||||
|
@ -87,7 +87,6 @@
|
||||
#include <torch/csrc/utils/verbose.h>
|
||||
|
||||
#include <ATen/native/transformers/sdp_utils_cpp.h>
|
||||
#include <c10/util/Logging.h>
|
||||
#include <torch/csrc/profiler/combined_traceback.h>
|
||||
#include <sstream>
|
||||
#ifdef USE_CUDA
|
||||
|
@ -12,7 +12,6 @@
|
||||
|
||||
#include <torch/csrc/autograd/python_variable.h>
|
||||
#include <torch/csrc/jit/frontend/tracer.h>
|
||||
#include <torch/csrc/utils/pybind.h>
|
||||
|
||||
struct THPSize {
|
||||
PyTupleObject tuple;
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <c10/util/flat_hash_map.h>
|
||||
#include <pybind11/operators.h>
|
||||
#include <pybind11/stl.h>
|
||||
#include <torch/csrc/jit/python/pybind_utils.h>
|
||||
#include <torch/csrc/utils/pybind.h>
|
||||
#include <torch/csrc/utils/python_raii.h>
|
||||
|
||||
|
Reference in New Issue
Block a user