Home
last modified time | relevance | path

Searched refs:StartLineIndex (Results 1 – 2 of 2) sorted by relevance

/openbsd-src/gnu/llvm/clang/lib/Format/
H A DNamespaceEndCommentsFixer.cpp252 size_t StartLineIndex = Line->MatchingOpeningBlockLineIndex; in getNamespaceToken() local
253 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in getNamespaceToken()
255 assert(StartLineIndex < AnnotatedLines.size()); in getNamespaceToken()
256 const FormatToken *NamespaceTok = AnnotatedLines[StartLineIndex]->First; in getNamespaceToken()
260 if (StartLineIndex > 0) { in getNamespaceToken()
261 NamespaceTok = AnnotatedLines[StartLineIndex - 1]->First; in getNamespaceToken()
262 if (AnnotatedLines[StartLineIndex - 1]->endsWith(tok::semi)) in getNamespaceToken()
304 size_t StartLineIndex = SIZE_MAX; in analyze() local
322 if (StartLineIndex == SIZE_MAX) in analyze()
323 StartLineIndex = EndLine->MatchingOpeningBlockLineIndex; in analyze()
[all …]
H A DUnwrappedLineFormatter.cpp185 size_t StartLineIndex = Line->MatchingOpeningBlockLineIndex; in getMatchingNamespaceToken() local
186 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in getMatchingNamespaceToken()
188 assert(StartLineIndex < AnnotatedLines.size()); in getMatchingNamespaceToken()
189 return AnnotatedLines[StartLineIndex]->First->getNamespaceToken(); in getMatchingNamespaceToken()