commit | b4d960d3df7c651c9baff04cc2f5251e7fc64bbe | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Thu Oct 03 15:38:44 2019 -0500 |
committer | Siarhei Vishniakou <svv@google.com> | Tue Jul 07 10:43:34 2020 -0500 |
tree | 1c3290329683af7686f95081f7fa660d7df9e87c | |
parent | 12d24c504621cc5ff117b41726d734475eb8836c [diff] |
Enable -Wshadow for input code To avoid common programming mistakes, enable -Wshadow for input code. This requires several refactors, such as using range-based for loops and avoiding repeating variable names that are already in scope. To allow for -Wshadow, we convert to unordered_map and use a range-based loop. Bug: 142017994 Test: atest libinput_tests inputflinger_tests Change-Id: Icb65045d3322eccc312bca63287e38897d9f9ff6