Home | History | Annotate | Download | only in Format

Lines Matching refs:Line

1002         // its the rhs offset of the first line of the template string, used to
1007 // rhs end of the previous line.
1038 // ColumnWidth is from backtick to last token in line.
1103 // We merge all tokens in a line that starts with a conflict marker
1104 // into a single token with a special token type that the unwrapped line
1108 // Get the position of the first token in the line.
1113 // Calculate the offset of the start of the current line.
1312 // The last line of the token always starts in column 0.
1352 // Index (in 'Tokens') of the last token that starts a new line.
1492 // Returns \c true if at least one line between I and E or one of their
1499 AnnotatedLine *Line = *I;
1500 Line->LeadingEmptyLinesAffected = affectsLeadingEmptyLines(*Line->First);
1502 // If a line is part of a preprocessor directive, it needs to be formatted
1504 if (Line->InPPDirective) {
1505 FormatToken *Last = Line->Last;
1512 if (affectsTokenRange(*Line->First, *Last,
1521 if (nonPPLineAffected(Line, PreviousLine))
1524 PreviousLine = Line;
1530 // Determines whether 'Line' is affected by the SourceRanges given as input.
1531 // Returns \c true if line or one if its children is affected.
1532 bool nonPPLineAffected(AnnotatedLine *Line,
1535 Line->ChildrenAffected =
1536 computeAffectedLines(Line->Children.begin(), Line->Children.end());
1537 if (Line->ChildrenAffected)
1540 // Stores whether one of the line's tokens is directly affected.
1546 // Stores whether the first child line of any of this line's tokens is
1550 for (FormatToken *Tok = Line->First; Tok; Tok = Tok->Next) {
1562 // Was this line moved, i.e. has it previously been on the same line as an
1563 // affected line?
1565 Line->First->NewlinesBefore == 0;
1568 Line->First->is(tok::comment) && Line->First->Next == nullptr &&
1569 Line->First->NewlinesBefore < 2 && PreviousLine &&
1574 Line->Affected = true;
1630 for (const AnnotatedLine* Line : Lines) {
1631 if (hasCpp03IncompatibleFormat(Line->Children))
1633 for (FormatToken *Tok = Line->First->Next; Tok; Tok = Tok->Next) {
1648 for (const AnnotatedLine* Line : Lines) {
1649 Line->Children);
1650 for (FormatToken *Tok = Line->First; Tok && Tok->Next; Tok = Tok->Next) {
1830 StringRef Line =
1833 StringRef Trimmed = Line.trim();
1839 if (!FormattingOff && !Line.endswith("\\")) {
1840 if (IncludeRegex.match(Line, &Matches)) {
1858 IncludesInBlock.push_back({IncludeName, Line, Prev, Category});
1965 // Parse YAML/JSON style from the command line.