Home
last modified time | relevance | path

Searched refs:TokenText (Results 1 – 8 of 8) sorted by relevance

/external/clang/lib/Format/
DBreakableToken.cpp150 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() local
257 assert(TokenText.startswith("/*") && TokenText.endswith("*/")); in BreakableBlockComment()
258 TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n"); in BreakableBlockComment()
389 Text.data() - Tok.TokenText.data() + Split.first; in insertBreak()
[all …]
DFormat.cpp1339 AddLength += First[i]->TokenText.size(); in tryMergeTokens()
1342 First[0]->TokenText = StringRef(First[0]->TokenText.data(), in tryMergeTokens()
1343 First[0]->TokenText.size() + AddLength); in tryMergeTokens()
1354 if (Previous->isNot(tok::unknown) || Previous->TokenText != "\\" || in tryMergeEscapeSequence()
1358 StringRef Text = Previous->TokenText; in tryMergeEscapeSequence()
1359 Previous->TokenText = in tryMergeEscapeSequence()
1360 StringRef(Text.data(), Text.size() + Tokens.back()->TokenText.size()); in tryMergeEscapeSequence()
1373 Tokens[Tokens.size() - 2]->TokenText == "\\")) in tryMergeJSRegexLiteral()
1413 if (Macro->TokenText != "_T") in tryMerge_TMacro()
1416 const char *Start = Macro->TokenText.data(); in tryMerge_TMacro()
[all …]
DTokenAnnotator.cpp335 Current->TokenText == "function")) { in updateParameterCount()
537 if (CurrentToken && CurrentToken->TokenText == "mark") { in parsePragma()
768 if (Current.TokenText.startswith("//")) in determineTokenType()
1398 bool is_short_annotation = Right.TokenText.size() < 10; in splitPenalty()
1423 StringRef Content = Left.TokenText; in splitPenalty()
1450 (Left.TokenText == "optional" || Left.TokenText == "required" || in spaceRequiredBetween()
1451 Left.TokenText == "repeated")) in spaceRequiredBetween()
1454 (Left.TokenText == "returns" || Left.TokenText == "option")) in spaceRequiredBetween()
1457 if (Left.TokenText == "var") in spaceRequiredBetween()
1534 return !Left.TokenText.endswith("=*/"); in spaceRequiredBetween()
[all …]
DUnwrappedLineParser.cpp426 if (I->Tok->TokenText != "goog") in IsGoogScope()
432 if (I->Tok->TokenText != "scope") in IsGoogScope()
721 if (FormatTok->TokenText == "NS_ENUM") in parseStructuralElement()
772 StringRef Text = FormatTok->TokenText; in parseStructuralElement()
950 FormatTok->TokenText == "function") { in parseBracedList()
1140 FormatTok->TokenText == "finally")) { in parseTryCatch()
1288 (FormatTok->TokenText == "slots" || FormatTok->TokenText == "Q_SLOTS")) in parseAccessSpecifier()
DContinuationIndenter.cpp640 if (Current.TokenText == "function") in moveStateToNextToken()
967 StringRef Text = Current.TokenText; in breakProtrudingToken()
994 if (CommentPragmasRegex.match(Current.TokenText.substr(2))) in breakProtrudingToken()
1002 if (CommentPragmasRegex.match(Current.TokenText.substr(2))) in breakProtrudingToken()
1100 if (Current.TokenText.startswith("R\"")) in nextIsMultilineString()
DFormatToken.h171 StringRef TokenText; member
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/
DAntlr.Runtime.pas5653 TokenText: String;
5658 TokenText := '<missing EOF>'
5660 TokenText := '<missing ' + GetTokenNames[ExpectedTokenType] + '>';
5661 T := TCommonToken.Create(ExpectedTokenType, TokenText);
DAntlr.Runtime.Tree.pas3774 TokenText: String;
3776 TokenText := '<missing ' + GetTokenNames[ExpectedTokenType] + '>';
3777 Result := TCommonTree.Create(TCommonToken.Create(ExpectedTokenType, TokenText));