reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Format/UnwrappedLineFormatter.cpp
 1182   if (RootToken.is(tok::eof)) {
 1183     unsigned Newlines = std::min(RootToken.NewlinesBefore, 1u);
 1185     Whitespaces->replaceWhitespace(RootToken, Newlines, TokenIndent,
 1190       std::min(RootToken.NewlinesBefore, Style.MaxEmptyLinesToKeep + 1);
 1192   if (RootToken.is(tok::r_brace) &&
 1193       (!RootToken.Next ||
 1194        (RootToken.Next->is(tok::semi) && !RootToken.Next->Next)) &&
 1194        (RootToken.Next->is(tok::semi) && !RootToken.Next->Next)) &&
 1201   if (Newlines == 0 && !RootToken.IsFirst)
 1203   if (RootToken.IsFirst && !RootToken.HasUnescapedNewline)
 1203   if (RootToken.IsFirst && !RootToken.HasUnescapedNewline)
 1215       RootToken.isAccessSpecifier() && RootToken.NewlinesBefore == 1)
 1215       RootToken.isAccessSpecifier() && RootToken.NewlinesBefore == 1)
 1220       (!PreviousLine->InPPDirective || !RootToken.HasUnescapedNewline))
 1228     if (RootToken.isOneOf(tok::l_brace, tok::r_brace, tok::kw_case))
 1238   Whitespaces->replaceWhitespace(RootToken, Newlines, Indent, Indent,
 1240                                      !RootToken.HasUnescapedNewline);