commit | d69ff70c0b3dc1922d5d486b84f27b51820c43cf | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Wed Jul 16 14:52:07 2014 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Sep 04 12:59:36 2020 -0700 |
tree | df419f2379953f89eb56d3dca6928f4db5a93738 | |
parent | bf8f3328322d1c75344d5bc2aae830f07597a698 [diff] |
[clang-tidy] As a simple heuristic don't emit a swap fixit that would create negative-sized memsets. memset(x, -1, 0) is still useless but swapping makes no sense here. Just emit a warning. llvm-svn: 213157 GitOrigin-RevId: 806bcabcdafbb1deb8e3f1821d848f33f67a8dd5