From: Manuel Klimek Date: Wed, 6 May 2015 12:12:22 +0000 (+0000) Subject: Remove deprecated version of reformat. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=077e5b792caefad1948e7b8a880be058e86ab9b5;p=clang Remove deprecated version of reformat. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236594 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 6b1c0af3db..3cb4e699c4 100644 --- a/include/clang/Format/Format.h +++ b/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/lib/Format/Format.cpp b/lib/Format/Format.cpp index b41528ee56..e7ebd68515 100644 --- a/lib/Format/Format.cpp +++ b/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) {