summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-move
Commit message (Collapse)AuthorAgeFilesLines
* Re-enable a clang-move test on windows.Eric Liu2018-05-181-4/+0
| | | | | | This was fixed by r332612. llvm-svn: 332701
* Disable a failing clang-move test on windows.Eric Liu2018-05-171-0/+4
| | | | | | | | | | | This was broken by r332590 but is likely caused by a bug in clang-move. http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/12007 I don't have a windows machine to effectively debug the issue, so I'll investigate further but for now disable the failing test on windows to unbreak build bots. llvm-svn: 332620
* [clang-move] Fix test failing due to clang-format changeKrasimir Georgiev2018-03-271-0/+2
| | | | | | | r328621 reverted the removal of empty lines before the closing `}` in namespaces. llvm-svn: 328622
* [clang-move] Fix the failing test caused by changes in clang-format.Haojian Wu2018-03-191-1/+0
| | | | llvm-svn: 327887
* [clang-move] Fix move-used-helper-decls.cpp test.Fangrui Song2018-03-191-1/+0
| | | | llvm-svn: 327885
* Avoid assumption that lit tests are writable. NFCSam McCall2018-01-082-7/+10
| | | | llvm-svn: 322001
* [clang-move] Extend clang-move to support moving global variable.Haojian Wu2017-02-273-0/+63
| | | | | | | | | | | | | | Summary: Also support dumping global variables. Reviewers: ioeric Reviewed By: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D30337 llvm-svn: 296337
* [clang-move] Handle helpers with forward declarations.Haojian Wu2017-01-173-1/+74
| | | | | | | | | | | | Reviewers: ioeric Reviewed By: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28801 llvm-svn: 292215
* [clang-move] Ignore using decls which are defined in macros.Haojian Wu2017-01-173-0/+58
| | | | | | | | | | | | | | | | | Summary: Also ignore helpers which are defined in macro. Currently clang-move doesn't handle macro well enough, especiall for complex macros. This patch will ignore declarations in macros to make the behavior of clang-move more correct. Reviewers: ioeric Reviewed By: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28774 llvm-svn: 292207
* [clang-move] Support moving type alias declarations.Haojian Wu2017-01-042-0/+63
| | | | | | | | | | Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28279 llvm-svn: 290967
* [clang-move] Support moving enum declarations.Haojian Wu2017-01-032-0/+53
| | | | | | | | | | Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28228 llvm-svn: 290891
* [clang-move] Only move used helper declarations.Haojian Wu2017-01-035-10/+510
| | | | | | | | | | | | | | | | | Summary: Instead of moving all the helper declarations blindly, this patch implements an AST-based call graph solution to make clang-move only move used helper decls to new.cc and remove unused decls in old.cc. Depends on D27674. Reviewers: ioeric Subscribers: mgorny, cfe-commits Differential Revision: https://reviews.llvm.org/D27673 llvm-svn: 290873
* [clang-move] Fix not moving using-decls in global namespace in old.ccHaojian Wu2016-11-182-2/+15
| | | | | | | | | | Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26844 llvm-svn: 287330
* [clang-move] Support moving function.Haojian Wu2016-11-163-0/+86
| | | | | | | | | | Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26665 llvm-svn: 287101
* [clang-move] Support template class.Haojian Wu2016-11-103-0/+129
| | | | | | | | | | Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26423 llvm-svn: 286427
* [clang-move] Move all code from old.h/cc directly when moving all class ↵Haojian Wu2016-11-082-9/+11
| | | | | | | | | | | | | | declarations from old.h. Summary: When moving all code to new.h/cc, these code also will be formatted based on the given code style. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26236 llvm-svn: 286281
* [clang-move] Move using-decl in old cc.Haojian Wu2016-10-192-1/+36
| | | | | | | | | | | | | | Summary: Another fix is to move the whole anonymous namespace declaration completely instead of moving fun/var declarations only. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25762 llvm-svn: 284592
* [clang-move] Add header guard for the new header.Haojian Wu2016-10-142-0/+7
| | | | | | | | | | | | | | | | | | Summary: The header guard generated by clang-move isn't always a perfect style, just avoid getting the header included multiple times during compiling period. Also, we can use llvm-Header-guard clang-tidy check to correct the guard automatically. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25610 llvm-svn: 284233
* [clang-move] Matching static class member more correctly.Haojian Wu2016-10-143-0/+6
| | | | | | | | | | Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25598 llvm-svn: 284221
* [clang-move] Better support enclosing class.Haojian Wu2016-10-133-1/+32
| | | | | | | | | | | | | | | Summary: * When moving an outermost enclosing class, all its nested classes should also be moved together. * Add a test for not moving nested class. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25369 llvm-svn: 284111
* Recommit r283538 "[clang-move] Support moving multiple classes in one run."Haojian Wu2016-10-134-2/+116
| | | | llvm-svn: 284109
* [clang-move] Compare with real paths of symlinksHaojian Wu2016-10-122-13/+17
| | | | | | | | | | | | Summary: MakeAbsolutePath does wrong things with symlinks previously. When comparing with a symlink, we need to compare with the real path of it. This fixes issues when the build directory is a symlink. Reviewers: ioeric Subscribers: beanz, mgorny, cfe-commits, bkramer Differential Revision: https://reviews.llvm.org/D25508 llvm-svn: 284020
* Revert "[clang-move] Support moving multiple classes in one run."Renato Golin2016-10-075-117/+11
| | | | | | | | | | | This reverts commit r283526 et al as it keeps randomly breaking bots, even after the commit has gone, on other people's commit ranges. Revert "[clang-move] Simplify lint tests" (r283545). Revert "Fix buildbot error." (r283534). Revert "Revert "fix buildbot error" since it is not right fix." (r283538). llvm-svn: 283553
* [clang-move] Simplify lint testsHaojian Wu2016-10-073-19/+5
| | | | | | No need to use compilation database. llvm-svn: 283545
* Revert "fix buildbot error" since it is not right fix.Haojian Wu2016-10-072-2/+0
| | | | llvm-svn: 283538
* Fix buildbot error.Haojian Wu2016-10-072-0/+2
| | | | | | | The error maybe caused by the mixed environment of the two lint tests. Cleanup the environment before running each test. llvm-svn: 283534
* [clang-move] Support moving multiple classes in one run.Haojian Wu2016-10-075-2/+122
| | | | | | | | | | Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25309 llvm-svn: 283526
* [clang-move] Cleanup around replacements.Haojian Wu2016-10-061-7/+2
| | | | | | | | | | | | | | Summary: cleanup the remaining empty namespace after moving out the class defintitions. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25282 llvm-svn: 283424
* [clang-move] Make it support both relative and absolute file path arguments.Haojian Wu2016-10-044-0/+60
Reviewers: ioeric Subscribers: beanz, mgorny, cfe-commits Differential Revision: https://reviews.llvm.org/D24922 llvm-svn: 283202
OpenPOWER on IntegriCloud