[PATCH] D59700: Make clang-move use same file naming convention as other tools
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 22 09:15:31 PDT 2019
thakis created this revision.
thakis added a reviewer: hokein.
Herald added subscribers: llvm-commits, ioeric, mgorny.
Herald added a project: LLVM.
In all the other clang-foo tools, the main library file is called
Foo.cpp and the file in the tool/ folder is called ClangFoo.cpp.
Do this for clang-move too.
No intended behavior change.
https://reviews.llvm.org/D59700
Files:
clang-tools-extra/clang-move/CMakeLists.txt
clang-tools-extra/clang-move/ClangMove.cpp
clang-tools-extra/clang-move/ClangMove.h
clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
clang-tools-extra/clang-move/Move.cpp
clang-tools-extra/clang-move/Move.h
clang-tools-extra/clang-move/tool/CMakeLists.txt
clang-tools-extra/clang-move/tool/ClangMove.cpp
clang-tools-extra/clang-move/tool/ClangMoveMain.cpp
llvm/utils/gn/secondary/clang-tools-extra/clang-move/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/clang-move/tool/BUILD.gn
Index: llvm/utils/gn/secondary/clang-tools-extra/clang-move/tool/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/clang-tools-extra/clang-move/tool/BUILD.gn
+++ llvm/utils/gn/secondary/clang-tools-extra/clang-move/tool/BUILD.gn
@@ -14,6 +14,6 @@
]
include_dirs = [ ".." ]
sources = [
- "ClangMoveMain.cpp",
+ "ClangMove.cpp",
]
}
Index: llvm/utils/gn/secondary/clang-tools-extra/clang-move/BUILD.gn
===================================================================
--- llvm/utils/gn/secondary/clang-tools-extra/clang-move/BUILD.gn
+++ llvm/utils/gn/secondary/clang-tools-extra/clang-move/BUILD.gn
@@ -15,7 +15,7 @@
"//llvm/lib/Support",
]
sources = [
- "ClangMove.cpp",
+ "Move.cpp",
"HelperDeclRefGraph.cpp",
]
}
Index: clang-tools-extra/clang-move/tool/ClangMove.cpp
===================================================================
--- clang-tools-extra/clang-move/tool/ClangMove.cpp
+++ clang-tools-extra/clang-move/tool/ClangMove.cpp
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include "ClangMove.h"
+#include "Move.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Tooling/ArgumentsAdjusters.h"
Index: clang-tools-extra/clang-move/tool/CMakeLists.txt
===================================================================
--- clang-tools-extra/clang-move/tool/CMakeLists.txt
+++ clang-tools-extra/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
Index: clang-tools-extra/clang-move/Move.cpp
===================================================================
--- clang-tools-extra/clang-move/Move.cpp
+++ clang-tools-extra/clang-move/Move.cpp
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include "ClangMove.h"
+#include "Move.h"
#include "HelperDeclRefGraph.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Basic/SourceManager.h"
Index: clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
===================================================================
--- clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
+++ clang-tools-extra/clang-move/HelperDeclRefGraph.cpp
@@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "HelperDeclRefGraph.h"
-#include "ClangMove.h"
+#include "Move.h"
#include "clang/AST/Decl.h"
#include "llvm/Support/Debug.h"
#include <vector>
Index: clang-tools-extra/clang-move/CMakeLists.txt
===================================================================
--- clang-tools-extra/clang-move/CMakeLists.txt
+++ clang-tools-extra/clang-move/CMakeLists.txt
@@ -3,7 +3,7 @@
)
add_clang_library(clangMove
- ClangMove.cpp
+ Move.cpp
HelperDeclRefGraph.cpp
LINK_LIBS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59700.191894.patch
Type: text/x-patch
Size: 3038 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190322/437e0912/attachment.bin>
More information about the llvm-commits
mailing list