This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Don't generate fixes for invalid new expr location in modernize-make-unique.
ClosedPublic

Authored by hokein on Jan 22 2018, 2:18 AM.

Event Timeline

hokein created this revision.Jan 22 2018, 2:18 AM

Should we fix the endloc bug instead? Or is that too hard?

Should we fix the endloc bug instead? Or is that too hard?

Yeah, we should fix the clang bug (root cause). But I think this patch still makes sense -- as we usually ignore invalid cases in clang-tidy checks.

ilya-biryukov accepted this revision.Jan 23 2018, 1:45 AM

Yeah, we should fix the clang bug (root cause). But I think this patch still makes sense -- as we usually ignore invalid cases in clang-tidy checks.

Sure, thanks for clarifying. LGTM.
It's a bit unfortunate that the test will break when we fix an actual bug in clang. But it's just something to watch out for, still nice to have a test after the bug is fixed.

This revision is now accepted and ready to land.Jan 23 2018, 1:45 AM
This revision was automatically updated to reflect the committed changes.