From 24a8f55857a2864d8d99f9b12ac4fbc3ac3fc9d2 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Wed, 6 May 2015 12:12:22 +0000 Subject: [PATCH] Remove deprecated version of reformat. llvm-svn: 236594 --- clang/include/clang/Format/Format.h | 8 -------- clang/lib/Format/Format.cpp | 9 --------- 2 files changed, 17 deletions(-) diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 6b1c0af..3cb4e69 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -538,14 +538,6 @@ std::error_code parseConfiguration(StringRef Text, FormatStyle *Style); /// \brief Gets configuration in a YAML string. std::string configurationAsText(const FormatStyle &Style); -/// \brief Reformats the given \p Ranges in the token stream coming out of -/// \c Lex. -/// -/// DEPRECATED: Do not use. -tooling::Replacements reformat(const FormatStyle &Style, Lexer &Lex, - SourceManager &SourceMgr, - ArrayRef Ranges); - /// \brief Reformats the given \p Ranges in the file \p ID. /// /// Each range is extended on either end to its next bigger logic unit, i.e. diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index b41528e..e7ebd68 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -1487,15 +1487,6 @@ private: } // end anonymous namespace -tooling::Replacements reformat(const FormatStyle &Style, Lexer &Lex, - SourceManager &SourceMgr, - ArrayRef Ranges) { - if (Style.DisableFormat) - return tooling::Replacements(); - return reformat(Style, SourceMgr, - SourceMgr.getFileID(Lex.getSourceLocation()), Ranges); -} - tooling::Replacements reformat(const FormatStyle &Style, SourceManager &SourceMgr, FileID ID, ArrayRef Ranges) { -- 2.7.4