hasParameter(0, hasType(isUnsignedInteger())))
.bind("operator new"),
Ctx));
- EXPECT_TRUE(SizedOperatorNew->getOwningModule());
+ ASSERT_TRUE(SizedOperatorNew->getOwningModule());
EXPECT_TRUE(SizedOperatorNew->getOwningModule()->isGlobalModule());
// void* operator new(std::size_t, std::align_val_t);
hasParameter(1, hasType(enumDecl(hasName("std::align_val_t")))))
.bind("operator new"),
Ctx));
- EXPECT_TRUE(SizedAlignedOperatorNew->getOwningModule());
+ ASSERT_TRUE(SizedAlignedOperatorNew->getOwningModule());
EXPECT_TRUE(SizedAlignedOperatorNew->getOwningModule()->isGlobalModule());
// void* operator new[](std::size_t);
hasParameter(0, hasType(isUnsignedInteger())))
.bind("operator new[]"),
Ctx));
- EXPECT_TRUE(SizedArrayOperatorNew->getOwningModule());
+ ASSERT_TRUE(SizedArrayOperatorNew->getOwningModule());
EXPECT_TRUE(SizedArrayOperatorNew->getOwningModule()->isGlobalModule());
// void* operator new[](std::size_t, std::align_val_t);
hasParameter(1, hasType(enumDecl(hasName("std::align_val_t")))))
.bind("operator new[]"),
Ctx));
- EXPECT_TRUE(SizedAlignedArrayOperatorNew->getOwningModule());
+ ASSERT_TRUE(SizedAlignedArrayOperatorNew->getOwningModule());
EXPECT_TRUE(
SizedAlignedArrayOperatorNew->getOwningModule()->isGlobalModule());
hasParameter(0, hasType(pointerType(pointee(voidType())))))
.bind("operator delete"),
Ctx));
- EXPECT_TRUE(Delete->getOwningModule());
+ ASSERT_TRUE(Delete->getOwningModule());
EXPECT_TRUE(Delete->getOwningModule()->isGlobalModule());
// void operator delete(void*, std::align_val_t) noexcept;
hasParameter(1, hasType(enumDecl(hasName("std::align_val_t")))))
.bind("operator delete"),
Ctx));
- EXPECT_TRUE(AlignedDelete->getOwningModule());
+ ASSERT_TRUE(AlignedDelete->getOwningModule());
EXPECT_TRUE(AlignedDelete->getOwningModule()->isGlobalModule());
// Sized deallocation is not enabled by default. So we skip it here.
hasParameter(0, hasType(pointerType(pointee(voidType())))))
.bind("operator delete[]"),
Ctx));
- EXPECT_TRUE(ArrayDelete->getOwningModule());
+ ASSERT_TRUE(ArrayDelete->getOwningModule());
EXPECT_TRUE(ArrayDelete->getOwningModule()->isGlobalModule());
// void operator delete[](void*, std::align_val_t) noexcept;
hasParameter(1, hasType(enumDecl(hasName("std::align_val_t")))))
.bind("operator delete[]"),
Ctx));
- EXPECT_TRUE(AlignedArrayDelete->getOwningModule());
+ ASSERT_TRUE(AlignedArrayDelete->getOwningModule());
EXPECT_TRUE(AlignedArrayDelete->getOwningModule()->isGlobalModule());
}