[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE323865: [clang-move] Clever on handling header file which includes itself. (authored by hokein, committed by ). Changed prior to commit: https://reviews.llvm.org/D42639?vs=132111&id=132136#toc Reposi

[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-31 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. lg Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42639 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 132111. hokein marked an inline comment as done. hokein added a comment. address review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D42639 Files: clang-move/ClangMove.cpp clang-move/ClangMove.h unittests/clang-move/ClangMov

[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-31 Thread Haojian Wu via Phabricator via cfe-commits
hokein marked an inline comment as done. hokein added inline comments. Comment at: clang-move/ClangMove.cpp:708 +// Find old.h includes "old.h". +if (AbsoluteOldHeader == AbsoluteOldHeader) { + OldHeaderIncludeRangeInHeader = IncludeFilenameRange; io

[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-29 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-move/ClangMove.cpp:708 +// Find old.h includes "old.h". +if (AbsoluteOldHeader == AbsoluteOldHeader) { + OldHeaderIncludeRangeInHeader = IncludeFilenameRange; This check is always true? ==

[PATCH] D42639: [clang-move] Clever on handling header file which includes itself.

2018-01-29 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: ioeric. Herald added a subscriber: klimek. 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 projec