Home
last modified time | relevance | path

Searched refs:Text (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCodeBuilders.cpp66 if (Text.empty()) 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()
86 if (Text.empty()) in buildDereference()
101 StringRef Text = in buildAddressOf() local
103 if (Text.empty()) in buildAddressOf()
109 if (Text.empty()) in buildAddressOf()
133 if (Text.empty()) in buildDot()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DEncoding.h34 inline Encoding detectEncoding(StringRef Text) { in detectEncoding() argument
55 return Text.size(); in columnWidth()
64 StringRef Tail = Text; in columnWidthWithTabs()
97 inline unsigned getEscapeSequenceLength(StringRef Text) { in getEscapeSequenceLength() argument
98 assert(Text[0] == '\\'); in getEscapeSequenceLength()
99 if (Text.size() < 2) in getEscapeSequenceLength()
102 switch (Text[1]) { in getEscapeSequenceLength()
109 while (I < Text.size() && isHexDigit(Text[I])) in getEscapeSequenceLength()
114 if (isOctDigit(Text[1])) { in getEscapeSequenceLength()
116 while (I < Text.size() && I < 4 && isOctDigit(Text[I])) in getEscapeSequenceLength()
[all …]
H A DBreakableToken.cpp96 Text.find_first_of(Blanks, MaxSplitBytes); in getCommentSplit()
98 Text[SpaceOffset + 1] == '{') { in getCommentSplit()
131 SpaceOffset + 1 < Text.size() && in getCommentSplit()
132 (Text[SpaceOffset + 1] == '{' || Text[SpaceOffset + 1] == '@')) { in getCommentSplit()
149 SpaceOffset = Text.find_first_of( in getCommentSplit()
174 if (Text.empty()) in getStringSplit()
185 if (Text[0] == '\\') { in getStringSplit()
197 if (IsBlank(Text[0])) in getStringSplit()
199 if (Text[0] == '/') in getStringSplit()
201 if (Advance == 1 && !isAlphanumeric(Text[0])) in getStringSplit()
[all …]
H A DWhitespaceManager.cpp1288 WhitespaceLength) == Text) in storeReplacement()
1303 Text.append(UseCRLF ? "\r\n" : "\n"); in appendNewlineText()
1313 Text.append(Spaces, ' '); in appendEscapedNewlineText()
1326 Text.append(Spaces, ' '); in appendIndentText()
1335 Text.append(Spaces, ' '); in appendIndentText()
1340 Text.append("\t"); in appendIndentText()
1345 Text.append(Spaces, ' '); in appendIndentText()
1354 Text.append(Spaces, ' '); in appendIndentText()
1359 Text.append(Spaces, ' '); in appendIndentText()
1367 Text.append(Spaces, ' '); in appendIndentText()
[all …]
H A DWhitespaceManager.h321 void storeReplacement(SourceRange Range, StringRef Text);
322 void appendNewlineText(std::string &Text, unsigned Newlines);
323 void appendEscapedNewlineText(std::string &Text, unsigned Newlines,
326 void appendIndentText(std::string &Text, unsigned IndentLevel,
329 unsigned appendTabIndent(std::string &Text, unsigned Spaces,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Testing/Support/
H A DAnnotations.cpp26 Annotations::Annotations(llvm::StringRef Text) { in Annotations() argument
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()
58 Text = Text.drop_front(Name->size()); in Annotations()
61 Code.push_back(Text.front()); in Annotations()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DParser.cpp59 StringRef Text; member
123 Result.Text = ""; in getNextToken()
243 std::string Text = Result->Text.str(); in consumeNumberLiteral() local
425 << NameToken.Text; in parseIdentifierPrefixImpl()
437 << OpenToken.Text; in parseIdentifierPrefixImpl()
493 << CommaToken.Text; in parseMatcherBuilder()
513 << NameToken.Text; in parseMatcherBuilder()
517 ArgValue.Text = NodeMatcherToken.Text; in parseMatcherBuilder()
558 << NameToken.Text; in parseMatcherBuilder()
635 << NameToken.Text; in parseMatcherExpressionImpl()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp183 this->Text = Text; in Chunk()
190 this->Text = "("; in Chunk()
194 this->Text = ")"; in Chunk()
198 this->Text = "["; in Chunk()
202 this->Text = "]"; in Chunk()
206 this->Text = "{"; in Chunk()
210 this->Text = "}"; in Chunk()
214 this->Text = "<"; in Chunk()
331 OS << C.Text; in getAsString()
341 return C.Text; in getTypedText()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp1003 if (Text.empty() || !isdigit(Text[0])) in parseModifier()
1009 Text = Text.drop_front(); in parseModifier()
1010 } while (!Text.empty() && isdigit(Text[0])); in parseModifier()
1027 (Text[End + 1] == '%' || Text[End + 1] == '|' || Text[End + 1] == '$')); in parseDiagText()
1031 Text = Text.slice(End, StringRef::npos); in parseDiagText()
1036 if (Text[0] == '|' || Text[0] == '}' || Text[0] == '$') in parseDiagText()
1040 Text = Text.drop_front(); in parseDiagText()
1071 Text = Text.drop_front(); // '{' or '|' in parseDiagText()
1109 Text = Text.drop_front(NameSize); in parseDiagText()
1116 if (Text.empty() || Text[0] != ',') in parseDiagText()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DComment.h262 StringRef Text; variable
269 Text(Text) { in TextComment()
301 StringRef Text; member
303 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument()
603 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument()
864 StringRef Text; variable
872 Text(Text) in VerbatimBlockLineComment()
884 return Text; in getText()
945 StringRef Text;
958 Text(Text), in VerbatimLineComment()
[all …]
H A DCommentLexer.h103 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()
303 StringRef Text(BufferPtr, TokEnd - BufferPtr); in formTextToken()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DUnicode.cpp344 int columnWidthUTF8(StringRef Text) { in columnWidthUTF8() argument
347 for (size_t i = 0, e = Text.size(); i < e; i += Length) { in columnWidthUTF8()
348 Length = getNumBytesForUTF8(Text[i]); in columnWidthUTF8()
352 if (!isprintableascii(Text[i])) in columnWidthUTF8()
358 if (Length <= 0 || i + Length > Text.size()) in columnWidthUTF8()
361 const UTF8 *Start = reinterpret_cast<const UTF8 *>(Text.data() + i); in columnWidthUTF8()
H A DAutoConvert.cpp53 std::error_code llvm::setFileTag(int FD, int CCSID, bool Text) { in setFileTag() argument
54 assert((!Text || (CCSID != FT_UNTAGGED && CCSID != FT_BINARY)) && in setFileTag()
58 Tag.ft_txtflag = Text; in setFileTag()
H A DLocale.cpp9 int columnWidth(StringRef Text) { in columnWidth() argument
10 return llvm::sys::unicode::columnWidthUTF8(Text); in columnWidth()
/freebsd-13.1/contrib/llvm-project/clang/lib/Edit/
H A DEditedSource.cpp128 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-13.1/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DMinidumpYAML.h187 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-13.1/contrib/llvm-project/clang/include/clang/Frontend/
H A DVerifyDiagnosticConsumer.h196 bool MatchAnyLine, StringRef Text, unsigned Min, unsigned Max);
204 const std::string Text; variable
222 bool MatchAnyFileAndLine, bool MatchAnyLine, StringRef Text, in Directive() argument
224 : DirectiveLoc(DirectiveLoc), DiagnosticLoc(DiagnosticLoc), Text(Text), in Directive()
/freebsd-13.1/contrib/file/magic/Magdir/
H A Dforth25 >>>24 lelong x Text length: %d bytes,
27 >>>32 lelong x Text Relocation Table length: %d bytes,
47 >4 belong x Text length: %d bytes,
52 >24 belong x Text Relocation Table length: %d bytes,
56 >4 lelong x Text length: %d bytes,
61 >24 lelong x Text Relocation Table length: %d bytes,
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_diag.h104 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-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DVerifyDiagnosticConsumer.cpp95 MatchAnyLine, Text, Min, Max) {} in StandardDirective()
103 return S.find(Text) != StringRef::npos; in match()
114 MatchAnyLine, Text, Min, Max), in RegexDirective()
292 std::string Text; member
305 MatchAnyLine, UD.Text, UD.Min, UD.Max); in attachDirective()
638 D.Text += Content.substr(CPos, FPos-CPos); in ParseDirective()
639 D.Text += '\n'; in ParseDirective()
642 if (D.Text.empty()) in ParseDirective()
643 D.Text.assign(ContentBegin, ContentEnd); in ParseDirective()
910 OS << ": " << D->Text; in PrintExpected()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DFormatUtil.h33 #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)
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Core/
H A DReplacement.cpp371 Length(R.getLength()), Text(std::string(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 __anonff523bc10211::MergedReplacement
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DCommentBriefParser.cpp46 bool isWhitespace(StringRef Text) { in isWhitespace() argument
47 for (StringRef::const_iterator I = Text.begin(), E = Text.end(); in isWhitespace()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVELFStreamer.h19 enum class AttributeType { Hidden, Numeric, Text, NumericAndText }; enumerator
61 Item->Type = AttributeType::Text; in setAttributeItem()
67 Contents.push_back({AttributeType::Text, Attribute, 0, std::string(Value)}); in setAttributeItem()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/MC/
H A DSectionKind.h28 Text, enumerator
121 bool isText() const { return K == Text || K == ExecuteOnly; } in isText()
183 static SectionKind getText() { return get(Text); } in getText()

12345678910>>...12