clang-format: Refactoring.

Provide more overloads to simplify testing the type of a token. No
functional changes intended.