From: Craig Topper Date: Mon, 1 Jul 2013 04:21:54 +0000 (+0000) Subject: Put helper classes in an anonymous namespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e50947fcb029475f87578fb40f94982cec46c0c0;p=clang Put helper classes in an anonymous namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185303 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/UnwrappedLineParser.cpp b/lib/Format/UnwrappedLineParser.cpp index e1c1468bc1..1c2a8fe488 100644 --- a/lib/Format/UnwrappedLineParser.cpp +++ b/lib/Format/UnwrappedLineParser.cpp @@ -30,6 +30,8 @@ public: virtual FormatToken *setPosition(unsigned Position) = 0; }; +namespace { + class ScopedDeclarationState { public: ScopedDeclarationState(UnwrappedLine &Line, std::vector &Stack, @@ -114,6 +116,8 @@ private: FormatToken *Token; }; +} // end anonymous namespace + class ScopedLineState { public: ScopedLineState(UnwrappedLineParser &Parser, @@ -145,6 +149,8 @@ private: UnwrappedLine *PreBlockLine; }; +namespace { + class IndexedTokenSource : public FormatTokenSource { public: IndexedTokenSource(ArrayRef Tokens) @@ -170,6 +176,8 @@ private: int Position; }; +} // end anonymous namespace + UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, ArrayRef Tokens, UnwrappedLineConsumer &Callback)