I am working on a new clang-tidy checker. It will warn on misplaced array indexes. This syntax is valid but unusual.
char x = 1[“abc”];
I have attached a proof of concept patch.
Any comments on this?
misplaced_array.diff (6.7 KB)