[clang-tidy] Simplify ast matcher.

Turns out there is a better way to do this. No functionality change.