From: Craig Topper Date: Mon, 1 Jul 2013 04:03:19 +0000 (+0000) Subject: Put helper classes in an anonymous namespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14e66498781b7d81639bdc48716e09700552ac21;p=clang Put helper classes in an anonymous namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185301 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/TokenAnnotator.cpp b/lib/Format/TokenAnnotator.cpp index 4a94055f9f..eb5616d5ab 100644 --- a/lib/Format/TokenAnnotator.cpp +++ b/lib/Format/TokenAnnotator.cpp @@ -20,6 +20,8 @@ namespace clang { namespace format { +namespace { + /// \brief A parser that gathers additional information about tokens. /// /// The \c TokenAnnotator tries to match parenthesis and square brakets and @@ -865,6 +867,8 @@ private: FormatToken *Current; }; +} // end anonymous namespace + void TokenAnnotator::annotate(AnnotatedLine &Line) { AnnotatingParser Parser(Line, Ident_in); Line.Type = Parser.parseLine();