[BE][Easy]: Enable clang-tidy check readability-misplaced-array-index (#116210)

Enable clang-tidy check readability which checks for a bizarre C++ construct that is usually indicative of an error: https://clang.llvm.org/extra/clang-tidy/checks/readability/misplaced-array-index.html (indexing a number by a pointer, which surprisingly inverts the operands).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/116210
Approved by: https://github.com/albanD, https://github.com/malfet
This commit is contained in:
Aaron Gokaslan
2023-12-21 00:00:13 +00:00
committed by PyTorch MergeBot
parent 897600eb35
commit 5d5ef016a6

View File

@ -54,6 +54,7 @@ performance-*,
readability-container-size-empty,
readability-delete-null-pointer,
readability-duplicate-include
readability-misplaced-array-index,
readability-string-compare,
'
HeaderFilterRegex: '^(aten/|c10/|torch/).*$'