Home
last modified time | relevance | path

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

1234567891011

/openbsd-src/gnu/llvm/clang/include/clang-c/
H A DDocumentation.h218 CINDEX_LINKAGE enum CXCommentKind clang_Comment_getKind(CXComment Comment);
225 CINDEX_LINKAGE unsigned clang_Comment_getNumChildren(CXComment Comment);
235 CXComment clang_Comment_getChild(CXComment Comment, unsigned ChildIdx);
246 CINDEX_LINKAGE unsigned clang_Comment_isWhitespace(CXComment Comment);
254 unsigned clang_InlineContentComment_hasTrailingNewline(CXComment Comment);
261 CINDEX_LINKAGE CXString clang_TextComment_getText(CXComment Comment);
269 CXString clang_InlineCommandComment_getCommandName(CXComment Comment);
278 clang_InlineCommandComment_getRenderKind(CXComment Comment);
286 unsigned clang_InlineCommandComment_getNumArgs(CXComment Comment);
296 CXString clang_InlineCommandComment_getArgText(CXComment Comment,
[all …]
/openbsd-src/gnu/llvm/llvm/tools/llvm-mca/
H A DCodeRegionGenerator.cpp114 StringRef Comment(CommentText); in HandleComment() local
115 if (Comment.empty()) in HandleComment()
119 unsigned Position = Comment.find_first_not_of(" \t"); in HandleComment()
120 if (Position >= Comment.size()) in HandleComment()
124 Comment = Comment.drop_front(Position); in HandleComment()
125 if (Comment.consume_front("LLVM-MCA-END")) { in HandleComment()
127 Position = Comment.find_first_not_of(" \t"); in HandleComment()
128 if (Position < Comment.size()) in HandleComment()
129 Comment = Comment.drop_front(Position); in HandleComment()
130 Regions.endRegion(Comment, Loc); in HandleComment()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
H A DByteStreamer.h32 virtual void emitInt8(uint8_t Byte, const Twine &Comment = "") = 0;
33 virtual void emitSLEB128(uint64_t DWord, const Twine &Comment = "") = 0;
34 virtual void emitULEB128(uint64_t DWord, const Twine &Comment = "",
45 void emitInt8(uint8_t Byte, const Twine &Comment) override { in emitInt8() argument
46 AP.OutStreamer->AddComment(Comment); in emitInt8()
49 void emitSLEB128(uint64_t DWord, const Twine &Comment) override { in emitSLEB128() argument
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()
74 void emitInt8(uint8_t Byte, const Twine &Comment) override { in emitInt8() argument
[all …]
H A DDwarfExpression.h111 const char *Comment; member
114 static Register createRegister(int RegNo, const char *Comment) { in createRegister()
115 return {RegNo, 0, Comment}; in createRegister()
120 const char *Comment) { in createSubRegister()
121 return {RegNo, SizeInBits, Comment}; in createSubRegister()
187 virtual void emitOp(uint8_t Op, const char *Comment = nullptr) = 0;
225 void addReg(int DwarfReg, const char *Comment = nullptr);
384 void emitOp(uint8_t Op, const char *Comment = nullptr) override;
414 void emitOp(uint8_t Op, const char *Comment = nullptr) override;
/openbsd-src/gnu/llvm/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp103 const Twine &Comment) { in mapByteVectorTail() argument
105 emitComment(Comment); in mapByteVectorTail()
119 const Twine &Comment) { in mapByteVectorTail() argument
121 if (auto EC = mapByteVectorTail(BytesRef, Comment)) in mapByteVectorTail()
129 Error CodeViewRecordIO::mapInteger(TypeIndex &TypeInd, const Twine &Comment) { in mapInteger() argument
133 emitComment(Comment + ": " + TypeNameStr); in mapInteger()
135 emitComment(Comment); in mapInteger()
151 const Twine &Comment) { in mapEncodedInteger() argument
154 emitEncodedUnsignedInteger(static_cast<uint64_t>(Value), Comment); in mapEncodedInteger()
156 emitEncodedSignedInteger(Value, Comment); in mapEncodedInteger()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/ExtractAPI/
H A DAPI.h110 DocComment Comment; member
139 LinkageInfo Linkage, const DocComment &Comment, in APIRecord()
144 Comment(Comment), Declaration(Declaration), SubHeading(SubHeading), in APIRecord()
157 const DocComment &Comment, in GlobalFunctionRecord()
162 Linkage, Comment, Declaration, SubHeading, in GlobalFunctionRecord()
178 const DocComment &Comment, in GlobalVariableRecord()
182 Linkage, Comment, Declaration, SubHeading, in GlobalVariableRecord()
196 AvailabilitySet Availabilities, const DocComment &Comment, in EnumConstantRecord()
200 LinkageInfo::none(), Comment, Declaration, SubHeading, in EnumConstantRecord()
216 AvailabilitySet Availabilities, const DocComment &Comment, in EnumRecord()
[all …]
/openbsd-src/gnu/llvm/clang/lib/ExtractAPI/
H A DExtractAPIVisitor.cpp80 DocComment Comment; in VisitVarDecl() local
82 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl()
92 API.addGlobalVar(Name, USR, Loc, AvailabilitySet(Decl), Linkage, Comment, in VisitVarDecl()
140 DocComment Comment; in VisitFunctionDecl() local
142 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitFunctionDecl()
154 API.addGlobalFunction(Name, USR, Loc, AvailabilitySet(Decl), Linkage, Comment, in VisitFunctionDecl()
185 DocComment Comment; in VisitEnumDecl() local
187 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitEnumDecl()
197 API.copyString(Name), USR, Loc, AvailabilitySet(Decl), Comment, in VisitEnumDecl()
228 DocComment Comment; in VisitRecordDecl() local
[all …]
H A DAPI.cpp50 const DocComment &Comment, DeclarationFragments Fragments, in addGlobalVar() argument
53 std::move(Availabilities), Linkage, Comment, in addGlobalVar()
60 const DocComment &Comment, DeclarationFragments Fragments, in addGlobalFunction() argument
64 std::move(Availabilities), Linkage, Comment, in addGlobalFunction()
72 const DocComment &Comment, in addEnumConstant() argument
77 USR, Name, Loc, std::move(Availabilities), Comment, Declaration, in addEnumConstant()
87 const DocComment &Comment, in addEnum() argument
92 std::move(Availabilities), Comment, Declaration, in addEnum()
99 const DocComment &Comment, in addStructField() argument
104 USR, Name, Loc, std::move(Availabilities), Comment, Declaration, in addStructField()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeViewRecordIO.h67 Error mapInteger(TypeIndex &TypeInd, const Twine &Comment = "");
100 template <typename T> Error mapInteger(T &Value, const Twine &Comment = "") {
102 emitComment(Comment);
114 template <typename T> Error mapEnum(T &Value, const Twine &Comment = "") {
124 if (auto EC = mapInteger(X, Comment))
133 Error mapEncodedInteger(int64_t &Value, const Twine &Comment = "");
134 Error mapEncodedInteger(uint64_t &Value, const Twine &Comment = "");
135 Error mapEncodedInteger(APSInt &Value, const Twine &Comment = "");
136 Error mapStringZ(StringRef &Value, const Twine &Comment = "");
137 Error mapGuid(GUID &Guid, const Twine &Comment = "");
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DRawCommentList.cpp26 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment, in getCommentKind() argument
29 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()
44 assert(Comment.size() >= 4); in getCommentKind()
48 if (Comment[1] != '*' || in getCommentKind()
49 Comment[Comment.size() - 2] != '*' || in getCommentKind()
50 Comment[Comment.size() - 1] != '/') in getCommentKind()
[all …]
H A DCommentSema.cpp98 void Sema::checkFunctionDeclVerbatimLine(const BlockCommandComment *Comment) { in checkFunctionDeclVerbatimLine() argument
99 const CommandInfo *Info = Traits.getCommandInfo(Comment->getCommandID()); in checkFunctionDeclVerbatimLine()
104 switch (Comment->getCommandID()) { in checkFunctionDeclVerbatimLine()
125 Diag(Comment->getLocation(), diag::warn_doc_function_method_decl_mismatch) in checkFunctionDeclVerbatimLine()
126 << Comment->getCommandMarker() in checkFunctionDeclVerbatimLine()
128 << Comment->getSourceRange(); in checkFunctionDeclVerbatimLine()
131 void Sema::checkContainerDeclVerbatimLine(const BlockCommandComment *Comment) { in checkContainerDeclVerbatimLine() argument
132 const CommandInfo *Info = Traits.getCommandInfo(Comment->getCommandID()); in checkContainerDeclVerbatimLine()
136 switch (Comment->getCommandID()) { in checkContainerDeclVerbatimLine()
144 if (DiagSelect && Comment->getCommandMarker() && isObjCInterfaceDecl()) in checkContainerDeclVerbatimLine()
[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()
/openbsd-src/gnu/llvm/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()
53 case Comment::InlineCommandCommentKind: 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()
68 case Comment::ParamCommandCommentKind: in clang_Comment_getKind()
71 case Comment::TParamCommandCommentKind: in clang_Comment_getKind()
[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()
/openbsd-src/gnu/llvm/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;
241 class InlineContentComment : public Comment {
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()
[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);
H A DCommentVisitor.h27 RetTy visit(PTR(Comment) C, ParamTys... P) { in visit()
35 case Comment::CLASS##Kind: DISPATCH(CLASS, CLASS); in visit()
51 RetTy visitComment(PTR(Comment) C, ParamTys... P) { return RetTy(); } in visitComment()
/openbsd-src/gnu/llvm/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>;
/openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/t/
H A D004gziphdr.t55 ok ! defined $hdr->{Comment} ;
65 # Comment and Extra can be set
68 my $comment = "This is a Comment" ;
74 -Comment => $comment,
83 ok $hdr->{Comment} eq $comment ;
98 -Comment => "",
107 ok defined $hdr->{Comment} ;
108 ok $hdr->{Comment} eq "";
127 -Comment => "b",
134 ok $hdr->{Comment} e
[all...]
/openbsd-src/gnu/llvm/llvm/utils/TableGen/
H A DGlobalISelEmitter.cpp520 static MatchTableRecord Comment(StringRef Comment) { in Comment() function in __anon8aabd5ea0111::MatchTable
521 return MatchTableRecord(std::nullopt, Comment, 0, in Comment()
1071 Table << MatchTable::Comment(getNoPredicateComment()) in emitPredicateListOpcodes()
1091 Table << MatchTable::Comment(getNoPredicateComment()) in emitFilteredPredicateListOpcodes()
1283 Table << MatchTable::Opcode("GIM_CheckType") << MatchTable::Comment("MI") in emitPredicateOpcodes()
1284 << MatchTable::IntValue(InsnVarID) << MatchTable::Comment("Op") in emitPredicateOpcodes()
1285 << MatchTable::IntValue(OpIdx) << MatchTable::Comment("Type") in emitPredicateOpcodes()
1324 << MatchTable::Comment("MI") << MatchTable::IntValue(InsnVarID) in emitPredicateOpcodes()
1325 << MatchTable::Comment("Op") << MatchTable::IntValue(OpIdx) in emitPredicateOpcodes()
1326 << MatchTable::Comment("SizeInBits") in emitPredicateOpcodes()
[all …]
/openbsd-src/gnu/llvm/clang/lib/Index/
H A DCommentToXML.cpp100 for (Comment::child_iterator I = C->child_begin(), E = C->child_end(); in FullCommentParts()
102 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()
155 case Comment::TParamCommandCommentKind: { in FullCommentParts()
167 case Comment::VerbatimBlockCommentKind: in FullCommentParts()
171 case Comment::VerbatimLineCommentKind: { in FullCommentParts()
179 case Comment::TextCommentKind: in FullCommentParts()
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/tools/clang-refactor/
H A DTestSupport.cpp326 StringRef Comment = in findTestSelectionRanges() local
332 if (Comment.contains_insensitive("range") && Comment.contains("=") && in findTestSelectionRanges()
333 !Comment.contains_insensitive("run") && !Comment.contains("CHECK")) { in findTestSelectionRanges()
334 llvm::errs() << "error: suspicious comment '" << Comment in findTestSelectionRanges()
342 if (!RangeRegex.match(Comment, &Matches) || Comment.contains("CHECK")) { in findTestSelectionRanges()
/openbsd-src/regress/lib/libcrypto/wycheproof/
H A Dwycheproof.go154 Comment string `json:"comment"` member
164 return wycheproofFormatTestCase(wt.TCID, wt.Comment, wt.Flags, wt.Result)
180 Comment string `json:"comment"` member
192 return wycheproofFormatTestCase(wt.TCID, wt.Comment, wt.Flags, wt.Result)
204 Comment string `json:"comment"` member
213 return wycheproofFormatTestCase(wt.TCID, wt.Comment, wt.Flags, wt.Result)
227 Comment string `json:"comment"` member
235 return wycheproofFormatTestCase(wt.TCID, wt.Comment, wt.Flags, wt.Result)
249 Comment string `json:"comment"` member
258 return wycheproofFormatTestCase(wt.TCID, wt.Comment, w
270 Comment string `json:"comment"` global() member
300 Comment string `json:"comment"` global() member
348 Comment string `json:"comment"` global() member
370 Comment string `json:"comment"` global() member
392 Comment string `json:"comment"` global() member
413 Comment string `json:"comment"` global() member
433 Comment string `json:"comment"` global() member
450 Comment string `json:"comment"` global() member
490 Comment string `json:"comment"` global() member
531 Comment string `json:"comment"` global() member
559 Comment string `json:"comment"` global() member
[all...]
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DModuleSummaryIndex.cpp375 const Twine &Comment = Twine());
376 void addComment(const Twine &Comment);
392 const Twine &Comment) { in add() argument
398 addComment(Comment); in add()
401 void Attributes::addComment(const Twine &Comment) { in addComment() argument
402 if (!Comment.isTriviallyEmpty()) { in addComment()
407 Comments += Comment.str(); in addComment()

1234567891011