[clang-tidy] New util `Aliasing` factored out from `bugprone-infinite-loop`
authorAdam Balogh <adam.balogh@ericsson.com>
Mon, 8 Jun 2020 10:41:36 +0000 (12:41 +0200)
committerAdam Balogh <adam.balogh@ericsson.com>
Wed, 1 Jul 2020 07:04:27 +0000 (09:04 +0200)
commit4da65c2920b68a1cf47054a7d655cc2a19a4aa28
tree07ea4bf934c95ae965ead354ac1ae5971c0eef04
parent40c50bdee443dd48424ac7d724ced8874c40ee33
[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
clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
clang-tools-extra/clang-tidy/utils/Aliasing.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/utils/Aliasing.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/utils/CMakeLists.txt