summaryrefslogtreecommitdiffstats
path: root/clang-move
diff options
context:
space:
mode:
Diffstat (limited to 'clang-move')
-rw-r--r--clang-move/CMakeLists.txt2
-rw-r--r--clang-move/HelperDeclRefGraph.cpp11
-rw-r--r--clang-move/HelperDeclRefGraph.h7
-rw-r--r--clang-move/Move.cpp (renamed from clang-move/ClangMove.cpp)16
-rw-r--r--clang-move/Move.h (renamed from clang-move/ClangMove.h)9
-rw-r--r--clang-move/tool/CMakeLists.txt2
-rw-r--r--clang-move/tool/ClangMove.cpp (renamed from clang-move/tool/ClangMoveMain.cpp)11
7 files changed, 26 insertions, 32 deletions
diff --git a/clang-move/CMakeLists.txt b/clang-move/CMakeLists.txt
index 37a305d3..c63127ea 100644
--- a/clang-move/CMakeLists.txt
+++ b/clang-move/CMakeLists.txt
@@ -3,7 +3,7 @@ set(LLVM_LINK_COMPONENTS
)
add_clang_library(clangMove
- ClangMove.cpp
+ Move.cpp
HelperDeclRefGraph.cpp
LINK_LIBS
diff --git a/clang-move/HelperDeclRefGraph.cpp b/clang-move/HelperDeclRefGraph.cpp
index 28200e0b..b47e7f4e 100644
--- a/clang-move/HelperDeclRefGraph.cpp
+++ b/clang-move/HelperDeclRefGraph.cpp
@@ -1,14 +1,13 @@
-//===-- UsedHelperDeclFinder.cpp - AST-based call graph for helper decls --===//
+//===-- HelperDeclRefGraph.cpp - AST-based call graph for helper decls ----===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "HelperDeclRefGraph.h"
-#include "ClangMove.h"
+#include "Move.h"
#include "clang/AST/Decl.h"
#include "llvm/Support/Debug.h"
#include <vector>
diff --git a/clang-move/HelperDeclRefGraph.h b/clang-move/HelperDeclRefGraph.h
index 11b3c9c1..a9cc22df 100644
--- a/clang-move/HelperDeclRefGraph.h
+++ b/clang-move/HelperDeclRefGraph.h
@@ -1,9 +1,8 @@
//===-- UsedHelperDeclFinder.h - AST-based call graph for helper decls ----===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
diff --git a/clang-move/ClangMove.cpp b/clang-move/Move.cpp
index 3ab3d4eb..efb67c68 100644
--- a/clang-move/ClangMove.cpp
+++ b/clang-move/Move.cpp
@@ -1,13 +1,12 @@
-//===-- ClangMove.cpp - Implement ClangMove functationalities ---*- C++ -*-===//
+//===-- Move.cpp - Implement ClangMove functationalities --------*- C++ -*-===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
-#include "ClangMove.h"
+#include "Move.h"
#include "HelperDeclRefGraph.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Basic/SourceManager.h"
@@ -88,8 +87,7 @@ std::string MakeAbsolutePath(StringRef CurrentDir, StringRef Path) {
std::string MakeAbsolutePath(const SourceManager &SM, StringRef Path) {
llvm::SmallString<128> AbsolutePath(Path);
if (std::error_code EC =
- SM.getFileManager().getVirtualFileSystem()->makeAbsolute(
- AbsolutePath))
+ SM.getFileManager().getVirtualFileSystem().makeAbsolute(AbsolutePath))
llvm::errs() << "Warning: could not make absolute file: '" << EC.message()
<< '\n';
// Handle symbolic link path cases.
@@ -766,7 +764,7 @@ void ClangMoveTool::removeDeclsInOldFiles() {
if (Context->Spec.OldDependOnNew &&
MakeAbsolutePath(SM, FilePath) ==
makeAbsolutePath(Context->Spec.OldHeader)) {
- // FIXME: Minimize the include path like include-fixer.
+ // FIXME: Minimize the include path like clang-include-fixer.
std::string IncludeNewH =
"#include \"" + Context->Spec.NewHeader + "\"\n";
// This replacment for inserting header will be cleaned up at the end.
diff --git a/clang-move/ClangMove.h b/clang-move/Move.h
index 94172181..da4bc444 100644
--- a/clang-move/ClangMove.h
+++ b/clang-move/Move.h
@@ -1,9 +1,8 @@
-//===-- ClangMove.h - Clang move -----------------------------------------===//
+//===-- Move.h - Clang move ----------------------------------------------===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
diff --git a/clang-move/tool/CMakeLists.txt b/clang-move/tool/CMakeLists.txt
index 6202e150..7bc4f30d 100644
--- a/clang-move/tool/CMakeLists.txt
+++ b/clang-move/tool/CMakeLists.txt
@@ -1,7 +1,7 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
add_clang_executable(clang-move
- ClangMoveMain.cpp
+ ClangMove.cpp
)
target_link_libraries(clang-move
diff --git a/clang-move/tool/ClangMoveMain.cpp b/clang-move/tool/ClangMove.cpp
index f50e973a..807425bb 100644
--- a/clang-move/tool/ClangMoveMain.cpp
+++ b/clang-move/tool/ClangMove.cpp
@@ -1,13 +1,12 @@
-//===-- ClangMoveMain.cpp - move defintion to new file ----------*- C++ -*-===//
+//===-- ClangMove.cpp - move defintion to new file --------------*- C++ -*-===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
-#include "ClangMove.h"
+#include "Move.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Tooling/ArgumentsAdjusters.h"