llvm-project/clang/unittests/Analysis
Kristof Umann 92541e359e [CFG] Introduce CFGElementRef, a wrapper that knows it's position in a CFGBlock
Previously, collecting CFGElements in a set was practially impossible, because
both CFGBlock::operator[] and both the iterators returned it by value. One
workaround would be to collect the iterators instead, but they don't really
capture the concept of an element, and elements from different iterator types are incomparable.

This patch introduces CFGElementRef, a wrapper around a (CFGBlock, Index) pair,
and a variety of new iterators and iterator ranges to solve this problem.

I guess you could say that this patch took a couple iterations to get right :^)

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

llvm-svn: 368883
2019-08-14 17:05:55 +00:00
..
CFGBuildResult.h [analyzer][Dominators][NFC] Add unit tests 2019-07-05 10:16:36 +00:00
CFGDominatorTree.cpp [analyzer][IDF] Add a control dependency calculator + a new debug checker 2019-07-05 12:17:44 +00:00
CFGTest.cpp [CFG] Introduce CFGElementRef, a wrapper that knows it's position in a CFGBlock 2019-08-14 17:05:55 +00:00
CMakeLists.txt [analyzer][Dominators][NFC] Add unit tests 2019-07-05 10:16:36 +00:00
CloneDetectionTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExprMutationAnalyzerTest.cpp Fix some clang analysis tests passing arguments incorrectly 2019-03-07 18:57:04 +00:00