diff options
author | Eric Liu <ioeric@google.com> | 2018-08-02 10:30:56 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2018-08-02 10:30:56 +0000 |
commit | fa63e9831ef286f9ea2a7903b2541400a572fdf4 (patch) | |
tree | e61f645957392202fce827c17f6b93df3479fc5b /clang-tools-extra/clang-move/ClangMove.cpp | |
parent | 149fede165d59d9c520e7aba67846fef20a3b06b (diff) | |
download | bcm5719-llvm-fa63e9831ef286f9ea2a7903b2541400a572fdf4.tar.gz bcm5719-llvm-fa63e9831ef286f9ea2a7903b2541400a572fdf4.zip |
Replace hardcoded format styles in a few tools with the default style in libFormat.
llvm-svn: 338696
Diffstat (limited to 'clang-tools-extra/clang-move/ClangMove.cpp')
-rw-r--r-- | clang-tools-extra/clang-move/ClangMove.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-move/ClangMove.cpp b/clang-tools-extra/clang-move/ClangMove.cpp index e126852e382..b7a9363dc44 100644 --- a/clang-tools-extra/clang-move/ClangMove.cpp +++ b/clang-tools-extra/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; |