Put helper classes into anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185295 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 7d6bc14..7b9950a 100644
--- a/lib/Format/Format.cpp
+++ b/lib/Format/Format.cpp
@@ -248,6 +248,8 @@
return End->TotalLength - Tok.TotalLength + 1;
}
+namespace {
+
class UnwrappedLineFormatter {
public:
UnwrappedLineFormatter(const FormatStyle &Style, SourceManager &SourceMgr,
@@ -1639,6 +1641,8 @@
encoding::Encoding Encoding;
};
+} // end anonymous namespace
+
tooling::Replacements reformat(const FormatStyle &Style, Lexer &Lex,
SourceManager &SourceMgr,
std::vector<CharSourceRange> Ranges) {