aboutsummaryrefslogtreecommitdiff
path: root/clang-move/ClangMove.cpp
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-08-02 10:30:56 +0000
committerEric Liu <ioeric@google.com>2018-08-02 10:30:56 +0000
commit5c8876801e26de012bd46ef6e01d36dc8a9d3068 (patch)
tree6859e00fa684c73cbe7d9b1db6e928ec9b497cc0 /clang-move/ClangMove.cpp
parent1747bfa3da8acf857313412a6f1f59cf5860babd (diff)
downloadclang-tools-extra-5c8876801e26de012bd46ef6e01d36dc8a9d3068.tar.gz
Replace hardcoded format styles in a few tools with the default style in libFormat.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@338696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-move/ClangMove.cpp')
-rw-r--r--clang-move/ClangMove.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-move/ClangMove.cpp b/clang-move/ClangMove.cpp
index e126852e..b7a9363d 100644
--- a/clang-move/ClangMove.cpp
+++ b/clang-move/ClangMove.cpp
@@ -795,7 +795,8 @@ void ClangMoveTool::removeDeclsInOldFiles() {
// Ignore replacements for new.h/cc.
if (SI == FilePathToFileID.end()) continue;
llvm::StringRef Code = SM.getBufferData(SI->second);
- auto Style = format::getStyle("file", FilePath, Context->FallbackStyle);
+ auto Style = format::getStyle(format::DefaultFormatStyle, FilePath,
+ Context->FallbackStyle);
if (!Style) {
llvm::errs() << llvm::toString(Style.takeError()) << "\n";
continue;