]> granicus.if.org Git - clang/commit
Fix bug in conflict check for Replacements::add().
authorManuel Klimek <klimek@google.com>
Wed, 3 Aug 2016 15:12:00 +0000 (15:12 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 3 Aug 2016 15:12:00 +0000 (15:12 +0000)
commit7604798c68651927fb923ec1c0f6cda70122fc07
tree3f75b5795b5622f935abd181e35c25a24f531d85
parent7c12ee2f0bb2c9a06b9f59c288db1f441e55972d
Fix bug in conflict check for Replacements::add().

We would not detect conflicts when inserting insertions at the same
offset as previously contained replacements.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277603 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/Core/Replacement.cpp
unittests/Tooling/RefactoringTest.cpp