From: Craig Topper Date: Sun, 30 Jun 2013 22:29:28 +0000 (+0000) Subject: Put helper classes into anonymous namespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83f81d712616130e62487f76522702fb8bca5002;p=clang 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 7d6bc14241..7b9950a43b 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -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 Ranges) {