r190075 - Unbreak build with libc++, whose std::list<T> requires T to be complete.

Douglas Gregor dgregor at apple.com
Thu Sep 5 11:28:54 PDT 2013


Author: dgregor
Date: Thu Sep  5 13:28:53 2013
New Revision: 190075

URL: http://llvm.org/viewvc/llvm-project?rev=190075&view=rev
Log:
Unbreak build with libc++, whose std::list<T> requires T to be complete.

Modified:
    cfe/trunk/lib/Format/UnwrappedLineParser.h

Modified: cfe/trunk/lib/Format/UnwrappedLineParser.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/UnwrappedLineParser.h?rev=190075&r1=190074&r2=190075&view=diff
==============================================================================
--- cfe/trunk/lib/Format/UnwrappedLineParser.h (original)
+++ cfe/trunk/lib/Format/UnwrappedLineParser.h Thu Sep  5 13:28:53 2013
@@ -33,7 +33,7 @@ struct UnwrappedLineNode;
 /// \c UnwrappedLineFormatter. The key property is that changing the formatting
 /// within an unwrapped line does not affect any other unwrapped lines.
 struct UnwrappedLine {
-  UnwrappedLine() : Level(0), InPPDirective(false), MustBeDeclaration(false) {}
+  UnwrappedLine();
 
   // FIXME: Don't use std::list here.
   /// \brief The \c Tokens comprising this \c UnwrappedLine.
@@ -172,6 +172,9 @@ struct UnwrappedLineNode {
   SmallVector<UnwrappedLine, 0> Children;
 };
 
+inline UnwrappedLine::UnwrappedLine()
+    : Level(0), InPPDirective(false), MustBeDeclaration(false) {}
+
 } // end namespace format
 } // end namespace clang
 





More information about the cfe-commits mailing list