diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 8e9be6752ce58..8a34b4d9431b6 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -61,8 +61,8 @@ namespace llvm { namespace yaml { template <> struct ScalarEnumerationTraits { - static void enumeration(IO &IO, - FormatStyle::BreakBeforeNoexceptSpecifierStyle &Value) { + static void + enumeration(IO &IO, FormatStyle::BreakBeforeNoexceptSpecifierStyle &Value) { IO.enumCase(Value, "Never", FormatStyle::BBNSS_Never); IO.enumCase(Value, "OnlyWithParen", FormatStyle::BBNSS_OnlyWithParen); IO.enumCase(Value, "Always", FormatStyle::BBNSS_Always); @@ -3779,16 +3779,6 @@ tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style, return NamespaceEndCommentsFixer(*Env, Style).process().first; } -tooling::Replacements separateDefinitionBlocks(const FormatStyle &Style, - StringRef Code, - ArrayRef Ranges, - StringRef FileName) { - auto Env = Environment::make(Code, FileName, Ranges); - if (!Env) - return {}; - return DefinitionBlockSeparator(*Env, Style).process().first; -} - tooling::Replacements sortUsingDeclarations(const FormatStyle &Style, StringRef Code, ArrayRef Ranges,