Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/Format/
H A DNamespaceEndCommentsFixer.cpp117 size_t StartLineIndex = Line->MatchingOpeningBlockLineIndex; in getNamespaceToken() local
118 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in getNamespaceToken()
120 assert(StartLineIndex < AnnotatedLines.size()); in getNamespaceToken()
125 if (StartLineIndex > 0) in getNamespaceToken()
126 NamespaceTok = AnnotatedLines[StartLineIndex - 1]->First; in getNamespaceToken()
142 size_t StartLineIndex = SIZE_MAX; in analyze() local
160 if (StartLineIndex == SIZE_MAX) in analyze()
161 StartLineIndex = EndLine->MatchingOpeningBlockLineIndex; in analyze()
166 StartLineIndex - CompactedNamespacesCount - 1 == in analyze()
195 bool isShort = I - StartLineIndex <= kShortNamespaceMaxLines + 1; in analyze()
[all …]
H A DUnwrappedLineFormatter.cpp147 size_t StartLineIndex = Line->MatchingOpeningBlockLineIndex; in isEndOfNamespace() local
148 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in isEndOfNamespace()
150 assert(StartLineIndex < AnnotatedLines.size()); in isEndOfNamespace()
151 return isNamespaceDeclaration(AnnotatedLines[StartLineIndex]); in isEndOfNamespace()