| /freebsd-12.1/contrib/llvm/tools/clang/lib/Format/ |
| H A D | Encoding.h | 35 inline Encoding detectEncoding(StringRef Text) { in detectEncoding() argument 56 return Text.size(); in columnWidth() 65 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 D | BreakableToken.cpp | 72 LLVM_DEBUG(llvm::dbgs() << "Comment split: \"" << Text in getCommentSplit() 103 SpaceOffset + 1 < Text.size() && Text[SpaceOffset + 1] == '{') in getCommentSplit() 118 SpaceOffset = Text.find_first_of( in getCommentSplit() 140 if (Text.empty()) in getStringSplit() 151 if (Text[0] == '\\') { in getStringSplit() 160 if (Chars > MaxSplit || Text.size() <= Advance) in getStringSplit() 163 if (IsBlank(Text[0])) in getStringSplit() 165 if (Text[0] == '/') in getStringSplit() 167 if (Advance == 1 && !isAlphanumeric(Text[0])) in getStringSplit() 171 Text = Text.substr(Advance); in getStringSplit() [all …]
|
| H A D | WhitespaceManager.cpp | 144 auto NewlinePos = Text.find_first_of('\n'); in calculateLineBreakInformation() 641 WhitespaceLength) == Text) in storeReplacement() 656 Text.append(UseCRLF ? "\r\n" : "\n"); in appendNewlineText() 666 Text.append(Spaces, ' '); in appendEscapedNewlineText() 678 Text.append(Spaces, ' '); in appendIndentText() 686 Text.append("\t"); in appendIndentText() 689 Text.append(Spaces % Style.TabWidth, ' '); in appendIndentText() 700 Text.append(Tabs, '\t'); in appendIndentText() 703 Text.append(Spaces, ' '); in appendIndentText() 708 Text.append(Tabs, '\t'); in appendIndentText() [all …]
|
| H A D | WhitespaceManager.h | 197 void storeReplacement(SourceRange Range, StringRef Text); 198 void appendNewlineText(std::string &Text, unsigned Newlines); 199 void appendEscapedNewlineText(std::string &Text, unsigned Newlines, 202 void appendIndentText(std::string &Text, unsigned IndentLevel,
|
| H A D | FormatTokenLexer.cpp | 491 StringRef Text = FormatTok->TokenText; in getNextToken() local 494 if (pos >= 0 && Text[pos] == '\r') in getNextToken() 502 if (Text[pos] != '\\') in getNextToken() 508 for (int i = 0, e = Text.size(); i != e; ++i) { in getNextToken() 509 switch (Text[i]) { in getNextToken() 531 if (i + 1 == e || (Text[i + 1] != '\r' && Text[i + 1] != '\n')) in getNextToken() 638 StringRef Text = FormatTok->TokenText; in getNextToken() local 639 size_t FirstNewlinePos = Text.find('\n'); in getNextToken() 656 Text.substr(Text.find_last_of('\n') + 1), 0, Style.TabWidth, Encoding); in getNextToken() 668 if (MacroBlockBeginRegex.match(Text)) { in getNextToken() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/ |
| H A D | CodeCompleteConsumer.cpp | 183 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-12.1/contrib/llvm/tools/clang/utils/TableGen/ |
| H A D | ClangDiagnosticsEmitter.cpp | 998 Text = Text.drop_front(); in parseModifier() 1026 Text = Text.drop_front(); in parseDiagText() 1056 Text = Text.drop_front(1); in parseDiagText() 1077 Text = Text.drop_front(1); in parseDiagText() 1084 Text = Text.drop_front(); // '{' in parseDiagText() 1089 Text = Text.drop_front(NameSize); in parseDiagText() 1090 Text = Text.drop_front(); // '}' in parseDiagText() 1108 Text = Text.drop_front(); // '{' in parseDiagText() 1110 Text = Text.drop_front(); // '|' in parseDiagText() 1113 Text = Text.drop_front(); // '}' in parseDiagText() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Parser.cpp | 58 StringRef Text; member 108 Result.Text = ""; in getNextToken() 115 Result.Text = ""; in getNextToken() 119 Result.Text = Code.substr(0, 1); in getNextToken() 124 Result.Text = Code.substr(0, 1); in getNextToken() 222 std::string Text = Result->Text.str(); in consumeNumberLiteral() local 375 << NameToken.Text; in parseIdentifierPrefixImpl() 432 << OpenToken.Text; in parseMatcherExpressionImpl() 440 << NameToken.Text; in parseMatcherExpressionImpl() 461 << CommaToken.Text; in parseMatcherExpressionImpl() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/ |
| H A D | Comment.h | 264 StringRef Text; variable 271 Text(Text) { in TextComment() 303 StringRef Text; member 305 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument() 604 Argument(SourceRange Range, StringRef Text) : Range(Range), Text(Text) { } in Argument() 865 StringRef Text; variable 873 Text(Text) in VerbatimBlockLineComment() 885 return Text; in getText() 946 StringRef Text; 959 Text(Text), in VerbatimLineComment() [all …]
|
| H A D | CommentLexer.h | 104 void setText(StringRef Text) { in setText() argument 106 TextPtr = Text.data(); in setText() 107 IntVal = Text.size(); in setText() 146 void setVerbatimBlockText(StringRef Text) { in setVerbatimBlockText() argument 148 TextPtr = Text.data(); in setVerbatimBlockText() 149 IntVal = Text.size(); in setVerbatimBlockText() 167 void setVerbatimLineText(StringRef Text) { in setVerbatimLineText() argument 169 TextPtr = Text.data(); in setVerbatimLineText() 170 IntVal = Text.size(); in setVerbatimLineText() 303 StringRef Text(BufferPtr, TokEnd - BufferPtr); in formTextToken() [all …]
|
| /freebsd-12.1/gnu/usr.bin/grep/ |
| H A D | xmalloc.c | 35 # define _(Text) gettext (Text) argument 38 # define _(Text) Text argument 40 #define N_(Text) Text argument
|
| H A D | closeout.c | 24 # define _(Text) gettext (Text) argument 26 # define _(Text) Text argument
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | Unicode.cpp | 343 int columnWidthUTF8(StringRef Text) { in columnWidthUTF8() argument 346 for (size_t i = 0, e = Text.size(); i < e; i += Length) { in columnWidthUTF8() 347 Length = getNumBytesForUTF8(Text[i]); in columnWidthUTF8() 348 if (Length <= 0 || i + Length > Text.size()) in columnWidthUTF8() 351 const UTF8 *Start = reinterpret_cast<const UTF8 *>(Text.data() + i); in columnWidthUTF8()
|
| H A D | Locale.cpp | 9 int columnWidth(StringRef Text) { in columnWidth() argument 10 return llvm::sys::unicode::columnWidthUTF8(Text); in columnWidth()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Edit/ |
| H A D | EditedSource.cpp | 129 if (FA.Text.empty()) { in commitInsert() 130 FA.Text = copyString(text); in commitInsert() 135 FA.Text = copyString(Twine(text) + FA.Text); in commitInsert() 137 FA.Text = copyString(Twine(FA.Text) + text); in commitInsert() 185 StrVec += FA.Text; in commitInsertFromRange() 249 TopFA->Text = StringRef(); in commitRemove() 298 commitInsert(edit.OrigLoc, edit.Offset, edit.Text, edit.BeforePrev); in commit() 421 StrVec = I->second.Text; in applyRewrites() 432 StrVec += act.Text; in applyRewrites() 441 StrVec = act.Text; in applyRewrites()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Frontend/ |
| H A D | VerifyDiagnosticConsumer.h | 157 bool MatchAnyLine, StringRef Text, 166 const std::string Text; variable 183 bool MatchAnyLine, StringRef Text, unsigned Min, unsigned Max) in Directive() argument 185 Text(Text), Min(Min), Max(Max), MatchAnyLine(MatchAnyLine) { in Directive()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/ |
| H A D | VerifyDiagnosticConsumer.cpp | 190 bool MatchAnyLine, StringRef Text, unsigned Min, in StandardDirective() argument 200 return S.find(Text) != StringRef::npos; in match() 565 std::string Text; in ParseDirective() local 571 Text += Content.substr(CPos, FPos-CPos); in ParseDirective() 572 Text += '\n'; in ParseDirective() 575 if (Text.empty()) in ParseDirective() 576 Text.assign(ContentBegin, ContentEnd); in ParseDirective() 579 if (RegexKind && Text.find("{{") == StringRef::npos) { in ParseDirective() 581 diag::err_verify_missing_regex) << Text; in ParseDirective() 748 OS << ": " << D->Text; in PrintExpected() [all …]
|
| /freebsd-12.1/contrib/compiler-rt/lib/ubsan/ |
| H A D | ubsan_diag.h | 105 const char *Text; variable 108 Range() : Start(), End(), Text() {} in Range() 109 Range(MemoryLocation Start, MemoryLocation End, const char *Text) in Range() argument 110 : Start(Start), End(End), Text(Text) {} in Range() 113 const char *getText() const { return Text; } in getText()
|
| /freebsd-12.1/contrib/llvm/include/llvm/Support/ |
| H A D | SourceMgr.h | 231 std::string Text; variable 236 : Range(Loc, Loc), Text(Insertion.str()) { in SMFixIt() 242 : Range(R), Text(Replacement.str()) { in SMFixIt() 246 StringRef getText() const { return Text; } in getText() 254 return Text < Other.Text;
|
| /freebsd-12.1/contrib/llvm/tools/llvm-pdbutil/ |
| H A D | FormatUtil.h | 34 #define PUSH_MASKED_FLAG(Enum, Mask, TheOpt, Value, Text) \ argument 36 Opts.push_back(Text); 38 #define PUSH_FLAG(Enum, TheOpt, Value, Text) \ argument 39 PUSH_MASKED_FLAG(Enum, Enum::TheOpt, TheOpt, Value, Text)
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Core/ |
| H A D | Replacement.cpp | 372 Text(R.getReplacementText()) { in MergedReplacement() 373 Delta += MergeSecond ? 0 : Text.size() - Length; in MergedReplacement() 374 DeltaFirst = MergeSecond ? Text.size() - Length : 0; in MergedReplacement() 383 unsigned End = Offset + Text.size(); in merge() 388 StringRef TextRef = Text; in merge() 391 Text = (Head + R.getReplacementText() + Tail).str(); in merge() 397 Text = (Text + Tail).str(); in merge() 412 return Offset + Text.size() < R.getOffset() + Delta; in endsBefore() 420 Replacement asReplacement() const { return {FilePath, Offset, Length, Text}; } in asReplacement() 439 std::string Text; member in __anonf61fa6bc0211::MergedReplacement
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | CommentBriefParser.cpp | 47 bool isWhitespace(StringRef Text) { in isWhitespace() argument 48 for (StringRef::const_iterator I = Text.begin(), E = Text.end(); in isWhitespace()
|
| H A D | CommentParser.cpp | 135 StringRef Text) { in formTokenWithChars() argument 143 Result.setText(Text); in formTokenWithChars() 181 StringRef Text = StringRef(TextPtr, Length); in lexWord() local 183 formTokenWithChars(Tok, Loc, WordBegin, Length, Text); in lexWord() 226 StringRef Text = StringRef(TextPtr, Length); in lexDelimitedSeq() local 229 Pos.BufferPtr - WordBegin, Text); in lexDelimitedSeq() 708 StringRef Text; in parseVerbatimLine() local 713 Text = Tok.getVerbatimLineText(); in parseVerbatimLine() 716 Text = ""; in parseVerbatimLine() 722 Text); in parseVerbatimLine()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/ |
| H A D | CodeCompleteConsumer.h | 520 const char *Text; member 528 Chunk() : Text(nullptr) {} in Chunk() 530 explicit Chunk(ChunkKind Kind, const char *Text = ""); 533 static Chunk CreateText(const char *Text); 710 void AddTypedTextChunk(const char *Text); 713 void AddTextChunk(const char *Text); 722 void AddInformativeChunk(const char *Text); 731 void AddChunk(CodeCompletionString::ChunkKind CK, const char *Text = "");
|
| /freebsd-12.1/contrib/llvm/include/llvm/MC/ |
| H A D | SectionKind.h | 29 Text, enumerator 119 bool isText() const { return K == Text || K == ExecuteOnly; } in isText() 180 static SectionKind getText() { return get(Text); } in getText()
|