reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
2194 while (Current) { 2195 if (isFunctionDeclarationName(*Current, Line)) 2196 Current->Type = TT_FunctionDeclarationName; 2197 if (Current->is(TT_LineComment)) { 2198 if (Current->Previous->BlockKind == BK_BracedInit && 2199 Current->Previous->opensScope()) 2200 Current->SpacesRequiredBefore = 2203 Current->SpacesRequiredBefore = Style.SpacesBeforeTrailingComments; 2212 if (!Current->HasUnescapedNewline) { 2213 for (FormatToken *Parameter = Current->Previous; Parameter; 2225 } else if (Current->SpacesRequiredBefore == 0 && 2226 spaceRequiredBefore(Line, *Current)) { 2227 Current->SpacesRequiredBefore = 1; 2230 Current->MustBreakBefore = 2231 Current->MustBreakBefore || mustBreakBefore(Line, *Current); 2231 Current->MustBreakBefore || mustBreakBefore(Line, *Current); 2233 if (!Current->MustBreakBefore && InFunctionDecl && 2234 Current->is(TT_FunctionDeclarationName)) 2235 Current->MustBreakBefore = mustBreakForReturnType(Line); 2237 Current->CanBreakBefore = 2238 Current->MustBreakBefore || canBreakBefore(Line, *Current); 2238 Current->MustBreakBefore || canBreakBefore(Line, *Current); 2240 if (Current->Previous->Children.size() == 1) { 2241 FormatToken &LastOfChild = *Current->Previous->Children[0]->Last; 2245 const FormatToken *Prev = Current->Previous; 2246 if (Current->MustBreakBefore || Prev->Children.size() > 1 || 2249 Current->IsMultiline) 2250 Current->TotalLength = Prev->TotalLength + Style.ColumnLimit; 2252 Current->TotalLength = Prev->TotalLength + Current->ColumnWidth + 2252 Current->TotalLength = Prev->TotalLength + Current->ColumnWidth + 2253 ChildSize + Current->SpacesRequiredBefore; 2255 if (Current->is(TT_CtorInitializerColon)) 2267 Current->SplitPenalty = splitPenalty(Line, *Current, InFunctionDecl); 2267 Current->SplitPenalty = splitPenalty(Line, *Current, InFunctionDecl); 2269 Current->is(TT_SelectorName) && Current->ParameterIndex > 0) { 2269 Current->is(TT_SelectorName) && Current->ParameterIndex > 0) { 2270 if (Current->ParameterIndex == 1) 2271 Current->SplitPenalty += 5 * Current->BindingStrength; 2271 Current->SplitPenalty += 5 * Current->BindingStrength; 2273 Current->SplitPenalty += 20 * Current->BindingStrength; 2273 Current->SplitPenalty += 20 * Current->BindingStrength; 2276 Current = Current->Next; 2276 Current = Current->Next; 2281 for (Current = Line.First; Current != nullptr; Current = Current->Next) { 2281 for (Current = Line.First; Current != nullptr; Current = Current->Next) { 2281 for (Current = Line.First; Current != nullptr; Current = Current->Next) { 2281 for (Current = Line.First; Current != nullptr; Current = Current->Next) { 2282 if (Current->Role) 2283 Current->Role->precomputeFormattingInfos(Current); 2283 Current->Role->precomputeFormattingInfos(Current); 2284 if (Current->MatchingParen && 2285 Current->MatchingParen->opensBlockOrBlockTypeList(Style)) { 2289 Current->IndentLevel = IndentLevel; 2290 if (Current->opensBlockOrBlockTypeList(Style))