summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-09-05 18:28:53 +0000
committerDouglas Gregor <dgregor@apple.com>2013-09-05 18:28:53 +0000
commit7cfed2113c4e87f15e566ca67b5cc02e6a99f06d (patch)
tree9c44b79fa5180393d01036cb0e3bd471f628aa5c /clang/lib/Format
parentcf7289f6d9ffcc2b55aa73ec0cc3fd9c649b9778 (diff)
downloadbcm5719-llvm-7cfed2113c4e87f15e566ca67b5cc02e6a99f06d.tar.gz
bcm5719-llvm-7cfed2113c4e87f15e566ca67b5cc02e6a99f06d.zip
Unbreak build with libc++, whose std::list<T> requires T to be complete.
llvm-svn: 190075
Diffstat (limited to 'clang/lib/Format')
-rw-r--r--clang/lib/Format/UnwrappedLineParser.h5
1 files changed, 4 insertions, 1 deletions
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<UnwrappedLine, 0> Children;
};
+inline UnwrappedLine::UnwrappedLine()
+ : Level(0), InPPDirective(false), MustBeDeclaration(false) {}
+
} // end namespace format
} // end namespace clang
OpenPOWER on IntegriCloud