Home
last modified time | relevance | path

Searched refs:BlockKind (Results 1 – 8 of 8) sorted by relevance

/external/clang/lib/Format/
DUnwrappedLineParser.cpp339 Tok->BlockKind = BK_BracedInit; in calculateBraceTypes()
341 Tok->BlockKind = BK_Unknown; in calculateBraceTypes()
347 if (LBraceStack.back()->BlockKind == BK_Unknown) { in calculateBraceTypes()
376 Tok->BlockKind = BK_BracedInit; in calculateBraceTypes()
377 LBraceStack.back()->BlockKind = BK_BracedInit; in calculateBraceTypes()
379 Tok->BlockKind = BK_Block; in calculateBraceTypes()
380 LBraceStack.back()->BlockKind = BK_Block; in calculateBraceTypes()
393 if (!LBraceStack.empty() && LBraceStack.back()->BlockKind == BK_Unknown) in calculateBraceTypes()
394 LBraceStack.back()->BlockKind = BK_Block; in calculateBraceTypes()
405 if (LBraceStack[i]->BlockKind == BK_Unknown) in calculateBraceTypes()
[all …]
DTokenAnnotator.cpp408 if (Left->BlockKind == BK_BracedInit) in parseBrace()
442 if (Current->is(tok::l_brace) && Current->BlockKind == BK_Block) in updateParameterCount()
1705 if (Current->Previous->BlockKind == BK_BracedInit && in calculateFormattingInformation()
2024 (Right.is(tok::l_brace) && Right.BlockKind == BK_Block) || in spaceRequiredBetween()
2050 if ((Left.is(tok::l_brace) && Left.BlockKind != BK_Block) || in spaceRequiredBetween()
2052 Right.MatchingParen->BlockKind != BK_Block)) in spaceRequiredBetween()
2081 Right.BlockKind != BK_Block) in spaceRequiredBetween()
2247 return Tok.is(tok::l_brace) && Tok.BlockKind == BK_Block && in isAllmanBrace()
2297 Left.BlockKind != BK_Block && Left.MatchingParen) in mustBreakBefore()
2308 return Left.BlockKind != BK_BracedInit && in mustBreakBefore()
[all …]
DContinuationIndenter.cpp109 Previous.isNot(TT_DictLiteral) && Previous.BlockKind == BK_BracedInit && in canBreak()
264 if (Style.ColumnLimit != 0 && Previous.BlockKind == BK_Block && in mustBreak()
374 (Current.isNot(TT_LineComment) || Previous.BlockKind == BK_BracedInit)) in addTokenOnCurrentLine()
616 if (NextNonComment->is(tok::l_brace) && NextNonComment->BlockKind == BK_Block) in getNewLineColumn()
623 Current.MatchingParen->BlockKind == BK_BracedInit) in getNewLineColumn()
922 if (Current.MatchingParen && Current.BlockKind == BK_Block) { in moveStatePastScopeOpener()
DFormatToken.h167 BraceBlockKind BlockKind = BK_Unknown; member
433 (BlockKind == BK_Block || is(TT_DictLiteral) || in opensBlockOrBlockTypeList()
DFormatToken.cpp85 LBrace->BlockKind == BK_Block || LBrace->Type == TT_DictLiteral || in formatAfterToken()
DUnwrappedLineFormatter.cpp384 if (Tok->is(tok::l_brace) && Tok->BlockKind != BK_BracedInit) in tryMergeSimpleBlock()
514 LBrace->BlockKind != BK_Block || Previous.Children.size() == 0) in formatChildren()
/external/v8/src/asmjs/
Dasm-parser.h120 enum class BlockKind { kRegular, kLoop, kNamed, kOther }; enum
125 BlockKind kind;
331 void BareBegin(BlockKind kind, AsmJsScanner::token_t label = 0);
Dasm-parser.cc275 BareBegin(BlockKind::kRegular, label); in Begin()
280 BareBegin(BlockKind::kLoop, label); in Loop()
291 void AsmJsParser::BareBegin(BlockKind kind, AsmJsScanner::token_t label) { in BareBegin()
310 if (it->kind == BlockKind::kLoop && in FindContinueLabelDepth()
325 if ((it->kind == BlockKind::kRegular && in FindBreakLabelDepth()
327 (it->kind == BlockKind::kNamed && it->label == label)) { in FindBreakLabelDepth()
1057 BareBegin(BlockKind::kNamed, pending_label_); in Block()
1100 BareBegin(BlockKind::kOther); in IfStatement()
1183 BareBegin(BlockKind::kLoop, pending_label_); in DoStatement()
1224 BareBegin(BlockKind::kLoop, pending_label_); in ForStatement()
[all …]