[clang-tidy] Implement readability-function-cognitive-complexity check