summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/RefactoringTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Recommit 213307: unique_ptr-ify ownership of ASTConsumers (reverted in r213325)David Blaikie2014-08-101-3/+4
| | | | | | | | After post-commit review and community discussion, this seems like a reasonable direction to continue, making ownership semantics explicit in the source using the type system. llvm-svn: 215323
* Revert "unique_ptr-ify ownership of ASTConsumers"David Blaikie2014-07-171-4/+3
| | | | | | | | | This reverts commit r213307. Reverting to have some on-list discussion/confirmation about the ongoing direction of smart pointer usage in the LLVM project. llvm-svn: 213325
* unique_ptr-ify ownership of ASTConsumersDavid Blaikie2014-07-171-3/+4
| | | | | | | | | (after fixing a bug in MultiplexConsumer I noticed the ownership of the nested consumers was implemented with raw pointers - so this fixes that... and follows the source back to its origin pushing unique_ptr ownership up through there too) llvm-svn: 213307
* Replace llvm::error_code with std::error_code.Rafael Espindola2014-06-121-3/+2
| | | | llvm-svn: 210780
* [C++11] Use 'nullptr'. Unittests edition.Craig Topper2014-06-081-2/+2
| | | | llvm-svn: 210423
* Fix two test-only leaks found by LSan.Nico Weber2014-04-241-1/+3
| | | | | | | | | The result of getBufferForFile() must be freed. (Should we change functions that expect the caller to assume ownership so that they return unique_ptrs instead? Then the type system makes sure we get this right.) llvm-svn: 207074
* Reverted r192992 broke windows and freebsd builds.Ariel J. Bernal2013-10-181-46/+0
| | | | llvm-svn: 192997
* This patch fixes replacements that are not applied when relative paths areAriel J. Bernal2013-10-181-0/+46
| | | | | | | | | | specified. In particular it makes sure that relative paths for non-virtual files aren't made absolute. Added unittest. llvm-svn: 192992
* Revert commit r192299 until find a way to account for simlinks in OS X.Ariel J. Bernal2013-10-091-53/+0
| | | | llvm-svn: 192313
* This patch fixes replacements that are not applied when relative paths areAriel J. Bernal2013-10-091-0/+53
| | | | | | | | | | specified. In particular it makes sure that relative paths for non-virtual files aren't made absolute. Added unittest test. llvm-svn: 192299
* Adding a vector version of clang::tooling::shiftedCodePosition().Edwin Vane2013-08-271-0/+19
| | | | | | | | | 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(). llvm-svn: 189358
* Have Range::overlapsWith use positive logicEdwin Vane2013-08-131-0/+1
| | | | | | Improved test to catch missing case. llvm-svn: 188304
* Adding a vector version of tooling::applyAllReplacementsEdwin Vane2013-08-131-0/+15
| | | | | | | | | | | 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 llvm-svn: 188295
* Fixing a conflict detection bug in tooling::deduplicateEdwin Vane2013-08-131-6/+11
| | | | | | | | 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. llvm-svn: 188287
* Introduce Replacement deduplication and conflict detection functionEdwin Vane2013-08-081-0/+71
| | | | | | | | | | 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 llvm-svn: 187979
* Adds overlapsWith and contains predicates on tooling::Range.Manuel Klimek2013-07-191-0/+15
| | | | | | Patch by Guillaume Papin. llvm-svn: 186670
* Use llvm::sys::fs::createTemporaryFile.Rafael Espindola2013-07-051-1/+1
| | | | llvm-svn: 185717
* Remove last use of PathV1.h from clang.Rafael Espindola2013-06-261-19/+25
| | | | | | | Instead of creating a temporary directory, remember the set of temporary files we create. llvm-svn: 184951
* Include PathV1.h in a file that uses it.Rafael Espindola2013-06-111-0/+1
| | | | llvm-svn: 183786
* Let clang-format move the cursor appropriately.Daniel Jasper2013-05-211-0/+24
| | | | | | | | | 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. llvm-svn: 182373
* Remove useless 'llvm::' qualifier from names like StringRef and others that areDmitri Gribenko2013-01-121-2/+2
| | | | | | brought into 'clang' namespace by clang/Basic/LLVM.h llvm-svn: 172323
* Sort the #include lines for unittests/...Chandler Carruth2012-12-041-2/+2
| | | | | | I've tried to place sensible headers at the top as main-module headers. llvm-svn: 169243
* Buildbot debugging is funDouglas Gregor2012-10-231-1/+1
| | | | llvm-svn: 166516
* Split library clangRewrite into clangRewriteCore and clangRewriteFrontend.Ted Kremenek2012-09-011-1/+1
| | | | | | | This is similar to how we divide up the StaticAnalyzer libraries to separate core functionality to what is clearly associated with Frontend actions. llvm-svn: 163050
* Update unittests for include change.Benjamin Kramer2012-07-041-0/+1
| | | | llvm-svn: 159724
* Adds the Refactoring library, which is a layer on top of the Tooling libraryManuel Klimek2012-05-231-0/+304
that allows easy refactoring across translation units. llvm-svn: 157331
OpenPOWER on IntegriCloud