Skip to content

Commit

Permalink
[clang-format][NFC] Remove the unused separateDefinitionBlocks()
Browse files Browse the repository at this point in the history
Also, fixed a formatting error introduced in 84e3fdf.
  • Loading branch information
owenca committed Sep 25, 2023
1 parent fc86d03 commit 7db211b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions clang/lib/Format/Format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ namespace llvm {
namespace yaml {
template <>
struct ScalarEnumerationTraits<FormatStyle::BreakBeforeNoexceptSpecifierStyle> {
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);
Expand Down Expand Up @@ -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<tooling::Range> 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<tooling::Range> Ranges,
Expand Down

0 comments on commit 7db211b

Please sign in to comment.