Home
last modified time | relevance | path

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

12345678910>>...12

/llvm-project/clang/test/Index/
H A Dcomplete-kvc.m56 …tParen (}{Text void}{RightParen )}{TypedText addMutableArrayPropertyObject:}{LeftParen (}{Placehol…
57 …ethodDecl:{LeftParen (}{Text void}{RightParen )}{TypedText addMutableSetProperty:}{LeftParen (}{Te…
58 // CHECK-CC1: ObjCInstanceMethodDecl:{LeftParen (}{Text NSArray *}{RightParen )}{TypedText arrayPro…
59 …Decl:{LeftParen (}{Text NSArray *}{RightParen )}{TypedText arrayPropertyAtIndexes:}{LeftParen (}{T…
60 // CHECK-CC1: ObjCInstanceMethodDecl:{LeftParen (}{Text BOOL}{RightParen )}{TypedText boolProperty}…
61 …Decl:{LeftParen (}{Text NSArray *}{RightParen )}{TypedText boolPropertyAtIndexes:}{LeftParen (}{Te…
62 // CHECK-CC1: ObjCInstanceMethodDecl:{LeftParen (}{Text NSUInteger}{RightParen )}{TypedText countOf…
63 // CHECK-CC1: ObjCInstanceMethodDecl:{LeftParen (}{Text NSUInteger}{RightParen )}{TypedText countOf…
64 // CHECK-CC1: ObjCInstanceMethodDecl:{LeftParen (}{Text NSUInteger}{RightParen )}{TypedText countOf…
65 // CHECK-CC1: ObjCInstanceMethodDecl:{LeftParen (}{Text NSEnumerator *}{RightParen )}{TypedText enu…
[all …]
H A Dcomplete-method-decls.m111 // CHECK-CC1: ObjCInstanceMethodDecl:{LeftParen (}{Text id}{RightParen )}{TypedText abc} (40)
112 // CHECK-CC1: ObjCInstanceMethodDecl:{LeftParen (}{Text int}{RightParen )}{TypedText getInt} (40)
113 // CHECK-CC1: ObjCInstanceMethodDecl:{LeftParen (}{Text id}{RightParen )}{TypedText getSelf} (40)
114 …nstanceMethodDecl:{LeftParen (}{Text id}{RightParen )}{TypedText initWithInt:}{LeftParen (}{Text i…
115Text id}{RightParen )}{TypedText initWithTwoInts:}{LeftParen (}{Text inout }{Text int}{RightParen …
119 …K-CC2: ObjCInstanceMethodDecl:{TypedText initWithInt:}{LeftParen (}{Text int}{RightParen )}{Text x}
120 …{LeftParen (}{Text inout }{Text int}{RightParen )}{Text x}{HorizontalSpace }{TypedText second:}{L…
125 …K-CC3: ObjCInstanceMethodDecl:{TypedText initWithInt:}{LeftParen (}{Text int}{RightParen )}{Text x}
126 …{LeftParen (}{Text inout }{Text int}{RightParen )}{Text x}{HorizontalSpace }{TypedText second:}{L…
128 …stanceMethodDecl:{LeftParen (}{Text id}{RightParen )}{TypedText abc}{HorizontalSpace }{LeftBrace …
[all …]
H A Dcomplete-preprocessor.m23 …-NEXT: NotImplemented:{TypedText import}{HorizontalSpace }{Text "}{Placeholder header}{Text "} (4…
24 …-NEXT: NotImplemented:{TypedText import}{HorizontalSpace }{Text <}{Placeholder header}{Text >} (4…
25 …NEXT: NotImplemented:{TypedText include}{HorizontalSpace }{Text "}{Placeholder header}{Text "} (4…
26 …NEXT: NotImplemented:{TypedText include}{HorizontalSpace }{Text <}{Placeholder header}{Text >} (4…
27 … NotImplemented:{TypedText include_next}{HorizontalSpace }{Text "}{Placeholder header}{Text "} (4…
28 … NotImplemented:{TypedText include_next}{HorizontalSpace }{Text <}{Placeholder header}{Text >} (4…
30 …{HorizontalSpace }{Placeholder number}{HorizontalSpace }{Text "}{Placeholder filename}{Text "} (…
46 …-NEXT: NotImplemented:{TypedText import}{HorizontalSpace }{Text "}{Placeholder header}{Text "} (4…
47 …-NEXT: NotImplemented:{TypedText import}{HorizontalSpace }{Text <}{Placeholder header}{Text >} (4…
48 …NEXT: NotImplemented:{TypedText include}{HorizontalSpace }{Text "}{Placeholder header}{Text "} (4…
[all …]
H A Dcomment-misc-tags.m26 // CHECK-NEXT: (CXComment_Text Text=[ Single-threaded work-loop client request mechanism.] Ha…
29 // CHECK-NEXT: (CXComment_Text Text=[ An IOCommandGate instance is an extremely light weight …
30 // CHECK-NEXT: (CXComment_Text Text=[ executes an action on the driver's work-loop...…
32 // CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ Many discussions about text])
33 // CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ Many1 discussions about text])
34 // CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ Many2 discussions about text]))
38 // CHECK-NEXT: (CXComment_VerbatimBlockLine Text=[ //un_ref/c/func/function_name link text goes…
40 // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
43 // CHECK-NEXT: (CXComment_Text Text=[ //un_ref/doc/uid/XX0000011 I/O Kit Fundamentals] HasTrai…
44 // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace)))
[all …]
H A Dheaderfile-comment-to-html.m21 // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
24 // CHECK-NEXT: (CXComment_Text Text=[ Device.h ])
25 // CHECK-NEXT: (CXComment_Text Text=[<Foundation])
26 // CHECK-NEXT: (CXComment_Text Text=[/Device.h>])))
28 // CHECK-NEXT: (CXComment_Text Text=[ A Device represents a remote or local computer o…
43 // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
46 // CHECK-NEXT: (CXComment_Text Text=[ Sensor.h "Sensor.h"])))
48 // CHECK-NEXT: (CXComment_Text Text=[ ] IsWhitespace))
51 // CHECK-NEXT: (CXComment_Text Text=[ This is Sensor on the Device.] HasTrailingNewline)
52 // CHECK-NEXT: (CXComment_Text Text=[ Its purpose is not to Sense Device's heat.]))))]
[all …]
H A Dcomplete-parameterized-classes.m68 …thodDecl:{LeftParen (}{Text void}{RightParen )}{TypedText apply2:}{LeftParen (}{Text void (^)(id, …
69 …ethodDecl:{LeftParen (}{Text void}{RightParen )}{TypedText apply:}{LeftParen (}{Text void (^)(id, …
70 …nstanceMethodDecl:{LeftParen (}{Text NSObject *}{RightParen )}{TypedText getit:}{LeftParen (}{Text
71 // CHECK-CC6: ObjCInstanceMethodDecl:{LeftParen (}{Text id}{RightParen )}{TypedText prop} (40)
/llvm-project/clang/lib/Format/
H A DEncoding.h33 inline Encoding detectEncoding(StringRef Text) { in detectEncoding() argument
34 const llvm::UTF8 *Ptr = reinterpret_cast<const llvm::UTF8 *>(Text.begin()); in detectEncoding()
35 const llvm::UTF8 *BufEnd = reinterpret_cast<const llvm::UTF8 *>(Text.end()); in detectEncoding()
44 inline unsigned columnWidth(StringRef Text, Encoding Encoding) { in columnWidth() argument
46 int ContentWidth = llvm::sys::unicode::columnWidthUTF8(Text); in columnWidth()
54 return Text.size(); in columnWidth()
60 inline unsigned columnWidthWithTabs(StringRef Text, unsigned StartColumn, in columnWidthWithTabs() argument
63 StringRef Tail = Text; in columnWidthWithTabs()
96 inline unsigned getEscapeSequenceLength(StringRef Text) { in getEscapeSequenceLength() argument
97 assert(Text[0] == '\\'); in getEscapeSequenceLength()
[all …]
H A DIntegerLiteralSeparatorFixer.cpp94 auto Text = StringRef(SourceMgr.getCharacterData(Location), Length); in process() local
96 if (isClangFormatOff(Text)) in process()
98 else if (isClangFormatOn(Text)) in process()
102 if (Skip || Tok.isNot(tok::numeric_constant) || Text[0] == '.' || in process()
107 const auto B = getBase(Text); in process()
119 Text.find_first_of(IsBase16 ? Suffixes.drop_back() : Suffixes); in process()
121 Text = Text.substr(0, Pos); in process()
125 if ((IsBase10 && Text.find_last_of(".eEfFdDmM") != StringRef::npos) || in process()
126 (IsBase16 && Text.find_last_of(".pP") != StringRef::npos)) { in process()
129 const auto Start = Text[0] == '0' ? 2 : 0; in process()
[all …]
H A DBreakableToken.cpp68 getCommentSplit(StringRef Text, unsigned ContentStartColumn, in getCommentSplit() argument
72 LLVM_DEBUG(llvm::dbgs() << "Comment split: \"" << Text in getCommentSplit()
82 NumChars < MaxSplit && MaxSplitBytes < Text.size();) { in getCommentSplit()
84 encoding::getCodePointNumBytes(Text[MaxSplitBytes], Encoding); in getCommentSplit()
86 Text.substr(MaxSplitBytes, BytesInChar), ContentStartColumn + NumChars, in getCommentSplit()
96 Text.find_first_of(Blanks, MaxSplitBytes); in getCommentSplit()
97 if (SpaceOffset != StringRef::npos && SpaceOffset + 1 < Text.size() && in getCommentSplit()
98 Text[SpaceOffset + 1] == '{') { in getCommentSplit()
103 StringRef::size_type SpaceOffset = Text.find_last_of(Blanks, MaxSplitBytes); in getCommentSplit()
115 Text in getCommentSplit()
171 getStringSplit(StringRef Text,unsigned UsedColumns,unsigned ColumnLimit,unsigned TabWidth,encoding::Encoding Encoding) getStringSplit() argument
433 StringRef Text = Content[LineIndex].substr(TailOffset); compressWhitespace() local
529 const StringRef &Text = Content[i]; BreakableBlockComment() local
715 StringRef Text = Content[LineIndex].substr(TailOffset); insertBreak() local
1029 StringRef Text = Content[LineIndex].substr(TailOffset); insertBreak() local
[all...]
/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCodeBuilders.cpp77 StringRef Text = getText(E, Context); in buildParens() local
78 if (Text.empty()) in buildParens()
81 return ("(" + Text + ")").str(); in buildParens()
82 return Text.str(); in buildParens()
90 StringRef Text = in buildDereference() local
92 if (Text.empty()) in buildDereference()
94 return Text.str(); in buildDereference()
97 StringRef Text = getText(E, Context); in buildDereference() local
98 if (Text.empty()) in buildDereference()
102 return ("*(" + Text + ")").str(); in buildDereference()
[all …]
/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp70 if (Last.Kind == FragmentKind::Text) { in appendUnduplicatedTextCharacter()
77 append("", FragmentKind::Text); in appendUnduplicatedTextCharacter()
98 if (Last.Kind == FragmentKind::Text && Last.Spelling.back() == ';') in removeTrailingSemicolon()
127 case DeclarationFragments::FragmentKind::Text: in getFragmentKindString()
148 .Case("text", DeclarationFragments::FragmentKind::Text) in parseFragmentKindFromString()
159 return Fragments.append(" ", DeclarationFragments::FragmentKind::Text) in getExceptionSpecificationString()
161 .append("(", DeclarationFragments::FragmentKind::Text) in getExceptionSpecificationString()
162 .append(")", DeclarationFragments::FragmentKind::Text); in getExceptionSpecificationString()
167 return Fragments.append(" ", DeclarationFragments::FragmentKind::Text) in getExceptionSpecificationString()
173 return Fragments.append(" ", DeclarationFragments::FragmentKind::Text) in getExceptionSpecificationString()
[all...]
/llvm-project/clang-tools-extra/unittests/clang-tidy/
H A DModernizeModuleTest.cpp22 static std::vector<Token> tokenify(const char *Text) { in tokenify() argument
27 Lexer Lex(SourceLocation{}, LangOpts, Text, Text, Text + std::strlen(Text)); in tokenify()
39 static bool matchText(const char *Text, bool AllowComma) { in matchText() argument
40 std::vector<Token> Tokens{tokenify(Text)}; in matchText()
46 static modernize::LiteralSize sizeText(const char *Text) { in sizeText() argument
47 std::vector<Token> Tokens{tokenify(Text)}; in sizeText()
78 const char *Text; member
83 << ", Text: '" << Value.Text << '\''; in operator <<()
89 const char *Text; member
92 return Str << "Size: " << toString(Value.Size) << ", Text: '" << Value.Text << '\''; in operator <<()
[all …]
/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DParser.cpp59 StringRef Text; member
116 Result.Text = StringRef(CodeCompletionLocation, 0); in getNextToken()
123 Result.Text = ""; in getNextToken()
133 Result.Text = Code.substr(0, 1); in getNextToken()
138 Result.Text = Code.substr(0, 1); in getNextToken()
145 Result.Text = Code.substr(0, 1); in getNextToken()
150 Result.Text = Code.substr(0, 1); in getNextToken()
155 Result.Text = Code.substr(0, 1); in getNextToken()
182 Result.Text = Code.substr(0, TokenLength); in getNextToken()
198 Result.Text = Code.substr(0, TokenLength); in getNextToken()
[all …]
/llvm-project/llvm/lib/Testing/Annotations/
H A DAnnotations.cpp26 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()
34 Code.reserve(Text.size()); in Annotations()
35 while (!Text.empty()) { in Annotations()
36 if (Text.consume_front("^")) { in Annotations()
44 if (Text.consume_front("[[")) { in Annotations()
52 if (Text.consume_front("]]")) { in Annotations()
63 if (Text.consume_front("$")) { in Annotations()
65 Text.take_while([](char C) { return llvm::isAlnum(C) || C == '_'; }); in Annotations()
[all …]
/llvm-project/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp484 std::string Text;
485 TextPiece(StringRef Text, StringRef Role = "") in ~Piece()
486 : Piece(TextPieceClass), Role(Role), Text(Text.str()) {}
631 DiagText(DiagnosticTextBuilder &Builder, StringRef Text) in New()
632 : Builder(Builder), Root(parseDiagText(Text, StopAt::End)) {} in New()
643 Piece *parseDiagText(StringRef &Text, StopAt Stop);
729 CASE(Text); in Visit()
872 StringRef T = P->Text; in VisitText()
994 void VisitText(TextPiece *P) { Result += P->Text; } in VisitDiff()
508 std::string Text; global() member
1018 parseDiagText(StringRef & Text,StopAt Stop) parseDiagText() argument
1172 StringRef Text = R->getValueAsString("Summary"); buildForDocumentation() local
1191 StringRef Text = R->getValueAsString("Summary"); buildForDefinition() local
1217 isExemptAtStart(StringRef Text) isExemptAtStart() argument
1256 isExemptAtEnd(StringRef Text) isExemptAtEnd() argument
1274 __anon4a7b64cf0802(StringRef Text) verifyDiagnosticWording() argument
1290 __anon4a7b64cf0902(StringRef Text) verifyDiagnosticWording() argument
1903 StringRef Text = R->getValueAsString("Summary"); writeDiagnosticText() local
[all...]
/llvm-project/clang-tools-extra/clangd/
H A DCodeCompletionStrings.cpp26 llvm::StringRef(Chunk.Text).ends_with("::"); in isInformativeQualifierChunk()
29 void appendEscapeSnippet(const llvm::StringRef Text, std::string *Out) { in appendEscapeSnippet() argument
30 for (const auto Character : Text) { in appendEscapeSnippet()
46 *Out += C.Text; in appendOptionalChunk()
168 if (!llvm::StringRef(Chunk.Text).ends_with(":")) { // Treat as C++. in getSignature()
206 *Signature += Chunk.Text; in getSignature()
207 *Snippet += Chunk.Text; in getSignature()
212 *Signature += Chunk.Text; in getSignature()
213 *Snippet += Chunk.Text; in getSignature()
221 *Signature += Chunk.Text; in getSignature()
[all …]
/llvm-project/clang/lib/Sema/
H A DCodeCompleteConsumer.cpp179 CodeCompletionString::Chunk::Chunk(ChunkKind Kind, const char *Text)
180 : Kind(Kind), Text("") {
188 this->Text = Text; in Chunk()
195 this->Text = "("; in Chunk()
199 this->Text = ")"; in Chunk()
203 this->Text = "["; in Chunk()
207 this->Text = "]"; in Chunk()
211 this->Text = "{"; in Chunk()
215 this->Text in Chunk()
183 Chunk(ChunkKind Kind,const char * Text) Chunk() argument
257 CreateText(const char * Text) CreateText() argument
448 AddTypedTextChunk(const char * Text) AddTypedTextChunk() argument
452 AddTextChunk(const char * Text) AddTextChunk() argument
464 AddInformativeChunk(const char * Text) AddInformativeChunk() argument
478 AddChunk(CodeCompletionString::ChunkKind CK,const char * Text) AddChunk() argument
[all...]
/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderAnalysis.cpp95 std::optional<StringRef> parseIWYUPragma(const char *Text) { in parseIWYUPragma() argument
97 if (Text[0] != '/' || (Text[1] != '/' && Text[1] != '*')) in parseIWYUPragma()
99 bool BlockComment = Text[1] == '*'; in parseIWYUPragma()
100 Text += 2; in parseIWYUPragma()
104 if (strncmp(Text, IWYUPragma.data(), IWYUPragma.size())) in parseIWYUPragma()
106 Text += IWYUPragma.size(); in parseIWYUPragma()
107 const char *End = Text; in parseIWYUPragma()
110 StringRef Rest(Text, End - Text); in parseIWYUPragma()
/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DMarkup.cpp77 parseTextOutsideMarkup(takeTo(Line, Element->Text.begin())); in nextNode()
79 advanceTo(Line, Element->Text.end()); in nextNode()
124 Element.Text = Line.slice(BeginPos, EndPos); in parseElement()
128 StringRef Content = Element.Text.drop_front(3).drop_back(3); in parseElement()
144 static MarkupNode textNode(StringRef Text) {
146 Node.Text = Text; in textNode()
153 void MarkupParser::parseTextOutsideMarkup(StringRef Text) {
154 if (Text.empty()) in parseTextOutsideMarkup() argument
157 while (SGRSyntax.match(Text, in parseTextOutsideMarkup()
145 textNode(StringRef Text) textNode() argument
[all...]
/llvm-project/clang/include/clang/AST/
H A DRawCommentList.h121 StringRef Text = getRawText(SourceMgr); in hasUnsupportedSplice() local
122 if (Text.size() < 6 || Text[0] != '/') in hasUnsupportedSplice()
124 if (Text[1] == '*') in hasUnsupportedSplice()
125 return Text[Text.size() - 1] != '/' || Text[Text.size() - 2] != '*'; in hasUnsupportedSplice()
126 return Text[1] != '/'; in hasUnsupportedSplice()
154 std::string Text; member
158 CommentLine(StringRef Text, PresumedLoc Begin, PresumedLoc End) in CommentLine()
159 : Text(Text), Begin(Begin), End(End) {} in CommentLine()
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 …]
/llvm-project/llvm/lib/Support/
H A DUnicode.cpp481 int columnWidthUTF8(StringRef Text) { in columnWidthUTF8() argument
484 for (size_t i = 0, e = Text.size(); i < e; i += Length) { in columnWidthUTF8()
485 Length = getNumBytesForUTF8(Text[i]); in columnWidthUTF8()
489 if (!isprintableascii(Text[i])) in columnWidthUTF8()
495 if (Length <= 0 || i + Length > Text.size()) in columnWidthUTF8()
498 const UTF8 *Start = reinterpret_cast<const UTF8 *>(Text.data() + i); in columnWidthUTF8()
/llvm-project/llvm/test/TableGen/
H A Dsubst2.td8 string Text = t;
11 class Text<string text> :
14 def Ok1 : Text<"No subst">;
15 def Ok2 : Text<"No NORECURSE">;
16 def Trouble : Text<"RECURSE NORECURSE">;
/llvm-project/llvm/unittests/Support/
H A DDJBTest.cpp60 StringLiteral Text; in TEST() member
75 SCOPED_TRACE("Text: '" + T.Text + "'"); in TEST()
76 EXPECT_EQ(T.Hash, djbHash(T.Text)); in TEST()
77 EXPECT_EQ(T.Hash, caseFoldingDjbHash(T.Text)); in TEST()
78 EXPECT_EQ(T.Hash, caseFoldingDjbHash(T.Text.upper())); in TEST()
/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/
H A DMarkup.h35 StringRef Text; member
45 return Text == Other.Text && Tag == Other.Tag && Fields == Other.Fields;
85 return SGRSyntax.match(Node.Text); in isSGR()
90 void parseTextOutsideMarkup(StringRef Text);

12345678910>>...12