Home
last modified time | relevance | path

Searched refs:LineIndex (Results 1 – 6 of 6) sorted by relevance

/openbsd/gnu/llvm/clang/lib/Format/
H A DBreakableToken.cpp333 return Tokens[LineIndex] ? *Tokens[LineIndex] : Tok; in tokenAt()
530 Content[LineIndex - 1].data() - Lines[LineIndex - 1].data(); in adjustWhitespace()
531 Content[LineIndex - 1] = Lines[LineIndex - 1].substr( in adjustWhitespace()
533 Content[LineIndex] = Lines[LineIndex].substr(StartOfLine); in adjustWhitespace()
639 if (LineIndex) { in getReflowSplit()
660 assert(Tokens[LineIndex - 1] == Tokens[LineIndex] && in reflow()
945 if (LineIndex > 0 && Tokens[LineIndex] != Tokens[LineIndex - 1]) { in reflow()
982 Content[LineIndex].data() - Lines[LineIndex].data(); in reflow()
1000 if (LineIndex > 0 && Tokens[LineIndex] != Tokens[LineIndex - 1]) { in adaptStartOfLine()
1008 (Content[LineIndex].data() - Lines[LineIndex].data()) + in adaptStartOfLine()
[all …]
H A DBreakableToken.h192 virtual Split getReflowSplit(unsigned LineIndex, in getReflowSplit() argument
198 virtual void reflow(unsigned LineIndex, in reflow() argument
311 virtual bool mayReflow(unsigned LineIndex,
377 Split getReflowSplit(unsigned LineIndex,
379 void reflow(unsigned LineIndex,
382 void adaptStartOfLine(unsigned LineIndex,
386 bool mayReflow(unsigned LineIndex,
449 Split getReflowSplit(unsigned LineIndex,
451 void reflow(unsigned LineIndex,
453 void adaptStartOfLine(unsigned LineIndex,
[all …]
H A DContinuationIndenter.cpp2245 for (unsigned LineIndex = 0, EndIndex = Token->getLineCount(); in breakProtrudingToken() local
2246 LineIndex != EndIndex; ++LineIndex) { in breakProtrudingToken()
2266 Token->getSplit(LineIndex, TailOffset, ColumnLimit, in breakProtrudingToken()
2271 if (LineIndex < EndIndex - 1) { in breakProtrudingToken()
2317 LineIndex, TailOffset, in breakProtrudingToken()
2361 LineIndex, TailOffset, ContentStartColumn); in breakProtrudingToken()
2370 ContentIndent = Token->getContentIndent(LineIndex); in breakProtrudingToken()
2377 LineIndex, TailOffset + Split.first + Split.second, in breakProtrudingToken()
2385 LineIndex, TailOffset + Split.first + Split.second, in breakProtrudingToken()
2412 if (LineIndex + 1 != EndIndex) { in breakProtrudingToken()
[all …]
H A DDefinitionBlockSeparator.cpp106 const auto IsPPConditional = [&](const size_t LineIndex) { in separateBlocks() argument
107 const auto &Line = Lines[LineIndex]; in separateBlocks()
/openbsd/gnu/llvm/clang/lib/Parse/
H A DParseStmtAsm.cpp263 unsigned LineIndex = 0; in ParseMSAsmIdentifier() local
265 LineIndex = LineToks.size() - 2; in ParseMSAsmIdentifier()
267 while (LineToks[LineIndex].getLocation() != Tok.getLocation()) { in ParseMSAsmIdentifier()
268 LineIndex++; in ParseMSAsmIdentifier()
269 assert(LineIndex < LineToks.size() - 2); // we added two extra tokens in ParseMSAsmIdentifier()
279 NumLineToksConsumed = LineIndex; in ParseMSAsmIdentifier()
284 for (unsigned i = 0, e = LineToks.size() - LineIndex - 2; i != e; ++i) { in ParseMSAsmIdentifier()
/openbsd/gnu/llvm/llvm/lib/Support/
H A Draw_ostream.cpp413 size_t LineIndex = 0; in operator <<() local
440 llvm::write_hex(*this, Offset + LineIndex, HPS, OffsetWidth); in operator <<()
474 LineIndex += Line.size(); in operator <<()
475 if (LineIndex < Size) in operator <<()