astyle formatting

[ci skip]
Fixed #6168 (False positive: sign conversion for inner calculation)
Refactoring. Use Token::Match instead of hardcoded patterns to increase readability.
removed some redundant null pointer checks before calling Token::Match