Lines Matching refs:TokenText
684 First[0]->TokenText = "<<"; in tryMergeLessLess()
704 AddLength += First[i]->TokenText.size(); in tryMergeTokens()
707 First[0]->TokenText = StringRef(First[0]->TokenText.data(), in tryMergeTokens()
708 First[0]->TokenText.size() + AddLength); in tryMergeTokens()
719 if (Previous->isNot(tok::unknown) || Previous->TokenText != "\\") in tryMergeEscapeSequence()
722 StringRef Text = Previous->TokenText; in tryMergeEscapeSequence()
723 Previous->TokenText = StringRef(Text.data(), Text.size() + 1); in tryMergeEscapeSequence()
742 Tokens.back()->TokenText.startswith("//") && in tryMergeJSRegexLiteral()
743 Tokens[Tokens.size() - 2]->TokenText == "\\"; in tryMergeJSRegexLiteral()
747 Tokens[Tokens.size() - 2]->TokenText == "\\"))) in tryMergeJSRegexLiteral()
788 size_t CommentBacktickPos = EndBacktick->TokenText.find('`'); in tryMergeTemplateString()
807 if (I[0]->isNot(tok::unknown) || I[0]->TokenText != "`") { in tryMergeTemplateString()
824 EndBacktick->TokenText.data() + 1 + CommentBacktickPos; in tryMergeTemplateString()
831 Tokens.back()->TokenText = in tryMergeTemplateString()
832 StringRef(Tokens.back()->TokenText.data(), in tryMergeTemplateString()
833 EndOffset - Tokens.back()->TokenText.data()); in tryMergeTemplateString()
868 if (Macro->TokenText != "_T") in tryMerge_TMacro()
871 const char *Start = Macro->TokenText.data(); in tryMerge_TMacro()
872 const char *End = Last->TokenText.data() + Last->TokenText.size(); in tryMerge_TMacro()
873 String->TokenText = StringRef(Start, End - Start); in tryMerge_TMacro()
879 String->TokenText, String->OriginalColumn, Style.TabWidth, Encoding); in tryMerge_TMacro()
955 StringRef TokenText = FormatTok->TokenText; in getStashedToken() local
964 FormatTok->TokenText = TokenText; in getStashedToken()
993 for (int i = 0, e = FormatTok->TokenText.size(); i != e; ++i) { in getNextToken()
994 switch (FormatTok->TokenText[i]) { in getNextToken()
999 if (i == 0 || (FormatTok->TokenText[i - 1] != '\\' && in getNextToken()
1000 (FormatTok->TokenText[i - 1] != '\r' || i == 1 || in getNextToken()
1001 FormatTok->TokenText[i - 2] != '\\'))) in getNextToken()
1021 if (i + 1 == e || (FormatTok->TokenText[i + 1] != '\r' && in getNextToken()
1022 FormatTok->TokenText[i + 1] != '\n')) in getNextToken()
1043 while (FormatTok->TokenText.size() > 1 && FormatTok->TokenText[0] == '\\' && in getNextToken()
1044 FormatTok->TokenText[1] == '\n') { in getNextToken()
1048 FormatTok->TokenText = FormatTok->TokenText.substr(2); in getNextToken()
1059 StringRef UntrimmedText = FormatTok->TokenText; in getNextToken()
1060 FormatTok->TokenText = FormatTok->TokenText.rtrim(" \t\v\f"); in getNextToken()
1061 TrailingWhitespace = UntrimmedText.size() - FormatTok->TokenText.size(); in getNextToken()
1063 IdentifierInfo &Info = IdentTable.get(FormatTok->TokenText); in getNextToken()
1073 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()
1077 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()
1083 StringRef Text = FormatTok->TokenText; in getNextToken()
1135 Tok.TokenText = StringRef(SourceMgr.getCharacterData(Tok.Tok.getLocation()), in readRawToken()
1140 if (!Tok.TokenText.empty() && Tok.TokenText[0] == '"') { in readRawToken()
1144 Tok.TokenText == "''") { in readRawToken()
1149 if (Tok.is(tok::comment) && (Tok.TokenText == "// clang-format on" || in readRawToken()
1150 Tok.TokenText == "/* clang-format on */")) { in readRawToken()
1156 if (Tok.is(tok::comment) && (Tok.TokenText == "// clang-format off" || in readRawToken()
1157 Tok.TokenText == "/* clang-format off */")) { in readRawToken()
1367 End = End.getLocWithOffset(Last.TokenText.size()); in affectsTokenRange()