Do not warn on .reset(.release()) expressions if the deleters are not
compatible.
Using plain assignment will probably not work.
Details
Details
Diff Detail
Diff Detail
Event Timeline
clang-tidy/misc/UniqueptrResetReleaseCheck.cpp | ||
---|---|---|
52 | Ah, I see. But then we can also check if the function pointers are compatible and allow the fix, can't we? |
Comment Actions
Added support for function pointers.
clang-tidy/misc/UniqueptrResetReleaseCheck.cpp | ||
---|---|---|
52 | Done |
nit: put return on the next line.