reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Analysis/CFGTest.cpp
  107   for (CFGBlock::CFGElementRef ElementRef : MainBlock->refs()) {
  108     EXPECT_EQ(ElementRef.getParent(), MainBlock);
  112     EXPECT_EQ(ElementRef.getParent(), MainBlock);
  115   EXPECT_TRUE(*MainBlock->ref_begin() < *(MainBlock->ref_begin() + 1));
  115   EXPECT_TRUE(*MainBlock->ref_begin() < *(MainBlock->ref_begin() + 1));
  116   EXPECT_TRUE(*MainBlock->ref_begin() == *MainBlock->ref_begin());
  116   EXPECT_TRUE(*MainBlock->ref_begin() == *MainBlock->ref_begin());
  117   EXPECT_FALSE(*MainBlock->ref_begin() != *MainBlock->ref_begin());
  117   EXPECT_FALSE(*MainBlock->ref_begin() != *MainBlock->ref_begin());
  119   EXPECT_TRUE(MainBlock->ref_begin() < MainBlock->ref_begin() + 1);
  119   EXPECT_TRUE(MainBlock->ref_begin() < MainBlock->ref_begin() + 1);
  120   EXPECT_TRUE(MainBlock->ref_begin() == MainBlock->ref_begin());
  120   EXPECT_TRUE(MainBlock->ref_begin() == MainBlock->ref_begin());
  121   EXPECT_FALSE(MainBlock->ref_begin() != MainBlock->ref_begin());
  121   EXPECT_FALSE(MainBlock->ref_begin() != MainBlock->ref_begin());
  122   EXPECT_EQ(MainBlock->ref_end() - MainBlock->ref_begin(), MainBlockSize + 1);
  122   EXPECT_EQ(MainBlock->ref_end() - MainBlock->ref_begin(), MainBlockSize + 1);
  123   EXPECT_EQ(MainBlock->ref_end() - MainBlockSize - 1, MainBlock->ref_begin());
  123   EXPECT_EQ(MainBlock->ref_end() - MainBlockSize - 1, MainBlock->ref_begin());
  124   EXPECT_EQ(MainBlock->ref_begin() + MainBlockSize + 1, MainBlock->ref_end());
  124   EXPECT_EQ(MainBlock->ref_begin() + MainBlockSize + 1, MainBlock->ref_end());
  125   EXPECT_EQ(MainBlock->ref_begin()++, MainBlock->ref_begin());
  125   EXPECT_EQ(MainBlock->ref_begin()++, MainBlock->ref_begin());
  126   EXPECT_EQ(++(MainBlock->ref_begin()), MainBlock->ref_begin() + 1);
  126   EXPECT_EQ(++(MainBlock->ref_begin()), MainBlock->ref_begin() + 1);
  129   const CFGBlock *CMainBlock = MainBlock;
  136     EXPECT_EQ(ElementRef.getParent(), MainBlock);
  154   for (CFGBlock::CFGElementRef ElementRef : MainBlock->rrefs()) {
  156     EXPECT_EQ(ElementRef.getParent(), MainBlock);
  160     EXPECT_EQ(ElementRef.getParent(), MainBlock);
  163   EXPECT_FALSE(*MainBlock->rref_begin() < *(MainBlock->rref_begin() + 1));
  163   EXPECT_FALSE(*MainBlock->rref_begin() < *(MainBlock->rref_begin() + 1));
  164   EXPECT_TRUE(*MainBlock->rref_begin() == *MainBlock->rref_begin());
  164   EXPECT_TRUE(*MainBlock->rref_begin() == *MainBlock->rref_begin());
  165   EXPECT_FALSE(*MainBlock->rref_begin() != *MainBlock->rref_begin());
  165   EXPECT_FALSE(*MainBlock->rref_begin() != *MainBlock->rref_begin());
  167   EXPECT_TRUE(MainBlock->rref_begin() < MainBlock->rref_begin() + 1);
  167   EXPECT_TRUE(MainBlock->rref_begin() < MainBlock->rref_begin() + 1);
  168   EXPECT_TRUE(MainBlock->rref_begin() == MainBlock->rref_begin());
  168   EXPECT_TRUE(MainBlock->rref_begin() == MainBlock->rref_begin());
  169   EXPECT_FALSE(MainBlock->rref_begin() != MainBlock->rref_begin());
  169   EXPECT_FALSE(MainBlock->rref_begin() != MainBlock->rref_begin());
  170   EXPECT_EQ(MainBlock->rref_end() - MainBlock->rref_begin(), MainBlockSize + 1);
  170   EXPECT_EQ(MainBlock->rref_end() - MainBlock->rref_begin(), MainBlockSize + 1);
  171   EXPECT_EQ(MainBlock->rref_end() - MainBlockSize - 1, MainBlock->rref_begin());
  171   EXPECT_EQ(MainBlock->rref_end() - MainBlockSize - 1, MainBlock->rref_begin());
  172   EXPECT_EQ(MainBlock->rref_begin() + MainBlockSize + 1, MainBlock->rref_end());
  172   EXPECT_EQ(MainBlock->rref_begin() + MainBlockSize + 1, MainBlock->rref_end());
  173   EXPECT_EQ(MainBlock->rref_begin()++, MainBlock->rref_begin());
  173   EXPECT_EQ(MainBlock->rref_begin()++, MainBlock->rref_begin());
  174   EXPECT_EQ(++(MainBlock->rref_begin()), MainBlock->rref_begin() + 1);
  174   EXPECT_EQ(++(MainBlock->rref_begin()), MainBlock->rref_begin() + 1);
  183     EXPECT_EQ(ElementRef.getParent(), MainBlock);