enable two new clang-tidy checks (#3988)

* enable two new clang-tidy checks

* Use better loop var for char
2 files changed