Consider the following code #include <QDateTime> struct Foo { QDate someDate() { return {}; } }; int main(int argc, char *argv[]) { Foo *foo = new Foo; QDateTime{foo->someDate()}; } clazy warns that the QDateTime ctor is deprecated and suggests to use QDate::startOfDay() The fixit generates: foo->startOfDay(); while it should be foo->someDate().startOfDay();