Skip to content

Commit

Permalink
[BE][Easy]: Enable clang-tidy check readability-misplaced-array-index (
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Skylion007 authored and pytorchmergebot committed Dec 21, 2023
1 parent cc2c2c6 commit ff4aac1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -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/).*$'
Expand Down

0 comments on commit ff4aac1

Please sign in to comment.