History log of /external/clang/lib/Tooling/Refactoring.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ef8225444452a1486bd721f3285301fe84643b00 21-Jul-2014 Stephen Hines <srhines@google.com> Update Clang for rebase to r212749.

This also fixes a small issue with arm_neon.h not being generated always.

Includes a cherry-pick of:
r213450 - fixes mac-specific header issue
r213126 - removes a default -Bsymbolic on Android

Change-Id: I2a790a0f5d3b2aab11de596fc3a74e7cbc99081d
/external/clang/lib/Tooling/Refactoring.cpp
6bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89 29-May-2014 Stephen Hines <srhines@google.com> Update Clang for 3.5 rebase (r209713).

Change-Id: I8c9133b0f8f776dc915f270b60f94962e771bc83
/external/clang/lib/Tooling/Refactoring.cpp
651f13cea278ec967336033dd032faef0e9fc2ec 24-Apr-2014 Stephen Hines <srhines@google.com> Updated to Clang 3.5a.

Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
/external/clang/lib/Tooling/Refactoring.cpp
6bf97fb15c09db9a0238ccb73be2dbf9cd77a7ee 29-Oct-2013 Alp Toker <alp@nuanti.com> Use Rewriter::overwriteChangedFiles() directly

This replaces the custom code in RefactoringTool::saveRewrittenFiles() which
lacked atomic file saving and error diagnostics, resolving an old FIXME from
r157331.

Landing this time with the proper return code, plus a very unhelpful comment
cleared up.

Rubber-stamped by Manuel Klimek.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193594 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
2dd4710a1237f4ae089a6b91ca2fc34c38c5163e 29-Oct-2013 Alp Toker <alp@nuanti.com> Revert "Use Rewriter::overwriteChangedFiles() directly"

This wasn't ready for prime time yet, seems to break tools-extra.

This reverts commit r193590.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193592 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
bc4c6bc089d3685d3807014d7328fef8fa6a9834 29-Oct-2013 Alp Toker <alp@nuanti.com> Use Rewriter::overwriteChangedFiles() directly

The old code in RefactoringTool::saveRewrittenFiles() lacked
atomic moves and diagnostics and had FIXME to this effect.

Rubber-stamped by Manuel Klimek.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193590 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
19b60a524c53ada17a31b5c9a96c7885ca48c825 18-Oct-2013 Ariel J. Bernal <ariel.j.bernal@intel.com> Reverted r192992 broke windows and freebsd builds.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192997 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
044d01f6844536aa548c3e6611c377fe28a2082f 18-Oct-2013 Ariel J. Bernal <ariel.j.bernal@intel.com> This patch fixes replacements that are not applied when relative paths are
specified.

In particular it makes sure that relative paths for non-virtual files aren't
made absolute.
Added unittest.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192992 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
d4099c3348589e845f9f4666fb0b8ef9b7a4a796 09-Oct-2013 Ariel J. Bernal <ariel.j.bernal@intel.com> Revert commit r192299 until find a way to account for simlinks in OS X.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192313 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
b71aa7af7f4f9140c7bbcccca30aeecc671d767f 09-Oct-2013 Ariel J. Bernal <ariel.j.bernal@intel.com> This patch fixes replacements that are not applied when relative paths are
specified.

In particular it makes sure that relative paths for non-virtual files aren't
made absolute.
Added unittest test.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192299 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
d11344a728c7ffab17e5557506edfbcbae18d34e 01-Oct-2013 Ariel J. Bernal <ariel.j.bernal@intel.com> Fixed replacements for files with relative paths are not applied.

Replacements were no applied when using a compilation database with paths in the
compilation command relative to the compile directory. This patch makes those
paths abosulte.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191776 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
a778cde0ddf4c47a63786fb1067f25c1fbfcf19d 27-Aug-2013 Edwin Vane <edwin.vane@intel.com> Adding a vector version of clang::tooling::shiftedCodePosition().

During the transition of clang::tooling::Replacements from std::set to
std::vector, functions such as clang::tooling::applyAllReplacements() have been
duplicated to take a std::vector<Replacement>. Applying this same temporary
duplication to clang::tooling::shiftedCodePosition().



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189358 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
05e4af0b92f8b1febeb5abafd1f128cb5c3e00a4 16-Aug-2013 Edwin Vane <edwin.vane@intel.com> Tweak Replacement comparisons

* Introduce operator< to replace Replacement::Less
* Make operator== and operator< on Replacements non-member functions
* Change order of comparisons in operator< to do string comparisons last



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188550 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
b58cfd93c49727c1d471ce71901502df824556c7 13-Aug-2013 Edwin Vane <edwin.vane@intel.com> Adding a vector version of tooling::applyAllReplacements

