Unbreak build with libc++, whose std::list<T> requires T to be complete.
authorDouglas Gregor <dgregor@apple.com>
Thu, 5 Sep 2013 18:28:53 +0000 (18:28 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 5 Sep 2013 18:28:53 +0000 (18:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190075 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/UnwrappedLineParser.h

index fad37917fbe31588fe49d1b51e2579a46807e5ca..c79c35e1b9d62d4f4601a0f323f581ce373dd4f5 100644 (file)
@@ -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