From 83f81d712616130e62487f76522702fb8bca5002 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 30 Jun 2013 22:29:28 +0000 Subject: [PATCH] Put helper classes into anonymous namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185295 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/Format.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.40.0