[PATCH] D23119: Fix quadratic runtime when adding items to tooling::Replacements.
Eric Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 3 07:34:55 PDT 2016
ioeric 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 think we should ignore replacement text when checking equality between `*I` and `R` here.
More information about the cfe-commits