Lines Matching defs:Prefix
133 return StartColumn + Prefix.size() + Postfix.size() +
138 const FormatToken &Tok, unsigned StartColumn, StringRef Prefix,
141 Prefix(Prefix), Postfix(Postfix) {
142 assert(Tok.TokenText.startswith(Prefix) && Tok.TokenText.endswith(Postfix));
144 Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size());
165 Tok, Prefix.size() + TailOffset + Split.first, Split.second, Postfix,
166 Prefix, InPPDirective, 1, StartColumn);
184 OriginalPrefix = Prefix;
185 if (Token.TokenText.size() > Prefix.size() &&
186 isAlphanumeric(Token.TokenText[Prefix.size()])) {
187 if (Prefix == "//")
188 Prefix = "// ";
189 else if (Prefix == "///")
190 Prefix = "/// ";
197 return getCommentSplit(Line.substr(TailOffset), StartColumn + Prefix.size(),
206 Postfix, Prefix, InPPDirective, 1, StartColumn);
212 if (OriginalPrefix != Prefix) {
350 StringRef Prefix = Decoration;
354 Prefix = "";
362 "", Prefix, InPPDirective, 1,
371 StringRef Prefix = Decoration;
375 // If the last line was empty, we don't need a prefix, as the */ will
377 Prefix = "";
382 Prefix = Prefix.substr(0, 1);
387 Prefix = Prefix.substr(0, 1);
394 assert(StartOfLineColumn[LineIndex] >= Prefix.size());
396 Tok, WhitespaceOffsetInToken, LeadingWhitespace[LineIndex], "", Prefix,
397 InPPDirective, 1, StartOfLineColumn[LineIndex] - Prefix.size());