objectbox-generator icon indicating copy to clipboard operation
objectbox-generator copied to clipboard

C++ 14+ output option to use make-unique

Open greenrobot opened this issue 2 years ago • 0 comments

E.g. clang-tidy complains about generated code:

error: use std::make_unique instead [modernize-make-unique,-warnings-as-errors]
    auto object = std::unique_ptr<MyEntity>(new MyEntity());

greenrobot avatar May 24 '22 20:05 greenrobot