r185301 - Put helper classes in an anonymous namespace.

Craig Topper craig.topper at gmail.com
Sun Jun 30 21:03:19 PDT 2013


Author: ctopper
Date: Sun Jun 30 23:03:19 2013
New Revision: 185301

URL: http://llvm.org/viewvc/llvm-project?rev=185301&view=rev
Log:
Put helper classes in an anonymous namespace.

Modified:
    cfe/trunk/lib/Format/TokenAnnotator.cpp

Modified: cfe/trunk/lib/Format/TokenAnnotator.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/TokenAnnotator.cpp?rev=185301&r1=185300&r2=185301&view=diff
==============================================================================
--- cfe/trunk/lib/Format/TokenAnnotator.cpp (original)
+++ cfe/trunk/lib/Format/TokenAnnotator.cpp Sun Jun 30 23:03:19 2013
@@ -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();





More information about the cfe-commits mailing list