This patch introduces a proof-of-concept check for clang-tidy aiming to suggest using ternary operator in order to improve readability.
It's currently really straightforward and "clever" heuristics for auto fixing more sophisticated cases would be added later.
This file only needs one function from this namespace, so it's better to qualify the function name instead.