From 7cfed2113c4e87f15e566ca67b5cc02e6a99f06d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 5 Sep 2013 18:28:53 +0000 Subject: Unbreak build with libc++, whose std::list requires T to be complete. llvm-svn: 190075 --- clang/lib/Format/UnwrappedLineParser.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'clang') diff --git a/clang/lib/Format/UnwrappedLineParser.h b/clang/lib/Format/UnwrappedLineParser.h index fad37917fbe..c79c35e1b9d 100644 --- a/clang/lib/Format/UnwrappedLineParser.h +++ b/clang/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 -- cgit v1.2.3