One day soon, tooling::Replacements will be changed from being implemented as
an std::set to being implemented as an std::vector. Until then, some new code
using vectors of Replacements would enjoy having a version of
applyAllReplacements that takes a vector.

Differential Revision: http://llvm-reviews.chandlerc.com/D1380



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188295 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
95f0766c1942c8cdc9f913a083ad2bfc4c0c27c9 13-Aug-2013 Edwin Vane <edwin.vane@intel.com> Fixing a conflict detection bug in tooling::deduplicate

If a Replacment is contained within the conflict range being built, the
conflict range would be erroneously shortened. Now fixed. Tests updated to
catch this case.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188287 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
d5692dbfeb97ed2e7ff11bca26059fa735e1b308 08-Aug-2013 Edwin Vane <edwin.vane@intel.com> Introduce Replacement deduplication and conflict detection function

Summary:
This patch adds tooling::deduplicate() which removes duplicates from and
looks for conflicts in a vector of Replacements.

Differential Revision: http://llvm-reviews.chandlerc.com/D1314



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187979 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
76a2ea3d8a0c3f3a54f293e305ae16f654eab04f 17-Jul-2013 David Blaikie <dblaikie@gmail.com> Constify Replacements parameter to applyAllReplacements.

http://llvm-reviews.chandlerc.com/D1169

Patch by Guillaume Papin.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186526 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
d965f95daa97097c8ddc5e1165ceae585a888719 16-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Update for llvm API change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
6bd3b93200c6ae141d0f7444ffb4cacd52b183ed 21-May-2013 Daniel Jasper <djasper@google.com> Let clang-format move the cursor appropriately.

With this patch, clang-format will try to keep the cursor at the
original code position in editor integrations (implemented for emacs and
vim). This means, after formatting, clang-format will try to keep the
cursor on the same character of the same token.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
8a99945769aa83270bda4ae4890f519800aa19eb 16-May-2013 Daniel Jasper <djasper@google.com> Add a more convenient interface to use clang-format.

It turns out that several implementations go through the trouble of
setting up a SourceManager and Lexer and abstracting this into a
function makes usage easier.

Also abstracts SourceManager-independent ranges out of
tooling::Refactoring and provides a convenience function to create them
from line ranges.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181997 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
cfa88f893915ceb8ae4ce2f17c46c24a4d67502f 12-Jan-2013 Dmitri Gribenko <gribozavr@gmail.com> Remove useless 'llvm::' qualifier from names like StringRef and others that are
brought into 'clang' namespace by clang/Basic/LLVM.h


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172323 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
d088a5f966c31462280d5ace29febc6889834611 11-Jan-2013 Edwin Vane <edwin.vane@intel.com> Allow RefactoringTool to write to memory instead of always to disk

RefactoringTool::run() always writes the result of rewrites to disk.
Instead, make this optional and provide a method for getting the
refactoring results in a memory buffer instead.

Also made ClangTool polymorphic so RefactoringTool could inherit from it
to properly express the IS-A relationship. This change also provides
access to ClangTool's public interface, e.g. mapVirtualFile() which is
important once refactored buffers start living in memory instead of on
disk.

Reviewers: klimek



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172219 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
02c23ebf41ae2f70da0ba7337e05c51fbfe35f7f 24-Oct-2012 Douglas Gregor <dgregor@apple.com> Make DiagnosticOptions intrusively reference-counted, and make sure
the various stakeholders bump up the reference count. In particular,
the diagnostics engine now keeps the DiagnosticOptions object alive.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
305c613af6cfc40e519c75d9d2c84c6fa9a841c0 01-Sep-2012 Ted Kremenek <kremenek@apple.com> Split library clangRewrite into clangRewriteCore and clangRewriteFrontend.
This is similar to how we divide up the StaticAnalyzer libraries to separate
core functionality to what is clearly associated with Frontend actions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
5d51e8894624d5a12ed2c4fd80c31112d3d70f80 30-May-2012 Manuel Klimek <klimek@google.com> Adds a toString method to Replacement, which helps debugging.
Adds missing header guards to Refactoring.h.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157694 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp
f9d4cbd3dd1eb4cf3ec3c5ec7acc310415beeefd 23-May-2012 Manuel Klimek <klimek@google.com> Adds the Refactoring library, which is a layer on top of the Tooling library
that allows easy refactoring across translation units.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157331 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/Tooling/Refactoring.cpp