[clang-tidy] New util `Aliasing` factored out from `bugprone-infinite-loop`

Authored by baloghadamsoftware on Jun 8 2020, 3:41 AM.


[clang-tidy] New util Aliasing factored out from bugprone-infinite-loop

Function hasPtrOrReferenceInfFunc() of bugprone-infinite-loop is a
generic function which could be reused in another checks. This patch
moves this function into a newly created utility module.

Differential Revision: https://reviews.llvm.org/D81396