| /freebsd-14.2/contrib/llvm-project/clang/lib/Format/ |
| H A D | FormatTokenLexer.cpp | 297 At->TokenText = StringRef(At->TokenText.begin(), in tryMergeNSStringLiteral() 403 At->TokenText = StringRef(At->TokenText.begin(), in tryMergeCSharpKeywordVariables() 441 For->TokenText = StringRef(For->TokenText.begin(), in tryMergeForEach() 549 First[0]->TokenText = StringRef(First[0]->TokenText.data(), in tryMergeTokens() 722 auto &TokenText = CSharpStringLiteral->TokenText; in handleCSharpVerbatimAndInterpolatedStrings() local 1036 StringRef TokenText = FormatTok->TokenText; in getStashedToken() local 1045 FormatTok->TokenText = TokenText; in getStashedToken() 1062 FormatTok->TokenText = FormatTok->TokenText.substr(0, NewLen); in truncateToken() 1272 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken() 1277 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken() [all …]
|
| H A D | MacroExpander.cpp | 60 Def.Name = Current->TokenText; in parse() 79 Def.ArgMap[Def.Params.back()->TokenText] = Def.Params.size() - 1; in parseParams() 170 assert(hasArity(ID->TokenText, OptionalArgs->size())); in expand() 172 assert(objectLike(ID->TokenText)); in expand() 174 ? FunctionLike.find(ID->TokenText) in expand() 177 : ObjectLike.find(ID->TokenText)->second; in expand() 194 if (Tok->isNot(tok::identifier) || ExpandedArgs.contains(Tok->TokenText)) in expand() 196 ExpandedArgs.insert(Tok->TokenText); in expand() 197 auto I = Def.ArgMap.find(Tok->TokenText); in expand()
|
| H A D | NamespaceEndCommentsFixer.cpp | 74 name += Tok->TokenText; in computeName() 90 FirstNSName += FirstNSTok->TokenText; in computeName() 121 name += FirstNSTok->TokenText; in computeName() 136 name += FirstNSTok->TokenText; in computeName() 147 text += NamespaceTok->TokenText; in computeEndCommentText() 182 NamespaceMacroCommentPattern.match(Comment->TokenText, &Groups)) { in validEndComment() 185 if (NamespaceTokenText != NamespaceTok->TokenText) in validEndComment() 188 !NamespaceCommentPattern.match(Comment->TokenText, &Groups)) { in validEndComment() 213 if (!CommentPattern.match(Comment->Next->TokenText, &Groups)) in validEndComment() 274 return NamespaceTok ? NamespaceTok->TokenText : StringRef(); in getNamespaceTokenText() [all …]
|
| H A D | BreakableToken.cpp | 222 StringRef Content = Token.TokenText.substr(2).ltrim(); in switchesFormatting() 274 assert(Tok.TokenText.starts_with(Prefix) && Tok.TokenText.ends_with(Postfix)); in BreakableStringLiteral() 275 Line = Tok.TokenText.substr( in BreakableStringLiteral() 404 Tok, /*Offset=*/Tok.TokenText.size() - 1, /*ReplaceChars=*/1, in updateAfterBroken() 490 StringRef TokenText(Tok.TokenText); in BreakableBlockComment() local 491 assert(TokenText.starts_with("/*") && TokenText.ends_with("*/")); in BreakableBlockComment() 492 TokenText.substr(2, TokenText.size() - 4) in BreakableBlockComment() 878 StringRef TokenText(CurrentTok->TokenText); in BreakableLineCommentSection() local 879 assert((TokenText.starts_with("//") || TokenText.starts_with("#")) && in BreakableLineCommentSection() 882 TokenText.split(Lines, "\n"); in BreakableLineCommentSection() [all …]
|
| H A D | MacroCallReconstructor.cpp | 77 llvm::dbgs() << "MCR: Token: " << Token->TokenText << ", Parent: " in add() 78 << (ExpandedParent ? ExpandedParent->TokenText : "<null>") in add() 141 << (Parent ? Parent->TokenText : "<null>") << "\n"); in prepareParent() 156 << MacroCallStructure.back().MacroCallLParen->TokenText in prepareParent() 158 << (OpenMacroParent ? OpenMacroParent->TokenText : "<null>") in prepareParent() 337 llvm::dbgs() << "At token: " << Token->TokenText << "\n"; in endReconstruction() 375 llvm::dbgs() << (P.first ? P.first->TokenText : "<null>"); in debugParentMap() 379 llvm::dbgs() << " -> " << (I->second ? I->second->TokenText : "<null>"); in debugParentMap() 500 LLVM_DEBUG(llvm::dbgs() << "-> " << Token->TokenText << "\n"); in appendToken() 534 llvm::dbgs() << N->Tok->TokenText << " "; in debug() [all …]
|
| H A D | SortJavaScriptImports.cpp | 199 isClangFormatOn(FirstNonImportLine->First->TokenText.trim()))) { in analyze() 379 StringRef CommentText = Current->TokenText.trim(); in parseModuleReferences() 456 Current->TokenText.substr(1, Current->TokenText.size() - 2); in parseModuleReference() 470 Current->TokenText.substr(1, Current->TokenText.size() - 2); in parseModuleReference() 506 Reference.Prefix = Current->TokenText; in parseStarBinding() 521 Reference.DefaultImport = Current->TokenText; in parseNamedBindings() 565 Symbol.Symbol = Current->TokenText; in parseNamedBindings() 572 Symbol.Alias = Current->TokenText; in parseNamedBindings()
|
| H A D | QualifierAlignmentFixer.cpp | 85 NewText += First->TokenText; in insertQualifierAfter() 98 NewText += First->TokenText; in insertQualifierBefore() 128 NewText += Last->TokenText; in rotateTokens() 138 NewText += Tok->TokenText; in rotateTokens() 146 NewText += First->TokenText; in rotateTokens() 631 if (Tok->TokenText.upper() == Tok->TokenText.str()) { in isPossibleMacro() 633 return Tok->TokenText.size() != 1; in isPossibleMacro()
|
| H A D | ContinuationIndenter.cpp | 164 || !TokenText.starts_with("R\"") || !TokenText.ends_with("\"")) { in getRawStringDelimiter() 171 size_t LParenPos = TokenText.substr(0, 19).find_first_of('('); in getRawStringDelimiter() 174 StringRef Delimiter = TokenText.substr(2, LParenPos - 2); in getRawStringDelimiter() 177 size_t RParenPos = TokenText.size() - Delimiter.size() - 2; in getRawStringDelimiter() 178 if (TokenText[RParenPos] != ')') in getRawStringDelimiter() 180 if (!TokenText.substr(RParenPos + 1).starts_with(Delimiter)) in getRawStringDelimiter() 1407 if (PragmaType && PragmaType->TokenText.equals("omp")) in getNewLineColumn() 2245 return Tok->TokenText; in getEnclosingFunctionName() 2303 StringRef Text = Current.TokenText; in createBreakableToken() 2368 if (!(T->TokenText.starts_with("//") || T->TokenText.starts_with("#"))) in createBreakableToken() [all …]
|
| H A D | UnwrappedLineParser.cpp | 716 Length -= OpeningBrace->TokenText.size() + 1; in mightFitOnOneLine() 721 Length -= FirstToken->TokenText.size() + 1; in mightFitOnOneLine() 918 if (I->Tok->TokenText != "goog") in isGoogScope() 924 if (I->Tok->TokenText != "scope") in isGoogScope() 1147 IncludeGuardToken->TokenText == FormatTok->TokenText) { in parsePPDefine() 1989 StringRef Text = FormatTok->TokenText; in parseStructuralElement() 3922 return Tok->is(tok::identifier) && Tok->TokenText != Tok->TokenText.upper(); in parseRecord() 4510 StringRef IndentContent = FormatTok.TokenText; in continuesLineCommentSection() 4511 if (FormatTok.TokenText.starts_with("//") || in continuesLineCommentSection() 4512 FormatTok.TokenText.starts_with("/*")) { in continuesLineCommentSection() [all …]
|
| H A D | ObjCPropertyAttributeOrderFixer.cpp | 71 const StringRef Attribute{Tok->TokenText}; in sortPropertyAttributes() 86 Value = Tok->TokenText; in sortPropertyAttributes()
|
| H A D | TokenAnnotator.cpp | 1972 LeadingIdentifier->TokenText == Current.Next->TokenText; in isDeductionGuide() 2084 if (Current.TokenText.starts_with("/*")) { in determineTokenType() 2085 if (Current.TokenText.ends_with("*/")) { in determineTokenType() 2120 BeforeParen->TokenText == BeforeParen->TokenText.upper() && in determineTokenType() 3236 return Prev->Previous->TokenText == Tok->TokenText; in isCtorOrDtorName() 4361 (Left.TokenText == "L" || Left.TokenText == "u" || in spaceRequiredBetween() 4362 Left.TokenText == "U" || Left.TokenText == "u8" || in spaceRequiredBetween() 4363 Left.TokenText == "LR" || Left.TokenText == "uR" || in spaceRequiredBetween() 4364 Left.TokenText == "UR" || Left.TokenText == "u8R")) { in spaceRequiredBetween() 4693 Left.TokenText[0] == '\\') { in spaceRequiredBefore() [all …]
|
| H A D | AffectedRangeManager.cpp | 79 End = End.getLocWithOffset(Last.TokenText.size()); in affectsTokenRange()
|
| H A D | UnwrappedLineFormatter.cpp | 201 return NamespaceToken ? NamespaceToken->TokenText : StringRef(); in getNamespaceTokenText() 209 return NamespaceToken ? NamespaceToken->TokenText : StringRef(); in getMatchingNamespaceTokenText() 373 I + J != E && NSToken->TokenText == getNamespaceTokenText(I[J]) && in tryFitMultipleLinesInOne() 399 nsToken->TokenText == in tryFitMultipleLinesInOne() 976 llvm::dbgs() << (P.Tok ? P.Tok->TokenText : "F") << "|" << P.Indent << "|" in printLineState() 979 llvm::dbgs() << State.NextToken->TokenText << "\n"; in printLineState()
|
| H A D | FormatTokenSource.h | 173 << "] Token: " << Tok->Tok.getName() << " / " << Tok->TokenText
|
| H A D | FormatToken.h | 296 StringRef TokenText; member 680 if (is(TT_TemplateString) && TokenText.ends_with("${")) in opensScope() 690 if (is(TT_TemplateString) && TokenText.starts_with("}")) in closesScope() 755 StringRef Content = TokenText; in isLabelString() 1911 return FormatTok.is(tok::comment) && !FormatTok.TokenText.starts_with("/*"); in isLineComment()
|
| H A D | UsingDeclarationsSorter.cpp | 125 Label.append(Tok->TokenText.str()); in computeUsingDeclarationLabel()
|
| H A D | DefinitionBlockSeparator.cpp | 147 Tok->is(tok::comment) && !isClangFormatOn(Tok->TokenText)) { in separateBlocks()
|
| H A D | Format.cpp | 2324 StringRef Input = FormatTok->TokenText; in requoteJSStringLiteral() 2570 Prev->Tok.getLocation().getLocWithOffset(Prev->TokenText.size()); in insertTrailingCommas() 2915 if (Line->First && (Line->First->TokenText.starts_with("#") || in guessIsObjC() 2916 Line->First->TokenText == "__pragma" || in guessIsObjC() 2917 Line->First->TokenText == "_Pragma")) { in guessIsObjC() 2929 FormatTok->TokenText)) || in guessIsObjC() 2941 << " token: " << FormatTok->TokenText << " token type: " in guessIsObjC()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | PrintPreprocessedOutput.cpp | 410 const std::string TokenText = PP.getSpelling(IncludeTok); in InclusionDirective() local 411 assert(!TokenText.empty()); in InclusionDirective() 412 *OS << "#" << TokenText << " " in InclusionDirective()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/ |
| H A D | ASTMatchersInternal.cpp | 684 StringRef TokenText = Lexer::getSpelling(SM.getSpellingLoc(Loc), Buffer, SM, in isTokenAtLoc() local 686 return !Invalid && Text == TokenText; in isTokenAtLoc()
|