@@ -40,26 +40,26 @@ struct UnwrappedLineNode;
40
40
// / \c UnwrappedLineFormatter. The key property is that changing the formatting
41
41
// / within an unwrapped line does not affect any other unwrapped lines.
42
42
struct UnwrappedLine {
43
- UnwrappedLine ();
43
+ UnwrappedLine () = default ;
44
44
45
45
// / The \c Tokens comprising this \c UnwrappedLine.
46
46
std::list<UnwrappedLineNode> Tokens;
47
47
48
48
// / The indent level of the \c UnwrappedLine.
49
- unsigned Level;
49
+ unsigned Level = 0 ;
50
50
51
51
// / The \c PPBranchLevel (adjusted for header guards) if this line is a
52
52
// / \c InMacroBody line, and 0 otherwise.
53
- unsigned PPLevel;
53
+ unsigned PPLevel = 0 ;
54
54
55
55
// / Whether this \c UnwrappedLine is part of a preprocessor directive.
56
- bool InPPDirective;
56
+ bool InPPDirective = false ;
57
57
// / Whether this \c UnwrappedLine is part of a pramga directive.
58
- bool InPragmaDirective;
58
+ bool InPragmaDirective = false ;
59
59
// / Whether it is part of a macro body.
60
- bool InMacroBody;
60
+ bool InMacroBody = false ;
61
61
62
- bool MustBeDeclaration;
62
+ bool MustBeDeclaration = false ;
63
63
64
64
// / \c True if this line should be indented by ContinuationIndent in
65
65
// / addition to the normal indention level.
@@ -410,11 +410,6 @@ struct UnwrappedLineNode {
410
410
SmallVector<UnwrappedLine, 0 > Children;
411
411
};
412
412
413
- inline UnwrappedLine::UnwrappedLine ()
414
- : Level(0 ), PPLevel(0 ), InPPDirective(false ), InPragmaDirective(false ),
415
- InMacroBody(false ), MustBeDeclaration(false ),
416
- MatchingOpeningBlockLineIndex(kInvalidIndex ) {}
417
-
418
413
} // end namespace format
419
414
} // end namespace clang
420
415
0 commit comments