Searched refs:TokenText (Results 1 – 13 of 13) sorted by relevance
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Format/ |
| HD | FormatTokenLexer.cpp | 151 At->TokenText = StringRef(At->TokenText.begin(), in tryMergeNSStringLiteral() 152 String->TokenText.end() - At->TokenText.begin()); in tryMergeNSStringLiteral() 169 Hash->TokenText = in tryMergeJSPrivateIdentifier() 170 StringRef(Hash->TokenText.begin(), in tryMergeJSPrivateIdentifier() 171 Identifier->TokenText.end() - Hash->TokenText.begin()); in tryMergeJSPrivateIdentifier() 188 if (!(At->is(tok::at) || At->TokenText == "$") || in tryMergeCSharpVerbatimStringLiteral() 194 if (Dollar->TokenText == "$") { in tryMergeCSharpVerbatimStringLiteral() 197 Dollar->TokenText = in tryMergeCSharpVerbatimStringLiteral() 198 StringRef(Dollar->TokenText.begin(), in tryMergeCSharpVerbatimStringLiteral() 199 String->TokenText.end() - Dollar->TokenText.begin()); in tryMergeCSharpVerbatimStringLiteral() [all …]
|
| HD | BreakableToken.cpp | 189 StringRef Content = Token.TokenText.substr(2).ltrim(); in switchesFormatting() 241 assert(Tok.TokenText.startswith(Prefix) && Tok.TokenText.endswith(Postfix)); in BreakableStringLiteral() 242 Line = Tok.TokenText.substr( in BreakableStringLiteral() 243 Prefix.size(), Tok.TokenText.size() - Prefix.size() - Postfix.size()); in BreakableStringLiteral() 292 Text.data() - tokenAt(LineIndex).TokenText.data() + Split.first; in compressWhitespace() 343 StringRef TokenText(Tok.TokenText); in BreakableBlockComment() local 344 assert(TokenText.startswith("/*") && TokenText.endswith("*/")); in BreakableBlockComment() 345 TokenText.substr(2, TokenText.size() - 4) in BreakableBlockComment() 587 Text.data() - tokenAt(LineIndex).TokenText.data() + Split.first; in insertBreak() 634 tokenAt(LineIndex).TokenText.data(); in reflow() [all …]
|
| HD | NamespaceEndCommentsFixer.cpp | 43 name += Tok->TokenText; in computeName() 59 name += Tok->TokenText; in computeName() 71 text += NamespaceTok->TokenText; in computeEndCommentText() 106 NamespaceMacroCommentPattern.match(Comment->TokenText, &Groups)) { in validEndComment() 109 if (NamespaceTokenText != NamespaceTok->TokenText) in validEndComment() 112 !NamespaceCommentPattern.match(Comment->TokenText, &Groups)) { in validEndComment() 177 return NamespaceTok ? NamespaceTok->TokenText : StringRef(); in getNamespaceTokenText() 215 NamespaceTokenText = NamespaceTok->TokenText; in analyze()
|
| HD | SortJavaScriptImports.cpp | 342 Current->TokenText.substr(1, Current->TokenText.size() - 2); in parseModuleReference() 356 Current->TokenText.substr(1, Current->TokenText.size() - 2); in parseModuleReference() 389 Reference.Prefix = Current->TokenText; in parseStarBinding() 416 Symbol.Symbol = Current->TokenText; in parseNamedBindings() 426 Symbol.Alias = Current->TokenText; in parseNamedBindings()
|
| HD | ContinuationIndenter.cpp | 149 static llvm::Optional<StringRef> getRawStringDelimiter(StringRef TokenText) { in getRawStringDelimiter() argument 150 if (TokenText.size() < 5 // The smallest raw string possible is 'R"()"'. in getRawStringDelimiter() 151 || !TokenText.startswith("R\"") || !TokenText.endswith("\"")) in getRawStringDelimiter() 157 size_t LParenPos = TokenText.substr(0, 19).find_first_of('('); in getRawStringDelimiter() 160 StringRef Delimiter = TokenText.substr(2, LParenPos - 2); in getRawStringDelimiter() 163 size_t RParenPos = TokenText.size() - Delimiter.size() - 2; in getRawStringDelimiter() 164 if (TokenText[RParenPos] != ')') in getRawStringDelimiter() 166 if (!TokenText.substr(RParenPos + 1).startswith(Delimiter)) in getRawStringDelimiter() 492 ((Previous.is(tok::identifier) && Previous.TokenText == "endl") || in mustBreak() 493 (Previous.Tok.isLiteral() && (Previous.TokenText.endswith("\\n\"") || in mustBreak() [all …]
|
| HD | UnwrappedLineParser.cpp | 60 return FormatTok.is(tok::comment) && !FormatTok.TokenText.startswith("/*"); in isLineComment() 600 if (I->Tok->TokenText != "goog") in isGoogScope() 606 if (I->Tok->TokenText != "scope") in isGoogScope() 752 if (!IfDef && (FormatTok->is(tok::kw_false) || FormatTok->TokenText == "0")) in parsePPIf() 754 if (IfDef && !IfNDef && FormatTok->TokenText == "SWIG") in parsePPIf() 815 IncludeGuardToken->TokenText == FormatTok->TokenText) { in parsePPDefine() 947 Previous->is(TT_TemplateString) && Previous->TokenText.endswith("${"); in readTokenWithJavaScriptASI() 962 Next->is(TT_TemplateString) && Next->TokenText.startswith("}"); in readTokenWithJavaScriptASI() 1343 StringRef Text = FormatTok->TokenText; in parseStructuralElement() 2203 FormatTok->TokenText != FormatTok->TokenText.upper(); in parseRecord() [all …]
|
| HD | TokenAnnotator.cpp | 1017 !CurrentToken->TokenText.startswith("//")) in parseIncludeDirective() 1210 return Tok.TokenText == "goog" && Tok.Next && Tok.Next->is(tok::period) && in isClosureImportStatement() 1212 (Tok.Next->Next->TokenText == "module" || in isClosureImportStatement() 1213 Tok.Next->Next->TokenText == "provide" || in isClosureImportStatement() 1214 Tok.Next->Next->TokenText == "require" || in isClosureImportStatement() 1215 Tok.Next->Next->TokenText == "requireType" || in isClosureImportStatement() 1216 Tok.Next->Next->TokenText == "forwardDeclare") && in isClosureImportStatement() 1414 LeadingIdentifier->TokenText == Current.Next->TokenText); in isDeductionGuide() 1500 if (Current.TokenText.startswith("/*")) { in determineTokenType() 1501 if (Current.TokenText.endswith("*/")) in determineTokenType() [all …]
|
| HD | FormatToken.h | 179 StringRef TokenText; member 388 if (is(TT_TemplateString) && TokenText.endswith("${")) in opensScope() 398 if (is(TT_TemplateString) && TokenText.startswith("}")) in closesScope() 464 StringRef Content = TokenText; in isLabelString()
|
| HD | UnwrappedLineFormatter.cpp | 151 return NamespaceToken ? NamespaceToken->TokenText : StringRef(); in getNamespaceTokenText() 159 return NamespaceToken ? NamespaceToken->TokenText : StringRef(); in getMatchingNamespaceTokenText() 265 nsToken->TokenText == getNamespaceTokenText(I[i + 1]) && in tryFitMultipleLinesInOne() 281 nsToken->TokenText == in tryFitMultipleLinesInOne() 731 llvm::dbgs() << (P.Tok ? P.Tok->TokenText : "F") << "|" << P.Indent << "|" in printLineState() 734 llvm::dbgs() << State.NextToken->TokenText << "\n"; in printLineState()
|
| HD | AffectedRangeManager.cpp | 79 End = End.getLocWithOffset(Last.TokenText.size()); in affectsTokenRange()
|
| HD | UsingDeclarationsSorter.cpp | 102 Label.append(Tok->TokenText.str()); in computeUsingDeclarationLabel()
|
| HD | Format.cpp | 1282 StringRef Input = FormatTok->TokenText; in requoteJSStringLiteral() 1799 FormatTok->TokenText)) || in guessIsObjC() 1810 << " token: " << FormatTok->TokenText << " token type: " in guessIsObjC()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/ |
| HD | PrintPreprocessedOutput.cpp | 341 const std::string TokenText = PP.getSpelling(IncludeTok); in InclusionDirective() local 342 assert(!TokenText.empty()); in InclusionDirective() 343 OS << "#" << TokenText << " " in InclusionDirective()
|