Put helper classes into anonymous namespace.
authorCraig Topper <craig.topper@gmail.com>
Sun, 30 Jun 2013 22:29:28 +0000 (22:29 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 30 Jun 2013 22:29:28 +0000 (22:29 +0000)
llvm-svn: 185295

clang/lib/Format/Format.cpp

index 7d6bc14..7b9950a 100644 (file)
@@ -248,6 +248,8 @@ static unsigned getLengthToMatchingParen(const FormatToken &Tok) {
   return End->TotalLength - Tok.TotalLength + 1;
 }
 
+namespace {
+
 class UnwrappedLineFormatter {
 public:
   UnwrappedLineFormatter(const FormatStyle &Style, SourceManager &SourceMgr,
@@ -1639,6 +1641,8 @@ private:
   encoding::Encoding Encoding;
 };
 
+} // end anonymous namespace
+
 tooling::Replacements reformat(const FormatStyle &Style, Lexer &Lex,
                                SourceManager &SourceMgr,
                                std::vector<CharSourceRange> Ranges) {