]> granicus.if.org Git - clang/commit
Allow replacements created from token ranges to specify language options.
authorManuel Klimek <klimek@google.com>
Wed, 3 Jun 2015 13:10:41 +0000 (13:10 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 3 Jun 2015 13:10:41 +0000 (13:10 +0000)
commitee4a96d72682d527cf55361156b5ee186b09d618
tree55ad6ece5deeba22208813d9f6fc3ae849fac1f2
parent500d43f72aeea3974472ced6bd8d02c66f294dd8
Allow replacements created from token ranges to specify language options.

The default language options will lead to incorrect replacements in C++
code, for example when trying to replace nested name specifiers ending
in "::".

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