Home
last modified time | relevance | path

Searched refs:Comment (Results 1 – 25 of 158) sorted by relevance

1234567

/llvm-project-15.0.7/clang/include/clang-c/
H A DDocumentation.h277 clang_InlineCommandComment_getRenderKind(CXComment Comment);
285 unsigned clang_InlineCommandComment_getNumArgs(CXComment Comment);
295 CXString clang_InlineCommandComment_getArgText(CXComment Comment,
312 unsigned clang_HTMLStartTagComment_isSelfClosing(CXComment Comment);
355 unsigned clang_BlockCommandComment_getNumArgs(CXComment Comment);
365 CXString clang_BlockCommandComment_getArgText(CXComment Comment,
375 CXComment clang_BlockCommandComment_getParagraph(CXComment Comment);
383 CXString clang_ParamCommandComment_getParamName(CXComment Comment);
401 unsigned clang_ParamCommandComment_getParamIndex(CXComment Comment);
455 unsigned clang_TParamCommandComment_getDepth(CXComment Comment);
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-mca/
H A DCodeRegionGenerator.cpp78 StringRef Comment(CommentText); in HandleComment() local
79 if (Comment.empty()) in HandleComment()
84 if (Position >= Comment.size()) in HandleComment()
88 Comment = Comment.drop_front(Position); in HandleComment()
89 if (Comment.consume_front("LLVM-MCA-END")) { in HandleComment()
92 if (Position < Comment.size()) in HandleComment()
93 Comment = Comment.drop_front(Position); in HandleComment()
94 Regions.endRegion(Comment, Loc); in HandleComment()
104 if (Position < Comment.size()) in HandleComment()
105 Comment = Comment.drop_front(Position); in HandleComment()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DByteStreamer.h45 void emitInt8(uint8_t Byte, const Twine &Comment) override { in emitInt8() argument
46 AP.OutStreamer->AddComment(Comment); in emitInt8()
50 AP.OutStreamer->AddComment(Comment); in emitSLEB128()
53 void emitULEB128(uint64_t DWord, const Twine &Comment, in emitULEB128() argument
55 AP.OutStreamer->AddComment(Comment); in emitULEB128()
80 void emitULEB128(uint64_t DWord, const Twine &Comment, in emitULEB128() argument
105 void emitInt8(uint8_t Byte, const Twine &Comment) override { in emitInt8() argument
108 Comments.push_back(Comment.str()); in emitInt8()
114 Comments.push_back(Comment.str()); in emitSLEB128()
122 void emitULEB128(uint64_t DWord, const Twine &Comment, in emitULEB128() argument
[all …]
H A DDwarfExpression.h112 const char *Comment; member
115 static Register createRegister(int RegNo, const char *Comment) { in createRegister()
116 return {RegNo, 0, Comment}; in createRegister()
121 const char *Comment) { in createSubRegister()
122 return {RegNo, SizeInBits, Comment}; in createSubRegister()
188 virtual void emitOp(uint8_t Op, const char *Comment = nullptr) = 0;
226 void addReg(int DwarfReg, const char *Comment = nullptr);
385 void emitOp(uint8_t Op, const char *Comment = nullptr) override;
415 void emitOp(uint8_t Op, const char *Comment = nullptr) override;
/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DAPI.cpp50 Linkage, Comment, Fragments, SubHeading); in addGlobalVar()
56 const DocComment &Comment, DeclarationFragments Fragments, in addGlobalFunction() argument
64 const AvailabilityInfo &Availability, const DocComment &Comment, in addEnumConstant() argument
73 const DocComment &Comment, in addEnum() argument
83 const DocComment &Comment, in addStructField() argument
93 const DocComment &Comment, in addStruct() argument
121 const DocComment &Comment, DeclarationFragments Declaration, in addObjCInterface() argument
131 const DocComment &Comment, DeclarationFragments Declaration, in addObjCMethod() argument
143 const DocComment &Comment, DeclarationFragments Declaration, in addObjCProperty() argument
156 const DocComment &Comment, DeclarationFragments Declaration, in addObjCInstanceVariable() argument
[all …]
H A DExtractAPIConsumer.cpp269 DocComment Comment; in VisitVarDecl() local
330 DocComment Comment; in VisitFunctionDecl() local
370 DocComment Comment; in VisitEnumDecl() local
411 DocComment Comment; in VisitRecordDecl() local
446 DocComment Comment; in VisitObjCInterfaceDecl() local
492 DocComment Comment; in VisitObjCProtocolDecl() local
529 DocComment Comment; in VisitTypedefNameDecl() local
553 DocComment Comment; in VisitObjCCategoryDecl() local
622 DocComment Comment; in recordEnumConstants() local
649 DocComment Comment; in recordStructFields() local
[all …]
/llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp105 emitComment(Comment); in mapByteVectorTail()
212 emitComment(Comment); in mapStringZ()
233 emitComment(Comment); in mapGuid()
258 emitComment(Comment); in mapStringZVectorZ()
285 emitComment(Comment); in emitEncodedSignedInteger()
291 emitComment(Comment); in emitEncodedSignedInteger()
297 emitComment(Comment); in emitEncodedSignedInteger()
303 emitComment(Comment); in emitEncodedSignedInteger()
308 emitComment(Comment); in emitEncodedSignedInteger()
317 emitComment(Comment); in emitEncodedUnsignedInteger()
[all …]
/llvm-project-15.0.7/clang/include/clang/ExtractAPI/
H A DAPI.h65 DocComment Comment; member
109 Linkage(Linkage), Comment(Comment), Declaration(Declaration), in APIRecord()
127 Comment, Declaration, SubHeading), in GlobalFunctionRecord()
146 Comment, Declaration, SubHeading) {} in GlobalVariableRecord()
160 const DocComment &Comment, in EnumConstantRecord()
245 const DocComment &Comment, in ObjCPropertyRecord()
360 const DocComment &Comment, in ObjCCategoryRecord()
384 const DocComment &Comment, in ObjCInterfaceRecord()
404 const DocComment &Comment, in ObjCProtocolRecord()
448 Comment, Declaration, SubHeading), in TypedefRecord()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeViewRecordIO.h104 emitComment(Comment);
126 if (auto EC = mapInteger(X, Comment))
139 Error mapGuid(GUID &Guid, const Twine &Comment = "");
142 const Twine &Comment = "");
146 const Twine &Comment = "") {
150 emitComment(Comment);
183 const Twine &Comment = "") {
184 emitComment(Comment);
204 const Twine &Comment = "");
238 void emitComment(const Twine &Comment) { in emitComment() argument
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DRawCommentList.cpp29 if ((Comment.size() < MinCommentLength) || Comment[0] != '/') in getCommentKind()
33 if (Comment[1] == '/') { in getCommentKind()
34 if (Comment.size() < 3) in getCommentKind()
37 if (Comment[2] == '/') in getCommentKind()
39 else if (Comment[2] == '!') in getCommentKind()
48 if (Comment[1] != '*' || in getCommentKind()
49 Comment[Comment.size() - 2] != '*' || in getCommentKind()
50 Comment[Comment.size() - 1] != '/') in getCommentKind()
53 if (Comment[2] == '*') in getCommentKind()
60 const bool TrailingComment = (Comment.size() > 3) && (Comment[3] == '<'); in getCommentKind()
[all …]
H A DCommentSema.cpp104 switch (Comment->getCommandID()) { in checkFunctionDeclVerbatimLine()
126 << Comment->getCommandMarker() in checkFunctionDeclVerbatimLine()
128 << Comment->getSourceRange(); in checkFunctionDeclVerbatimLine()
136 switch (Comment->getCommandID()) { in checkContainerDeclVerbatimLine()
165 << Comment->getCommandMarker() in checkContainerDeclVerbatimLine()
167 << Comment->getSourceRange(); in checkContainerDeclVerbatimLine()
175 switch (Comment->getCommandID()) { in checkContainerDecl()
215 << Comment->getCommandMarker() in checkContainerDecl()
217 << Comment->getSourceRange(); in checkContainerDecl()
269 Comment::Argument{SourceRange(ArgLocBegin, ArgLocEnd), Arg}; in actOnParamCommandParamNameArg()
[all …]
H A DComment.cpp35 const char *Comment::getCommentKindName() const { in getCommentKindName()
54 good implements_child_begin_end(Comment::child_iterator (T::*)() const) { in implements_child_begin_end()
60 Comment::child_iterator (Comment::*)() const) { in implements_child_begin_end()
82 Comment::child_iterator Comment::child_begin() const { in child_begin()
96 Comment::child_iterator Comment::child_end() const { in child_end()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXComment.cpp42 const Comment *C = getASTNode(CXC); in clang_Comment_getKind()
47 case Comment::NoCommentKind: in clang_Comment_getKind()
50 case Comment::TextCommentKind: in clang_Comment_getKind()
56 case Comment::HTMLStartTagCommentKind: in clang_Comment_getKind()
59 case Comment::HTMLEndTagCommentKind: in clang_Comment_getKind()
62 case Comment::ParagraphCommentKind: in clang_Comment_getKind()
65 case Comment::BlockCommandCommentKind: in clang_Comment_getKind()
83 case Comment::FullCommentKind: in clang_Comment_getKind()
90 const Comment *C = getASTNode(CXC); in clang_Comment_getNumChildren()
98 const Comment *C = getASTNode(CXC); in clang_Comment_getChild()
[all …]
H A DCXComment.h30 static inline CXComment createCXComment(const comments::Comment *C, in createCXComment()
38 static inline const comments::Comment *getASTNode(CXComment CXC) { in getASTNode()
39 return static_cast<const comments::Comment *>(CXC.ASTNode); in getASTNode()
44 const comments::Comment *C = getASTNode(CXC); in getASTNodeAs()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DAnnotateHighlightings.cpp71 std::string Comment = "/* "; in REGISTER_TWEAK() local
72 Comment.append(llvm::to_string(Token.Kind)); in REGISTER_TWEAK()
76 Comment.append(" ["); in REGISTER_TWEAK()
77 Comment.append(llvm::to_string(static_cast<HighlightingModifier>(I))); in REGISTER_TWEAK()
78 Comment.push_back(']'); in REGISTER_TWEAK()
81 Comment.append(" */"); in REGISTER_TWEAK()
83 tooling::Replacement(FilePath, *InsertOffset, 0, Comment); in REGISTER_TWEAK()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DComment.h52 class Comment {
61 friend class Comment; variable
202 Comment(CommentKind K, in Comment() function
227 typedef Comment * const *child_iterator;
246 Comment(K, LocBegin, LocEnd) { in InlineContentComment()
251 static bool classof(const Comment *C) { in classof()
278 static bool classof(const Comment *C) { in classof()
330 static bool classof(const Comment *C) { in classof()
388 static bool classof(const Comment *C) { in classof()
527 Comment(K, LocBegin, LocEnd) in BlockContentComment()
[all …]
H A DCommentSema.h134 ArrayRef<Comment::Argument> Args);
187 void checkDeprecatedCommand(const BlockCommandComment *Comment);
189 void checkFunctionDeclVerbatimLine(const BlockCommandComment *Comment);
191 void checkContainerDeclVerbatimLine(const BlockCommandComment *Comment);
193 void checkContainerDecl(const BlockCommandComment *Comment);
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DCommentNodes.td8 def Comment : CommentNode<?, 1>;
9 def InlineContentComment : CommentNode<Comment, 1>;
16 def BlockContentComment : CommentNode<Comment, 1>;
24 def VerbatimBlockLineComment : CommentNode<Comment>;
26 def FullComment : CommentNode<Comment>;
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DGlobalISelEmitter.cpp520 static MatchTableRecord Comment(StringRef Comment) { in Comment() argument
1425 << MatchTable::Comment("RC") in emitPredicateOpcodes()
1670 std::string Comment; in emitPredicateOpcodes() local
1671 raw_string_ostream CommentOS(Comment); in emitPredicateOpcodes()
1677 Table << MatchTable::Comment(Comment) << MatchTable::LineBreak; in emitPredicateOpcodes()
1924 << MatchTable::Comment("Expected") in emitPredicateOpcodes()
2239 << MatchTable::Comment("FnId") in emitPredicateOpcodes()
3032 << MatchTable::Comment("OpIdx") in emitRenderOpcodes()
3253 << MatchTable::Comment("TypeID") in emitActionOpcodes()
3534 << MatchTable::Comment("OtherMI") in emitPredicateOpcodes()
[all …]
/llvm-project-15.0.7/clang/lib/Index/
H A DCommentToXML.cpp102 const Comment *Child = *I; in FullCommentParts()
106 case Comment::NoCommentKind: in FullCommentParts()
109 case Comment::ParagraphCommentKind: { in FullCommentParts()
120 case Comment::BlockCommandCommentKind: { in FullCommentParts()
143 case Comment::ParamCommandCommentKind: { in FullCommentParts()
167 case Comment::VerbatimBlockCommentKind: in FullCommentParts()
179 case Comment::TextCommentKind: in FullCommentParts()
180 case Comment::InlineCommandCommentKind: in FullCommentParts()
181 case Comment::HTMLStartTagCommentKind: in FullCommentParts()
182 case Comment::HTMLEndTagCommentKind: in FullCommentParts()
[all …]
/llvm-project-15.0.7/clang/test/Index/
H A Dannotate-comments-objc.m6 /// Comment for 'functionBeforeImports'.
82 // WRONG-NOT: notdoxy{{.*}}Comment=
83 // WRONG-NOT: test{{.*}}Comment=
107 …ents-objc.m:7:6: FunctionDecl=functionBeforeImports:{{.*}} BriefComment=[Comment for 'functionBefo…
108 …entsA.h:2:6: FunctionDecl=functionFromDocCommentsA1:{{.*}} BriefComment=[Comment for 'functionFrom…
109 …entsA.h:7:6: FunctionDecl=functionFromDocCommentsA2:{{.*}} BriefComment=[Comment for 'functionFrom…
110 …entsB.h:2:6: FunctionDecl=functionFromDocCommentsB1:{{.*}} BriefComment=[Comment for 'functionFrom…
111 …entsB.h:7:6: FunctionDecl=functionFromDocCommentsB2:{{.*}} BriefComment=[Comment for 'functionFrom…
112 …mentsC.h:2:6: FunctionDecl=functionFromDocCommentsC:{{.*}} BriefComment=[Comment for 'functionFrom…
H A Dannotate-comments-typedef.m34 /** Comment about Foo */
38Comment about Foo </p>] FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.m" lin…
39Comment about Foo] FullCommentAsHTML=[<p class="para-brief"> Comment about Foo </p>] FullCommentAs…
/llvm-project-15.0.7/clang/unittests/AST/
H A DCommentParser.cpp91 ::testing::AssertionResult GetChildAt(const Comment *C, in GetChildAt()
102 Comment::child_iterator I = C->child_begin() + Idx; in GetChildAt()
103 Comment *CommentChild = *I; in GetChildAt()
116 ::testing::AssertionResult HasTextAt(const Comment *C, in HasTextAt()
158 ::testing::AssertionResult HasBlockCommandAt(const Comment *C, in HasBlockCommandAt()
180 const Comment *C, in HasParamCommandAt()
228 const Comment *C, in HasTParamCommandAt()
323 ::testing::AssertionResult HasHTMLStartTagAt(const Comment *C, in HasHTMLStartTagAt()
342 ::testing::AssertionResult HasHTMLStartTagAt(const Comment *C, in HasHTMLStartTagAt()
361 ::testing::AssertionResult HasHTMLStartTagAt(const Comment *C, in HasHTMLStartTagAt()
[all …]
/llvm-project-15.0.7/clang/lib/Format/
H A DNamespaceEndCommentsFixer.cpp167 const FormatToken *Comment = RBraceTok->Next; in validEndComment() local
182 NamespaceMacroCommentPattern.match(Comment->TokenText, &Groups)) { in validEndComment()
188 !NamespaceCommentPattern.match(Comment->TokenText, &Groups)) { in validEndComment()
206 if (!(Comment->Next && Comment->Next->is(TT_LineComment))) in validEndComment()
213 if (!CommentPattern.match(Comment->Next->TokenText, &Groups)) in validEndComment()
236 const FormatToken *Comment = RBraceTok->Next; in updateEndComment() local
237 auto Range = CharSourceRange::getCharRange(Comment->getStartOfNonWhitespace(), in updateEndComment()
238 Comment->Tok.getEndLoc()); in updateEndComment()
/llvm-project-15.0.7/clang-tools-extra/clang-doc/
H A DMapper.cpp76 RawComment *Comment = Context.getRawCommentForDeclNoCache(D); in getComment() local
78 if (Comment) { in getComment()
79 Comment->setAttached(); in getComment()
80 return Comment->parse(Context, nullptr, D); in getComment()

1234567