Skip to content

Commit ff4aac1

Browse files
Skylion007pytorchmergebot
authored andcommitted
[BE][Easy]: Enable clang-tidy check readability-misplaced-array-index (pytorch#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: pytorch#116210 Approved by: https://github.com/albanD, https://github.com/malfet
1 parent cc2c2c6 commit ff4aac1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ performance-*,
5454
readability-container-size-empty,
5555
readability-delete-null-pointer,
5656
readability-duplicate-include
57+
readability-misplaced-array-index,
5758
readability-string-compare,
5859
'
5960
HeaderFilterRegex: '^(aten/|c10/|torch/).*$'

0 commit comments

Comments
 (0)