clang-apply-replacements not de-duplicating replacements

I have the following YAML file generated from clang-tidy (test-case at the end of the email). Notice that there are two identical replacements /u/riyaz/test.cc@offset:117. I am aware that clang-tidy does NOT de-duplicate replacements. But I thought clang-apply-replacements was supposed to do it. However, it adds the replacement text (override keyword) @offset:117 twice.

This sounds like

  https://bugs.llvm.org/show_bug.cgi?id=38910

Thanks,

Stephen

Which version of clang-apply-replacements are you referring to?

clang-apply-replacements does de-duplicate replacements in all
branches except release_70.
See https://reviews.llvm.org/rL342951

Version 7.1.0