From b48aeb0c6422e2781ffb2d4627dc7c94f5cec9bc Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 5 Sep 2013 18:28:53 +0000 Subject: [PATCH] Unbreak build with libc++, whose std::list requires T to be complete. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190075 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Format/UnwrappedLineParser.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Format/UnwrappedLineParser.h b/lib/Format/UnwrappedLineParser.h index fad37917fb..c79c35e1b9 100644 --- a/lib/Format/UnwrappedLineParser.h +++ b/lib/Format/UnwrappedLineParser.h @@ -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 Children; }; +inline UnwrappedLine::UnwrappedLine() + : Level(0), InPPDirective(false), MustBeDeclaration(false) {} + } // end namespace format } // end namespace clang -- 2.40.0