Searched refs:BlockKind (Results 1 – 8 of 8) sorted by relevance
/external/clang/lib/Format/ |
D | UnwrappedLineParser.cpp | 339 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 …]
|
D | TokenAnnotator.cpp | 408 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 …]
|
D | ContinuationIndenter.cpp | 109 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()
|
D | FormatToken.h | 167 BraceBlockKind BlockKind = BK_Unknown; member 433 (BlockKind == BK_Block || is(TT_DictLiteral) || in opensBlockOrBlockTypeList()
|
D | FormatToken.cpp | 85 LBrace->BlockKind == BK_Block || LBrace->Type == TT_DictLiteral || in formatAfterToken()
|
D | UnwrappedLineFormatter.cpp | 384 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/ |
D | asm-parser.h | 120 enum class BlockKind { kRegular, kLoop, kNamed, kOther }; enum 125 BlockKind kind; 331 void BareBegin(BlockKind kind, AsmJsScanner::token_t label = 0);
|
D | asm-parser.cc | 275 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 …]
|