Home
last modified time | relevance | path

Searched refs:NestingLevel (Results 1 – 5 of 5) sorted by relevance

/external/clang/lib/Format/
DWhitespaceManager.cpp215 unsigned NestingLevel = 0; in AlignTokens() local
260 --NestingLevel; in AlignTokens()
266 NestingLevelOfLastMatch = std::min(NestingLevelOfLastMatch, NestingLevel); in AlignTokens()
267 ++NestingLevel; in AlignTokens()
277 NestingLevel != NestingLevelOfLastMatch) in AlignTokens()
281 NestingLevelOfLastMatch = NestingLevel; in AlignTokens()
DContinuationIndenter.cpp120 State.LowestLevelOnLine < Current.NestingLevel) in canBreak()
159 (Previous.NestingLevel == 1 || Style.BinPackParameters)) || in mustBreak()
189 Current.NestingLevel < State.StartOfLineLevel)) in mustBreak()
197 Previous.is(tok::comma) || Current.NestingLevel < 2) && in mustBreak()
237 if (Current.NestingLevel == 0 && !Current.isTrailingComment()) { in mustBreak()
317 (State.Line->First->is(tok::kw_for) || Current.NestingLevel == 0) && in addTokenOnCurrentLine()
483 Current.NestingLevel != 0 || !PreviousNonComment || in addTokenOnNewLine()
529 Current.NestingLevel == 0) in addTokenOnNewLine()
553 State.StartOfLineLevel = Current.NestingLevel; in addTokenOnNewLine()
554 State.LowestLevelOnLine = Current.NestingLevel; in addTokenOnNewLine()
[all …]
DTokenAnnotator.cpp871 CurrentToken->NestingLevel = Contexts.size() - 1; in next()
986 (!Line.MightBeFunctionDecl || Current.NestingLevel != 0)) { in determineTokenType()
995 Current.NestingLevel == 0) { in determineTokenType()
1618 if (!Current.is(TT_StartOfName) || Current.NestingLevel != 0) in isFunctionDeclarationName()
1812 if (Left.is(tok::comma) && Left.NestingLevel == 0) in splitPenalty()
1843 if (InFunctionDecl && Right.NestingLevel == 0) in splitPenalty()
2283 (Left.NestingLevel == 0 && Line.Level == 0 && in mustBreakBefore()
2324 Right.Previous->MatchingParen->NestingLevel == 0 && in mustBreakBefore()
2336 if (Right.Previous->is(tok::l_brace) && Right.NestingLevel == 1 && in mustBreakBefore()
2378 if (Right.NestingLevel == 0 && Right.is(Keywords.kw_is)) in canBreakBefore()
[all …]
DFormatToken.h221 unsigned NestingLevel = 0; member
434 (!Style.Cpp11BracedListStyle && NestingLevel == 0))); in opensBlockOrBlockTypeList()
DFormatToken.cpp227 if (Token->NestingLevel != 0 && Token->is(tok::l_brace) && Commas.size() < 19) in precomputeFormattingInfos()