Searched refs:TokenText (Results 1 – 7 of 7) sorted by relevance
674 AddLength += First[i]->TokenText.size(); in tryMergeTokens()677 First[0]->TokenText = StringRef(First[0]->TokenText.data(), in tryMergeTokens()678 First[0]->TokenText.size() + AddLength); in tryMergeTokens()689 if (Previous->isNot(tok::unknown) || Previous->TokenText != "\\") in tryMergeEscapeSequence()692 StringRef Text = Previous->TokenText; in tryMergeEscapeSequence()693 Previous->TokenText = StringRef(Text.data(), Text.size() + 1); in tryMergeEscapeSequence()712 Tokens.back()->TokenText.startswith("//") && in tryMergeJSRegexLiteral()713 Tokens[Tokens.size() - 2]->TokenText == "\\"; in tryMergeJSRegexLiteral()717 Tokens[Tokens.size() - 2]->TokenText == "\\"))) in tryMergeJSRegexLiteral()763 if (Macro->TokenText != "_T") in tryMerge_TMacro()[all …]
150 assert(Tok.TokenText.endswith(Postfix)); in BreakableSingleLineToken()151 Line = Tok.TokenText.substr( in BreakableSingleLineToken()152 Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size()); in BreakableSingleLineToken()204 getLineCommentIndentPrefix(Token.TokenText), "", in BreakableLineComment()207 if (Token.TokenText.size() > Prefix.size() && in BreakableLineComment()208 isAlphanumeric(Token.TokenText[Prefix.size()])) { in BreakableLineComment()256 StringRef TokenText(Token.TokenText); in BreakableBlockComment() local257 assert(TokenText.startswith("/*") && TokenText.endswith("*/")); in BreakableBlockComment()258 TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n"); in BreakableBlockComment()390 Text.data() - Tok.TokenText.data() + Split.first; in insertBreak()[all …]
560 if (CurrentToken && CurrentToken->TokenText == "mark") { in parsePragma()668 Tok.TokenText == "goog" && Tok.Next && Tok.Next->is(tok::period) && in IsImportStatement()669 Tok.Next->Next && (Tok.Next->Next->TokenText == "module" || in IsImportStatement()670 Tok.Next->Next->TokenText == "require" || in IsImportStatement()671 Tok.Next->Next->TokenText == "provide") && in IsImportStatement()841 if (Current.TokenText.startswith("//")) in determineTokenType()1561 bool is_short_annotation = Right.TokenText.size() < 10; in splitPenalty()1595 StringRef Content = Left.TokenText; in splitPenalty()1696 return !Left.TokenText.endswith("=*/"); in spaceRequiredBetween()1725 if (Right.is(tok::hash) && Left.is(tok::identifier) && Left.TokenText == "L") in spaceRequiredBetween()[all …]
426 if (I->Tok->TokenText != "goog") in IsGoogScope()432 if (I->Tok->TokenText != "scope") in IsGoogScope()809 StringRef Text = FormatTok->TokenText; in parseStructuralElement()1342 (FormatTok->TokenText == "slots" || FormatTok->TokenText == "Q_SLOTS")) in parseAccessSpecifier()
946 StringRef Text = Current.TokenText; in breakProtrudingToken()972 if (CommentPragmasRegex.match(Current.TokenText.substr(2))) in breakProtrudingToken()980 if (CommentPragmasRegex.match(Current.TokenText.substr(2))) in breakProtrudingToken()1078 if (Current.TokenText.startswith("R\"")) in nextIsMultilineString()
175 StringRef TokenText; member
603 llvm::dbgs() << State.NextToken->TokenText << "\n"; in printLineState()