klimek added inline comments.

================
Comment at: cfe/trunk/lib/Tooling/Core/Replacement.cpp:169
@@ +168,3 @@
+  // starts after R is (I+1).
+  if (I != Replaces.end() && *I == R)
+    ++I;
----------------
ioeric wrote:
> I think we should ignore replacement text when checking equality between `*I` 
> and `R` here.
lower_bound already compares the replacement text, so as the comment says, 
unless I'm mistaken, this can only happen if R == AtEnd, which means that R has 
an empty replacement text.
Can you come up with a test that would break?


Repository:
  rL LLVM

https://reviews.llvm.org/D23119



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to