forked from OSchip/llvm-project
Make clang-move use same file naming convention as other tools
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. Differential Revision: https://reviews.llvm.org/D59700 llvm-svn: 356780
This commit is contained in:
parent
f032e85d64
commit
71ebc9eb0b
|
@ -3,7 +3,7 @@ set(LLVM_LINK_COMPONENTS
|
||||||
)
|
)
|
||||||
|
|
||||||
add_clang_library(clangMove
|
add_clang_library(clangMove
|
||||||
ClangMove.cpp
|
Move.cpp
|
||||||
HelperDeclRefGraph.cpp
|
HelperDeclRefGraph.cpp
|
||||||
|
|
||||||
LINK_LIBS
|
LINK_LIBS
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "HelperDeclRefGraph.h"
|
#include "HelperDeclRefGraph.h"
|
||||||
#include "ClangMove.h"
|
#include "Move.h"
|
||||||
#include "clang/AST/Decl.h"
|
#include "clang/AST/Decl.h"
|
||||||
#include "llvm/Support/Debug.h"
|
#include "llvm/Support/Debug.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
//===-- ClangMove.cpp - Implement ClangMove functationalities ---*- C++ -*-===//
|
//===-- Move.cpp - Implement ClangMove functationalities --------*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||||
// See https://llvm.org/LICENSE.txt for license information.
|
// See https://llvm.org/LICENSE.txt for license information.
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "ClangMove.h"
|
#include "Move.h"
|
||||||
#include "HelperDeclRefGraph.h"
|
#include "HelperDeclRefGraph.h"
|
||||||
#include "clang/ASTMatchers/ASTMatchers.h"
|
#include "clang/ASTMatchers/ASTMatchers.h"
|
||||||
#include "clang/Basic/SourceManager.h"
|
#include "clang/Basic/SourceManager.h"
|
|
@ -1,4 +1,4 @@
|
||||||
//===-- ClangMove.h - Clang move -----------------------------------------===//
|
//===-- Move.h - Clang move ----------------------------------------------===//
|
||||||
//
|
//
|
||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||||
// See https://llvm.org/LICENSE.txt for license information.
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
@ -1,7 +1,7 @@
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
||||||
|
|
||||||
add_clang_executable(clang-move
|
add_clang_executable(clang-move
|
||||||
ClangMoveMain.cpp
|
ClangMove.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(clang-move
|
target_link_libraries(clang-move
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
//===-- ClangMoveMain.cpp - move defintion to new file ----------*- C++ -*-===//
|
//===-- ClangMove.cpp - move defintion to new file --------------*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||||
// See https://llvm.org/LICENSE.txt for license information.
|
// See https://llvm.org/LICENSE.txt for license information.
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "ClangMove.h"
|
#include "Move.h"
|
||||||
#include "clang/Frontend/TextDiagnosticPrinter.h"
|
#include "clang/Frontend/TextDiagnosticPrinter.h"
|
||||||
#include "clang/Rewrite/Core/Rewriter.h"
|
#include "clang/Rewrite/Core/Rewriter.h"
|
||||||
#include "clang/Tooling/ArgumentsAdjusters.h"
|
#include "clang/Tooling/ArgumentsAdjusters.h"
|
|
@ -15,7 +15,7 @@ static_library("clang-move") {
|
||||||
"//llvm/lib/Support",
|
"//llvm/lib/Support",
|
||||||
]
|
]
|
||||||
sources = [
|
sources = [
|
||||||
"ClangMove.cpp",
|
"Move.cpp",
|
||||||
"HelperDeclRefGraph.cpp",
|
"HelperDeclRefGraph.cpp",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,6 @@ executable("clang-move") {
|
||||||
]
|
]
|
||||||
include_dirs = [ ".." ]
|
include_dirs = [ ".." ]
|
||||||
sources = [
|
sources = [
|
||||||
"ClangMoveMain.cpp",
|
"ClangMove.cpp",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue