pytorch/torch/csrc/jit/passes/onnx
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
..
pattern_conversion
cast_all_constant_to_floating.cpp
cast_all_constant_to_floating.h
constant_fold.cpp
constant_fold.h
constant_map.cpp
constant_map.h
deduplicate_initializers.cpp
deduplicate_initializers.h
eliminate_unused_items.cpp
eliminate_unused_items.h
eval_peephole.cpp
eval_peephole.h
fixup_onnx_controlflow.cpp
fixup_onnx_controlflow.h
function_extraction.cpp
function_extraction.h
function_substitution.cpp
function_substitution.h
helper.cpp
helper.h [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
list_model_parameters.cpp
list_model_parameters.h
naming.cpp
naming.h
onnx_log.cpp
onnx_log.h
peephole.cpp
peephole.h
prepare_division_for_onnx.cpp
prepare_division_for_onnx.h
preprocess_for_onnx.cpp
preprocess_for_onnx.h
README.md
remove_inplace_ops_for_onnx.cpp
remove_inplace_ops_for_onnx.h
scalar_type_analysis.cpp
scalar_type_analysis.h
shape_type_inference.cpp [2/N] Fix clang-tidy readability checks (#164652) 2025-10-06 01:06:01 +00:00
shape_type_inference.h
unpack_quantized_weights.cpp
unpack_quantized_weights.h

The optimization passes in this directory work exclusively on ONNX-style IRs, e.g., IRs that have had ToONNX applied to them. ONNX defines operators differently from ATen, so there are different opportunities for peephole optimization.