pytorch/c10/core/impl
Yuanyuan Chen 9fff8155c3 [2/N] Fix clang-tidy readability checks (#164652)
This PR applies clang-tidy readability checks to jit sources and all headers in the code base.
`readability-redundant-inline-specifier` is suppressed because it incurs too many changes. `readability-redundant-inline-specifier` is used to detect redundant inline specifiers on function and variable declarations. There are many in-class method definitions that are marked inline.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164652
Approved by: https://github.com/Skylion007
2025-10-06 01:06:01 +00:00
..
alloc_cpu.cpp Enable -Wunused on torch targets (#150077) 2025-05-02 07:14:19 +00:00
alloc_cpu.h [sigmoid] memory planner C10 deps (#151275) 2025-04-24 01:46:32 +00:00
COW.cpp
COW.h
COWDeleter.cpp
COWDeleter.h
DeviceGuardImplInterface.cpp Add functions to setup PrivateUse1 as a python backend device. (#157859) 2025-10-01 21:32:59 +00:00
DeviceGuardImplInterface.h Add functions to setup PrivateUse1 as a python backend device. (#157859) 2025-10-01 21:32:59 +00:00
FakeGuardImpl.h Enable -Wunused on torch targets (#150077) 2025-05-02 07:14:19 +00:00
GPUTrace.cpp
GPUTrace.h
HermeticPyObjectTLS.cpp Revert "[BE] Remove HermeticPyObjectTLS and Simplify PythonOpRegistrationTrampoline (#163464)" 2025-09-30 18:20:20 +00:00
HermeticPyObjectTLS.h Revert "[BE] Remove HermeticPyObjectTLS and Simplify PythonOpRegistrationTrampoline (#163464)" 2025-09-30 18:20:20 +00:00
InlineDeviceGuard.h
InlineEvent.h [BE] fix typos in c10/ (#156078) 2025-06-18 10:24:44 +00:00
InlineStreamGuard.h
LocalDispatchKeySet.cpp
LocalDispatchKeySet.h
PyInterpreter.cpp Remove guard_size_oblivious from default contiguity python check, and add aten.sym_is_contiguous. [attempt2] (#160869) 2025-09-08 22:59:13 +00:00
PyInterpreter.h Remove guard_size_oblivious from default contiguity python check, and add aten.sym_is_contiguous. [attempt2] (#160869) 2025-09-08 22:59:13 +00:00
PyInterpreterHooks.cpp [BE] Make PyObjectSlot use a global PyInterpreter and remove (#158427) 2025-07-30 17:29:43 +00:00
PyInterpreterHooks.h [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
PyObjectSlot.cpp Revert "[BE] Make PyObjectSlot use a global PyInterpreter (#162659)" 2025-10-05 21:39:57 +00:00
PyObjectSlot.h Revert "[BE] Make PyObjectSlot use a global PyInterpreter (#162659)" 2025-10-05 21:39:57 +00:00
PythonDispatcherTLS.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00
PythonDispatcherTLS.h
README-cow.md
README.md
SizesAndStrides.cpp
SizesAndStrides.h [nativert] libtorch kernel registry (#157150) 2025-07-16 12:36:55 +00:00
TorchDispatchModeTLS.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00
TorchDispatchModeTLS.h
VirtualGuardImpl.h

c10/core/impl provides headers for functionality that is only needed in very specific use-cases (e.g., you are defining a new device type), which are generally only needed by C10 or PyTorch code. If you are an ordinary end-user, you should not use headers in this folder. We permanently give NO backwards-compatibility guarantees for implementations in this folder.

Compare with c10/util, which provides functionality that is not directly related to being a deep learning library (e.g., C++20 polyfills), but may still be generally useful and visible to users.

(We don't call this c10/detail, because the detail namespace convention is for header private details. However, c10::impl may be utilized from external headers; it simply indicates that the functionality is not for end users.)