]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185295 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index 7d6bc14241ec1ccc791af9d9cfdd0a8d9bc27b1d..7b9950a43b0151fe4611bfbc97c6a5262fef9fbf 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) {