pytorch/c10/core
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
..
impl [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
alignment.h
Allocator.cpp Switch c10::string_view to std::string_view (#139635) 2024-11-27 01:41:18 +00:00
Allocator.h [sigmoid] memory planner C10 deps (#151275) 2025-04-24 01:46:32 +00:00
AllocatorConfig.cpp Revert "Generalize torch._C._set_allocator_settings to be generic (#156175)" (#161626) 2025-08-27 21:37:14 +00:00
AllocatorConfig.h Revert "Generalize torch._C._set_allocator_settings to be generic (#156175)" (#161626) 2025-08-27 21:37:14 +00:00
AutogradState.cpp
AutogradState.h [13/N] Fix extra warnings brought by clang-tidy-17 (#140897) 2024-11-27 00:35:19 +00:00
Backend.h [MPS] coalesce for sparse tensors (#159729) 2025-08-08 13:49:55 +00:00
BUILD.bazel
build.bzl Organize BUCK for torch/standalone (#156503) 2025-06-25 22:56:15 +00:00
CachingDeviceAllocator.cpp Add DeviceAllocator as the base device allocator (#138222) 2025-08-08 17:41:10 +00:00
CachingDeviceAllocator.h Add DeviceAllocator as the base device allocator (#138222) 2025-08-08 17:41:10 +00:00
CompileTimeFunctionPointer.h
ConstantSymNodeImpl.cpp
ConstantSymNodeImpl.h
Contiguity.h symbolic cpp channels_last_contiguous (#160402) 2025-09-05 21:40:32 +00:00
CopyBytes.cpp
CopyBytes.h
CPUAllocator.cpp Enable misc-use-internal-linkage check and apply fixes (#148948) 2025-03-12 14:22:56 +00:00
CPUAllocator.h
DefaultDtype.cpp
DefaultDtype.h
DefaultTensorOptions.h
Device.cpp [Device] Add support for PrivateUse1 device type in parse_type function (#157609) 2025-07-17 01:27:44 +00:00
Device.h [PyTorch Core] MTIA supports arbitrary strides (#157883) 2025-07-11 18:54:21 +00:00
DeviceArray.h
DeviceGuard.h [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
DeviceType.cpp Fix: Use memory_order_relaxed instead of memory_order_relaxed (#159105) 2025-07-25 19:39:04 +00:00
DeviceType.h Migrate DeviceType to torch/headeronly (#163999) 2025-09-30 23:13:27 +00:00
DispatchKey.cpp [MPS] Add boilerplate sparse code support (#157238) 2025-06-30 01:53:45 +00:00
DispatchKey.h [MAIA] [Autocast] Enable autocast on MAIA device (#148511) 2025-03-18 03:46:22 +00:00
DispatchKeySet.cpp [BE] fix typos in c10/ (#156078) 2025-06-18 10:24:44 +00:00
DispatchKeySet.h Fix 'dllimport attribute ignored on inline function' (#157670) 2025-07-07 16:57:48 +00:00
DynamicCast.h
Event.h
GeneratorImpl.cpp Avoid std::chrono::system_clock (#153135) 2025-05-08 16:30:29 +00:00
GeneratorImpl.h
GradMode.cpp
GradMode.h
InferenceMode.cpp
InferenceMode.h
Layout.h [MPS] coalesce for sparse tensors (#159729) 2025-08-08 13:49:55 +00:00
MemoryFormat.h
OptionalRef.h
PyHandleCache.h
QEngine.h
QScheme.h
RefcountedDeleter.cpp [18/N] Fix extra warnings brought by clang-tidy-17 (#144014) 2025-01-08 17:21:55 +00:00
RefcountedDeleter.h [BE] fix typos in c10/ (#156078) 2025-06-18 10:24:44 +00:00
SafePyObject.cpp
SafePyObject.h
Scalar.cpp
Scalar.h [C10] Add Scalar::isUnsigned() method (#159877) 2025-08-05 21:43:21 +00:00
ScalarType.cpp add torch.float4_e2m1fn_x2 to PyTorch (#148791) 2025-03-27 17:32:20 +00:00
ScalarType.h [Reland] Migrate ScalarType to headeronly (#159911) 2025-08-06 07:36:37 +00:00
ScalarTypeToTypeMeta.h
Storage.cpp
Storage.h Fix TODO in make_tensor_for_subclass_helper (#162336) 2025-09-17 06:46:34 +00:00
StorageImpl.cpp
StorageImpl.h [sigmoid] memory planner C10 deps (#151275) 2025-04-24 01:46:32 +00:00
Stream.cpp
Stream.h
StreamGuard.h [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
SymbolicShapeMeta.cpp symbolic cpp channels_last_contiguous (#160402) 2025-09-05 21:40:32 +00:00
SymbolicShapeMeta.h [attempt 2] Compute contiguity symbolically to avoid dde, and introduce c++ sym_is_contiguous (#157472) 2025-07-02 23:12:29 +00:00
SymBool.cpp Support C++ statically_known_true (#151346) 2025-04-18 06:42:12 +00:00
SymBool.h Support C++ statically_known_true (#151346) 2025-04-18 06:42:12 +00:00
SymFloat.cpp fix incorrect c10::SymFloat::sqrt (#141728) 2024-12-03 23:34:16 +00:00
SymFloat.h Add admonition about as_float_unchecked() (#141742) 2024-11-28 06:25:18 +00:00
SymInt.cpp Remove unused argument from DEFINE_BINARY macro. (#163868) 2025-09-28 06:32:41 +00:00
SymInt.h Add inline fast paths for SymInt operators (#161586) 2025-09-03 06:54:47 +00:00
SymIntArrayRef.cpp
SymIntArrayRef.h
SymNodeImpl.cpp
SymNodeImpl.h [ez] Make SymNodeImpl comments less misleading (#154480) 2025-05-28 14:04:32 +00:00
TensorImpl.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
TensorImpl.h Revert "[BE] Make PyObjectSlot use a global PyInterpreter (#162659)" 2025-10-05 21:39:57 +00:00
TensorOptions.cpp
TensorOptions.h Enable readability-redundant-declaration (#143982) 2024-12-31 00:20:10 +00:00
thread_pool.cpp Fix extra semicolon warning (#148291) 2025-03-03 18:51:44 +00:00
thread_pool.h
UndefinedTensorImpl.cpp [attempt 2] Compute contiguity symbolically to avoid dde, and introduce c++ sym_is_contiguous (#157472) 2025-07-02 23:12:29 +00:00
UndefinedTensorImpl.h [attempt 2] Compute contiguity symbolically to avoid dde, and introduce c++ sym_is_contiguous (#157472) 2025-07-02 23:12:29 +00:00
WrapDimMinimal.cpp Bump Clang-tidy to 19.1.4 (#148648) 2025-03-10 17:32:30 +00:00
WrapDimMinimal.h