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.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D81396
[clang-tidy] New util `Aliasing` factored out from `bugprone-infinite-loop` ClosedPublic Authored by baloghadamsoftware on Jun 8 2020, 7:28 AM.
Details Summary 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.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jun 9 2020, 7:55 AM Closed by commit rG4da65c2920b6: [clang-tidy] New util `Aliasing` factored out from `bugprone-infinite-loop` (authored by baloghadamsoftware). · Explain WhyJul 1 2020, 12:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 269779 clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
clang-tools-extra/clang-tidy/utils/Aliasing.h
clang-tools-extra/clang-tidy/utils/Aliasing.cpp
clang-tools-extra/clang-tidy/utils/CMakeLists.txt
|
This function is only used once in the file, so may as well remove this line and just qualify its call further down.