Searched refs:TokenText (Results 1 – 13 of 13) sorted by relevance
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Format/ |
| H A D | FormatTokenLexer.cpp | 117 At->TokenText = StringRef(At->TokenText.begin(), in tryMergeNSStringLiteral() 118 String->TokenText.end() - At->TokenText.begin()); in tryMergeNSStringLiteral() 168 First[0]->TokenText = StringRef(First[0]->TokenText.data(), in tryMergeTokens() 376 const char *End = Last->TokenText.data() + Last->TokenText.size(); in tryMerge_TMacro() 459 StringRef TokenText = FormatTok->TokenText; in getStashedToken() local 468 FormatTok->TokenText = TokenText; in getStashedToken() 595 FormatTok->TokenText = FormatTok->TokenText.substr(SkippedWhitespace); in getNextToken() 607 FormatTok->TokenText = FormatTok->TokenText.rtrim(" \t\v\f"); in getNextToken() 626 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken() 631 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken() [all …]
|
| H A D | BreakableToken.cpp | 188 StringRef Content = Token.TokenText.substr(2).ltrim(); in switchesFormatting() 240 assert(Tok.TokenText.startswith(Prefix) && Tok.TokenText.endswith(Postfix)); in BreakableStringLiteral() 241 Line = Tok.TokenText.substr( in BreakableStringLiteral() 342 StringRef TokenText(Tok.TokenText); in BreakableBlockComment() local 343 assert(TokenText.startswith("/*") && TokenText.endswith("*/")); in BreakableBlockComment() 344 TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n"); in BreakableBlockComment() 721 StringRef TokenText(CurrentTok->TokenText); in BreakableLineCommentSection() local 722 assert((TokenText.startswith("//") || TokenText.startswith("#")) && in BreakableLineCommentSection() 725 TokenText.split(Lines, "\n"); in BreakableLineCommentSection() 738 assert((TokenText.startswith("//") || TokenText.startswith("#")) && in BreakableLineCommentSection() [all …]
|
| H A D | SortJavaScriptImports.cpp | 345 Current->TokenText.substr(1, Current->TokenText.size() - 2); in parseModuleReference() 359 Current->TokenText.substr(1, Current->TokenText.size() - 2); in parseModuleReference() 392 Reference.Prefix = Current->TokenText; in parseStarBinding() 419 Symbol.Symbol = Current->TokenText; in parseNamedBindings() 429 Symbol.Alias = Current->TokenText; in parseNamedBindings()
|
| H A D | ContinuationIndenter.cpp | 152 || !TokenText.startswith("R\"") || !TokenText.endswith("\"")) in getRawStringDelimiter() 158 size_t LParenPos = TokenText.substr(0, 19).find_first_of('('); in getRawStringDelimiter() 161 StringRef Delimiter = TokenText.substr(2, LParenPos - 2); in getRawStringDelimiter() 164 size_t RParenPos = TokenText.size() - Delimiter.size() - 2; in getRawStringDelimiter() 165 if (TokenText[RParenPos] != ')') in getRawStringDelimiter() 167 if (!TokenText.substr(RParenPos + 1).startswith(Delimiter)) in getRawStringDelimiter() 1691 return Tok->TokenText; in getEnclosingFunctionName() 1699 auto Delimiter = getRawStringDelimiter(Current.TokenText); in getRawStringStyle() 1741 StringRef Text = Current.TokenText; in createBreakableToken() 1780 CommentPragmasRegex.match(Current.TokenText.substr(2)) || in createBreakableToken() [all …]
|
| H A D | UnwrappedLineParser.cpp | 596 if (I->Tok->TokenText != "goog") in isGoogScope() 602 if (I->Tok->TokenText != "scope") in isGoogScope() 749 if (IfDef && !IfNDef && FormatTok->TokenText == "SWIG") in parsePPIf() 810 IncludeGuardToken->TokenText == FormatTok->TokenText) { in parsePPDefine() 957 Next->is(TT_TemplateString) && Next->TokenText.startswith("}"); in readTokenWithJavaScriptASI() 1330 StringRef Text = FormatTok->TokenText; in parseStructuralElement() 2117 FormatTok->TokenText != FormatTok->TokenText.upper(); in parseRecord() 2422 StringRef IndentContent = FormatTok.TokenText; in continuesLineCommentSection() 2423 if (FormatTok.TokenText.startswith("//") || in continuesLineCommentSection() 2424 FormatTok.TokenText.startswith("/*")) in continuesLineCommentSection() [all …]
|
| H A D | FormatToken.h | 172 StringRef TokenText; member 372 if (is(TT_TemplateString) && TokenText.endswith("${")) in opensScope() 382 if (is(TT_TemplateString) && TokenText.startswith("}")) in closesScope() 448 StringRef Content = TokenText; in isLabelString()
|
| H A D | NamespaceEndCommentsFixer.cpp | 39 name += Tok->TokenText; in computeName() 71 if (NamespaceCommentPattern->match(Comment->TokenText, &Groups)) { in validEndComment()
|
| H A D | TokenAnnotator.cpp | 934 !CurrentToken->TokenText.startswith("//")) in parseIncludeDirective() 1123 (Tok.Next->Next->TokenText == "module" || in isClosureImportStatement() 1124 Tok.Next->Next->TokenText == "provide" || in isClosureImportStatement() 1125 Tok.Next->Next->TokenText == "require" || in isClosureImportStatement() 1126 Tok.Next->Next->TokenText == "requireType" || in isClosureImportStatement() 1335 if (Current.TokenText.startswith("/*")) { in determineTokenType() 1336 if (Current.TokenText.endswith("*/")) in determineTokenType() 1358 BeforeParen->TokenText == BeforeParen->TokenText.upper() && in determineTokenType() 2314 bool is_short_annotation = Right.TokenText.size() < 10; in splitPenalty() 2526 !Left.TokenText.endswith("=*/"); in spaceRequiredBetween() [all …]
|
| H A D | AffectedRangeManager.cpp | 80 End = End.getLocWithOffset(Last.TokenText.size()); in affectsTokenRange()
|
| H A D | UsingDeclarationsSorter.cpp | 103 Label.append(Tok->TokenText.str()); in computeUsingDeclarationLabel()
|
| H A D | UnwrappedLineFormatter.cpp | 674 llvm::dbgs() << (P.Tok ? P.Tok->TokenText : "F") << "|" << P.Indent << "|" in printLineState() 677 llvm::dbgs() << State.NextToken->TokenText << "\n"; in printLineState()
|
| H A D | Format.cpp | 1100 StringRef Input = FormatTok->TokenText; in requoteJSStringLiteral() 1604 FormatTok->TokenText)) || in guessIsObjC() 1614 << " token: " << FormatTok->TokenText << " token type: " in guessIsObjC()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/ |
| H A D | PrintPreprocessedOutput.cpp | 340 const std::string TokenText = PP.getSpelling(IncludeTok); in InclusionDirective() local 341 assert(!TokenText.empty()); in InclusionDirective() 342 OS << "#" << TokenText << " " in InclusionDirective()
|