| /freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| HD | SourceCodeBuilders.cpp | 65 StringRef Text = getText(E, Context); in buildParens() local 66 if (Text.empty()) in buildParens() 69 return ("(" + Text + ")").str(); in buildParens() 70 return Text.str(); in buildParens() 78 StringRef Text = in buildDereference() local 80 if (Text.empty()) in buildDereference() 82 return Text.str(); in buildDereference() 85 StringRef Text = getText(E, Context); in buildDereference() local 86 if (Text.empty()) in buildDereference() 90 return ("*(" + Text + ")").str(); in buildDereference() [all …]
|
| HD | Stencil.cpp | 48 explicit RawTextData(std::string T) : Text(std::move(T)) {} in RawTextData() 49 std::string Text; member 107 OS.write_escaped(Data.Text); in toStringData() 172 Result->append(Data.Text); in evalData() 297 Stencil transformer::detail::makeStencil(StringRef Text) { return text(Text); } in makeStencil() argument 303 Stencil transformer::text(StringRef Text) { in text() argument 304 return std::make_shared<StencilImpl<RawTextData>>(Text); in text()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Format/ |
| HD | Encoding.h | 34 inline Encoding detectEncoding(StringRef Text) { in detectEncoding() argument 35 const llvm::UTF8 *Ptr = reinterpret_cast<const llvm::UTF8 *>(Text.begin()); in detectEncoding() 36 const llvm::UTF8 *BufEnd = reinterpret_cast<const llvm::UTF8 *>(Text.end()); in detectEncoding() 45 inline unsigned columnWidth(StringRef Text, Encoding Encoding) { in columnWidth() argument 47 int ContentWidth = llvm::sys::unicode::columnWidthUTF8(Text); in columnWidth() 55 return Text.size(); in columnWidth() 61 inline unsigned columnWidthWithTabs(StringRef Text, unsigned StartColumn, in columnWidthWithTabs() argument 64 StringRef Tail = Text; in columnWidthWithTabs() 97 inline unsigned getEscapeSequenceLength(StringRef Text) { in getEscapeSequenceLength() argument 98 assert(Text[0] == '\\'); in getEscapeSequenceLength() [all …]
|
| HD | BreakableToken.cpp | 66 getCommentSplit(StringRef Text, unsigned ContentStartColumn, in getCommentSplit() argument 70 LLVM_DEBUG(llvm::dbgs() << "Comment split: \"" << Text in getCommentSplit() 80 NumChars < MaxSplit && MaxSplitBytes < Text.size();) { in getCommentSplit() 82 encoding::getCodePointNumBytes(Text[MaxSplitBytes], Encoding); in getCommentSplit() 84 encoding::columnWidthWithTabs(Text.substr(MaxSplitBytes, BytesInChar), in getCommentSplit() 89 StringRef::size_type SpaceOffset = Text.find_last_of(Blanks, MaxSplitBytes); in getCommentSplit() 95 if (kNumberedListRegexp.match(Text.substr(SpaceOffset).ltrim(Blanks))) in getCommentSplit() 96 SpaceOffset = Text.find_last_of(Blanks, SpaceOffset); in getCommentSplit() 101 SpaceOffset + 1 < Text.size() && Text[SpaceOffset + 1] == '{') in getCommentSplit() 102 SpaceOffset = Text.find_last_of(Blanks, SpaceOffset); in getCommentSplit() [all …]
|
| HD | WhitespaceManager.cpp | 120 StringRef Text(PreviousOriginalWhitespaceEndData, in calculateLineBreakInformation() local 144 auto NewlinePos = Text.find_first_of('\n'); in calculateLineBreakInformation() 773 void WhitespaceManager::storeReplacement(SourceRange Range, StringRef Text) { in storeReplacement() argument 778 WhitespaceLength) == Text) in storeReplacement() 781 SourceMgr, CharSourceRange::getCharRange(Range), Text)); in storeReplacement() 790 void WhitespaceManager::appendNewlineText(std::string &Text, in appendNewlineText() argument 793 Text.append(UseCRLF ? "\r\n" : "\n"); in appendNewlineText() 797 std::string &Text, unsigned Newlines, unsigned PreviousEndOfTokenColumn, in appendEscapedNewlineText() argument 803 Text.append(Spaces, ' '); in appendEscapedNewlineText() 804 Text.append(UseCRLF ? "\\\r\n" : "\\\n"); in appendEscapedNewlineText() [all …]
|
| HD | WhitespaceManager.h | 201 void storeReplacement(SourceRange Range, StringRef Text); 202 void appendNewlineText(std::string &Text, unsigned Newlines); 203 void appendEscapedNewlineText(std::string &Text, unsigned Newlines, 206 void appendIndentText(std::string &Text, unsigned IndentLevel,
|
| HD | FormatTokenLexer.cpp | 652 StringRef Text = FormatTok->TokenText; in getNextToken() local 655 if (pos >= 0 && Text[pos] == '\r') in getNextToken() 663 if (Text[pos] != '\\') in getNextToken() 669 for (int i = 0, e = Text.size(); i != e; ++i) { in getNextToken() 670 switch (Text[i]) { in getNextToken() 693 if (i + 1 == e || (Text[i + 1] != '\r' && Text[i + 1] != '\n')) in getNextToken() 800 StringRef Text = FormatTok->TokenText; in getNextToken() local 801 size_t FirstNewlinePos = Text.find('\n'); in getNextToken() 806 encoding::columnWidthWithTabs(Text, Column, Style.TabWidth, Encoding); in getNextToken() 813 Text.substr(0, FirstNewlinePos), Column, Style.TabWidth, Encoding); in getNextToken() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Testing/Support/ |
| HD | Annotations.cpp | 26 Annotations::Annotations(llvm::StringRef Text) { in Annotations() argument 27 auto Require = [Text](bool Assertion, const char *Msg) { in Annotations() 28 require(Assertion, Msg, Text); in Annotations() 33 Code.reserve(Text.size()); in Annotations() 34 while (!Text.empty()) { in Annotations() 35 if (Text.consume_front("^")) { in Annotations() 40 if (Text.consume_front("[[")) { in Annotations() 46 if (Text.consume_front("]]")) { in Annotations() 55 if (Text.consume_front("$")) { in Annotations() 56 Name = Text.take_while(llvm::isAlnum); in Annotations() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/ |
| HD | CodeCompleteConsumer.cpp | 173 CodeCompletionString::Chunk::Chunk(ChunkKind Kind, const char *Text) in Chunk() argument 174 : Kind(Kind), Text("") { in Chunk() 182 this->Text = Text; in Chunk() 189 this->Text = "("; in Chunk() 193 this->Text = ")"; in Chunk() 197 this->Text = "["; in Chunk() 201 this->Text = "]"; in Chunk() 205 this->Text = "{"; in Chunk() 209 this->Text = "}"; in Chunk() 213 this->Text = "<"; in Chunk() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/utils/TableGen/ |
| HD | ClangDiagnosticsEmitter.cpp | 527 std::string Text; member 528 TextPiece(StringRef Text, StringRef Role = "") in TextPiece() 529 : Piece(TextPieceClass), Role(Role), Text(Text.str()) {} in TextPiece() 654 DiagText(DiagnosticTextBuilder &Builder, StringRef Text) in DiagText() 655 : Builder(Builder), Root(parseDiagText(Text)) {} in DiagText() 657 Piece *parseDiagText(StringRef &Text, bool Nested = false); 735 CASE(Text); in Visit() 877 StringRef T = P->Text; in VisitText() 938 void VisitText(TextPiece *P) { Result += P->Text; } in VisitText() 991 int DiagnosticTextBuilder::DiagText::parseModifier(StringRef &Text) const { in parseModifier() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
| HD | Parser.cpp | 58 StringRef Text; member 114 Result.Text = StringRef(CodeCompletionLocation, 0); in getNextToken() 121 Result.Text = ""; in getNextToken() 131 Result.Text = Code.substr(0, 1); in getNextToken() 136 Result.Text = Code.substr(0, 1); in getNextToken() 143 Result.Text = Code.substr(0, 1); in getNextToken() 148 Result.Text = Code.substr(0, 1); in getNextToken() 153 Result.Text = Code.substr(0, 1); in getNextToken() 180 Result.Text = Code.substr(0, TokenLength); in getNextToken() 196 Result.Text = Code.substr(0, TokenLength); in getNextToken() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/ |
| HD | Comment.h | 264 StringRef Text; variable 269 StringRef Text) : in TextComment() argument 271 Text(Text) { in TextComment() 283 StringRef getText() const LLVM_READONLY { return Text; } in getText() 303 StringRef Text; member 305 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument() 363 return Args[Idx].Text; in getArgText() 602 StringRef Text; member 605 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument() 675 return Args[Idx].Text; in getArgText() [all …]
|
| HD | CommentLexer.h | 103 void setText(StringRef Text) { in setText() argument 105 TextPtr = Text.data(); in setText() 106 IntVal = Text.size(); in setText() 145 void setVerbatimBlockText(StringRef Text) { in setVerbatimBlockText() argument 147 TextPtr = Text.data(); in setVerbatimBlockText() 148 IntVal = Text.size(); in setVerbatimBlockText() 166 void setVerbatimLineText(StringRef Text) { in setVerbatimLineText() argument 168 TextPtr = Text.data(); in setVerbatimLineText() 169 IntVal = Text.size(); in setVerbatimLineText() 302 StringRef Text(BufferPtr, TokEnd - BufferPtr); in formTextToken() [all …]
|
| /freebsd-11-stable/gnu/usr.bin/grep/ |
| HD | xmalloc.c | 35 # define _(Text) gettext (Text) argument 38 # define _(Text) Text argument 40 #define N_(Text) Text argument
|
| HD | closeout.c | 24 # define _(Text) gettext (Text) argument 26 # define _(Text) Text argument
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
| HD | Unicode.cpp | 342 int columnWidthUTF8(StringRef Text) { in columnWidthUTF8() argument 345 for (size_t i = 0, e = Text.size(); i < e; i += Length) { in columnWidthUTF8() 346 Length = getNumBytesForUTF8(Text[i]); in columnWidthUTF8() 347 if (Length <= 0 || i + Length > Text.size()) in columnWidthUTF8() 350 const UTF8 *Start = reinterpret_cast<const UTF8 *>(Text.data() + i); in columnWidthUTF8()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Edit/ |
| HD | EditedSource.cpp | 128 if (FA.Text.empty()) { in commitInsert() 129 FA.Text = copyString(text); in commitInsert() 134 FA.Text = copyString(Twine(text) + FA.Text); in commitInsert() 136 FA.Text = copyString(Twine(FA.Text) + text); in commitInsert() 184 StrVec += FA.Text; in commitInsertFromRange() 248 TopFA->Text = StringRef(); in commitRemove() 297 commitInsert(edit.OrigLoc, edit.Offset, edit.Text, edit.BeforePrev); in commit() 420 StrVec = I->second.Text; in applyRewrites() 431 StrVec += act.Text; in applyRewrites() 440 StrVec = act.Text; in applyRewrites()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ObjectYAML/ |
| HD | MinidumpYAML.h | 187 BlockStringRef Text; member 189 TextContentStream(minidump::StreamType Type, StringRef Text = {}) 190 : Stream(StreamKind::TextContent, Type), Text(Text) {} in Stream() 225 static void output(const MinidumpYAML::BlockStringRef &Text, void *, 227 OS << Text; 231 MinidumpYAML::BlockStringRef &Text) { 232 Text = Scalar;
|
| /freebsd-11-stable/contrib/llvm-project/clang/include/clang/Frontend/ |
| HD | VerifyDiagnosticConsumer.h | 195 bool MatchAnyLine, StringRef Text, 204 const std::string Text; variable 221 bool MatchAnyLine, StringRef Text, unsigned Min, unsigned Max) in Directive() argument 223 Text(Text), Min(Min), Max(Max), MatchAnyLine(MatchAnyLine) { in Directive()
|
| /freebsd-11-stable/contrib/file/magic/Magdir/ |
| HD | forth | 23 >>24 lelong x Text length: %d bytes, 25 >>32 lelong x Text Relocation Table length: %d bytes, 45 >4 belong x Text length: %d bytes, 50 >24 belong x Text Relocation Table length: %d bytes, 54 >4 lelong x Text length: %d bytes, 59 >24 lelong x Text Relocation Table length: %d bytes,
|
| /freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/ubsan/ |
| HD | ubsan_diag.h | 104 const char *Text; variable 107 Range() : Start(), End(), Text() {} in Range() 108 Range(MemoryLocation Start, MemoryLocation End, const char *Text) in Range() argument 109 : Start(Start), End(End), Text(Text) {} in Range() 112 const char *getText() const { return Text; } in getText()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
| HD | SourceMgr.h | 232 std::string Text; variable 237 : Range(Loc, Loc), Text(Insertion.str()) { in SMFixIt() 243 : Range(R), Text(Replacement.str()) { in SMFixIt() 247 StringRef getText() const { return Text; } in getText() 255 return Text < Other.Text;
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/ |
| HD | VerifyDiagnosticConsumer.cpp | 92 bool MatchAnyLine, StringRef Text, unsigned Min, in StandardDirective() argument 94 : Directive(DirectiveLoc, DiagnosticLoc, MatchAnyLine, Text, Min, Max) {} in StandardDirective() 102 return S.find(Text) != StringRef::npos; in match() 110 bool MatchAnyLine, StringRef Text, unsigned Min, unsigned Max, in RegexDirective() argument 112 : Directive(DirectiveLoc, DiagnosticLoc, MatchAnyLine, Text, Min, Max), in RegexDirective() 290 std::string Text; member 301 MatchAnyLine, UD.Text, UD.Min, UD.Max); in attachDirective() 620 D.Text += Content.substr(CPos, FPos-CPos); in ParseDirective() 621 D.Text += '\n'; in ParseDirective() 624 if (D.Text.empty()) in ParseDirective() [all …]
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Core/ |
| HD | Replacement.cpp | 371 Text(R.getReplacementText()) { in MergedReplacement() 372 Delta += MergeSecond ? 0 : Text.size() - Length; in MergedReplacement() 373 DeltaFirst = MergeSecond ? Text.size() - Length : 0; in MergedReplacement() 382 unsigned End = Offset + Text.size(); in merge() 387 StringRef TextRef = Text; in merge() 390 Text = (Head + R.getReplacementText() + Tail).str(); in merge() 396 Text = (Text + Tail).str(); in merge() 411 return Offset + Text.size() < R.getOffset() + Delta; in endsBefore() 419 Replacement asReplacement() const { return {FilePath, Offset, Length, Text}; } in asReplacement() 438 std::string Text; member in __anonded9fe440211::MergedReplacement
|
| /freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-pdbutil/ |
| HD | FormatUtil.h | 33 #define PUSH_MASKED_FLAG(Enum, Mask, TheOpt, Value, Text) \ argument 35 Opts.push_back(Text); 37 #define PUSH_FLAG(Enum, TheOpt, Value, Text) \ argument 38 PUSH_MASKED_FLAG(Enum, Enum::TheOpt, TheOpt, Value, Text)
|