llvm-project/clang-tools-extra/clang-move
Haojian Wu fb68ca1825 [clang-move] Clever on handling header file which includes itself.
Summary:
Previously, we assume only old.cc includes "old.h", which would
introduce incorrect fixes for the cases where old.h also includes `#include "old.h"`

Although it should not be occurred in real projects, clang-move should handle this.

Old.h:

```
class Foo {};
```

after moving to a new old.h:

```
class Foo {};
```

Reviewers: ioeric

Reviewed By: ioeric

Subscribers: cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D42639

llvm-svn: 323865
2018-01-31 12:12:29 +00:00
..
tool [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
CMakeLists.txt [clang-move] Only move used helper declarations. 2017-01-03 09:00:51 +00:00
ClangMove.cpp [clang-move] Clever on handling header file which includes itself. 2018-01-31 12:12:29 +00:00
ClangMove.h [clang-move] Clever on handling header file which includes itself. 2018-01-31 12:12:29 +00:00
HelperDeclRefGraph.cpp [clang-move] Handle helpers with forward declarations. 2017-01-17 13:22:37 +00:00
HelperDeclRefGraph.h [clang-move] Only move used helper declarations. 2017-01-03 09:00:51 +00:00