Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/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 …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-mca/
H A DCodeRegionGenerator.cpp87 StringRef Comment(CommentText); in HandleComment() local
88 if (Comment.empty()) in HandleComment()
92 unsigned Position = Comment.find_first_not_of(" \t"); in HandleComment()
93 if (Position >= Comment.size()) in HandleComment()
97 Comment = Comment.drop_front(Position); in HandleComment()
98 if (Comment.consume_front("LLVM-MCA-END")) { in HandleComment()
100 Position = Comment.find_first_not_of(" \t"); in HandleComment()
101 if (Position < Comment.size()) in HandleComment()
102 Comment = Comment.drop_front(Position); in HandleComment()
103 Regions.endRegion(Comment, Loc); in HandleComment()
[all …]
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/
H A DGlobalISelMatchTable.cpp210 MatchTableRecord MatchTable::Comment(StringRef Comment) { in Comment() argument
211 return MatchTableRecord(std::nullopt, Comment, 0, in Comment()
518 << MatchTable::Comment("On fail goto") in emit()
634 Table << MatchTable::Opcode("GIM_SwitchOpcode") << MatchTable::Comment("MI") in emitPredicateSpecificOpcodes()
639 Table << MatchTable::Opcode("GIM_SwitchType") << MatchTable::Comment("MI") in emitPredicateSpecificOpcodes()
641 << MatchTable::Comment("Op") in emitPredicateSpecificOpcodes()
667 Table << MatchTable::Comment("[") << MatchTable::IntValue(2, LowerBound) in emit()
668 << MatchTable::IntValue(2, UpperBound) << MatchTable::Comment(")") in emit()
669 << MatchTable::Comment("default:") << MatchTable::JumpTarget(Default); in emit()
958 << MatchTable::Comment("On fail goto") in emit()
[all …]
H A DGlobalISelMatchTableExecutorEmitter.h84 StringRef Comment) { in emitCxxPredicateFns() argument
85 if (!Comment.empty()) in emitCxxPredicateFns()
86 OS << "// " << Comment << "\n"; in emitCxxPredicateFns()
140 StringRef Comment = "") {
143 AdditionalDecls, Predicates, GetPredEnumName, GetPredCode, Comment);
160 StringRef Comment = "") {
163 AdditionalDecls, Predicates, GetPredEnumName, GetPredCode, Comment);
185 StringRef Comment = "") {
188 Comment);
/freebsd/contrib/llvm-project/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.h50 const char *Comment; member
53 static Register createRegister(int64_t RegNo, const char *Comment) { in createRegister()
54 return {RegNo, 0, Comment}; in createRegister()
59 const char *Comment) { in createSubRegister()
60 return {RegNo, SizeInBits, Comment}; in createSubRegister()
126 virtual void emitOp(uint8_t Op, const char *Comment = nullptr) = 0;
164 void addReg(int64_t DwarfReg, const char *Comment = nullptr);
323 void emitOp(uint8_t Op, const char *Comment = nullptr) override;
353 void emitOp(uint8_t Op, const char *Comment = nullptr) override;
H A DAsmPrinterDwarf.cpp175 const Twine &Comment) const { in emitDwarfUnitLength()
176 OutStreamer->emitDwarfUnitLength(Length, Comment); in emitDwarfUnitLength()
180 const Twine &Comment) const { in emitDwarfUnitLength()
181 return OutStreamer->emitDwarfUnitLength(Prefix, Comment); in emitDwarfUnitLength()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DCodeViewRecordIO.cpp104 const Twine &Comment) { in mapByteVectorTail() argument
106 emitComment(Comment); in mapByteVectorTail()
120 const Twine &Comment) { in mapByteVectorTail() argument
122 if (auto EC = mapByteVectorTail(BytesRef, Comment)) in mapByteVectorTail()
130 Error CodeViewRecordIO::mapInteger(TypeIndex &TypeInd, const Twine &Comment) { in mapInteger() argument
134 emitComment(Comment + ": " + TypeNameStr); in mapInteger()
136 emitComment(Comment); in mapInteger()
152 const Twine &Comment) { in mapEncodedInteger() argument
155 emitEncodedUnsignedInteger(static_cast<uint64_t>(Value), Comment); in mapEncodedInteger()
157 emitEncodedSignedInteger(Value, Comment); in mapEncodedInteger()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h306 DocComment Comment; in VisitVarDecl() local
309 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl()
321 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, Declaration, in VisitVarDecl()
327 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, Declaration, in VisitVarDecl()
379 DocComment Comment; in VisitFunctionDecl() local
382 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitFunctionDecl()
393 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, in VisitFunctionDecl()
401 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, in VisitFunctionDecl()
416 DocComment Comment; in VisitEnumDecl() local
419 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitEnumDecl()
[all …]
H A DAPI.h244 DocComment Comment; member
285 const DocComment &Comment, DeclarationFragments Declaration,
290 Comment(Comment), Declaration(Declaration), SubHeading(SubHeading), in USR()
385 LinkageInfo Linkage, const DocComment &Comment, in NamespaceRecord()
389 Linkage, Comment, Declaration, SubHeading, in NamespaceRecord()
405 LinkageInfo Linkage, const DocComment &Comment, in GlobalFunctionRecord()
410 std::move(Availability), Linkage, Comment, Declaration, in GlobalFunctionRecord()
417 const DocComment &Comment, in GlobalFunctionRecord()
422 Linkage, Comment, Declaration, SubHeading, in GlobalFunctionRecord()
441 LinkageInfo Linkage, const DocComment &Comment, in GlobalFunctionTemplateRecord()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeViewRecordIO.h68 LLVM_ABI Error mapInteger(TypeIndex &TypeInd, const Twine &Comment = "");
101 template <typename T> Error mapInteger(T &Value, const Twine &Comment = "") {
103 emitComment(Comment);
115 template <typename T> Error mapEnum(T &Value, const Twine &Comment = "") {
125 if (auto EC = mapInteger(X, Comment))
134 LLVM_ABI Error mapEncodedInteger(int64_t &Value, const Twine &Comment = "");
135 LLVM_ABI Error mapEncodedInteger(uint64_t &Value, const Twine &Comment = "");
136 LLVM_ABI Error mapEncodedInteger(APSInt &Value, const Twine &Comment = "");
137 LLVM_ABI Error mapStringZ(StringRef &Value, const Twine &Comment = "");
138 LLVM_ABI Error mapGuid(GUID &Guid, const Twine &Comment = "");
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DRawCommentList.cpp24 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment, in getCommentKind() argument
27 if ((Comment.size() < MinCommentLength) || Comment[0] != '/') in getCommentKind()
31 if (Comment[1] == '/') { in getCommentKind()
32 if (Comment.size() < 3) in getCommentKind()
35 if (Comment[2] == '/') in getCommentKind()
37 else if (Comment[2] == '!') in getCommentKind()
42 assert(Comment.size() >= 4); in getCommentKind()
46 if (Comment[1] != '*' || in getCommentKind()
47 Comment[Comment.size() - 2] != '*' || in getCommentKind()
48 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()
55 good implements_child_begin_end(Comment::child_iterator (T::*)() const) { in implements_child_begin_end()
61 Comment::child_iterator (Comment::*)() const) { in implements_child_begin_end()
83 Comment::child_iterator Comment::child_begin() const { in child_begin()
98 Comment::child_iterator Comment::child_end() const { in child_end()
H A DCommentParser.cpp422 ArrayRef<Comment::Argument>
424 auto *Args = new (Allocator.Allocate<Comment::Argument>(NumArgs)) in parseCommandArgs()
425 Comment::Argument[NumArgs]; in parseCommandArgs()
429 Args[ParsedArgs] = Comment::Argument{ in parseCommandArgs()
437 ArrayRef<Comment::Argument>
440 auto *Args = new (Allocator.Allocate<Comment::Argument>(NumArgs)) in parseThrowCommandArgs()
441 Comment::Argument[NumArgs]; in parseThrowCommandArgs()
446 Args[ParsedArgs] = Comment::Argument{ in parseThrowCommandArgs()
454 ArrayRef<Comment::Argument>
458 auto *Args = new (Allocator.Allocate<Comment::Argument>(NumArgs)) in parseParCommandArgs()
[all …]
/freebsd/contrib/llvm-project/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>;
/freebsd/contrib/bc/tests/bc/
H A Dstdin.txt7 1 /* Comment with partial "string */ + 2
8 2 /* Comment with full "string" */ + 3
9 3 /* Comment with a # hash comment */ + 4
/freebsd/contrib/pkgconf/doc/
H A Dextract.py5 class Comment: class
77 comment = Comment(current_comment, line_counter, False)
100 comment = Comment(current_comment, line_counter, False)
117 comment = Comment(
/freebsd/sys/contrib/dev/acpica/compiler/
H A Dcvcompiler.c422 CommentLength = strlen (Current->Comment)+3; in CvCalculateCommentLengths()
424 CvDbgPrint (" Comment string: %s\n\n", Current->Comment); in CvCalculateCommentLengths()
435 CommentLength = strlen (Current->Comment)+3; in CvCalculateCommentLengths()
437 CvDbgPrint (" Comment string: %s\n\n", Current->Comment); in CvCalculateCommentLengths()
539 CgWriteOneAmlComment(Op, Current->Comment, CommentOption); in CgWriteAmlDefBlockComment()
540 CvDbgPrint ("Printing comment: %s\n", Current->Comment); in CgWriteAmlDefBlockComment()
670 CgWriteOneAmlComment(Op, Current->Comment, CommentOption); in CgWriteAmlComment()
680 CgWriteOneAmlComment(Op, Current->Comment, CommentOption); in CgWriteAmlComment()
909 AslGbl_CommentListTail->Comment = ToAdd; in CvAddToCommentList()
H A Ddtcompilerparser.l195 Comment \[[^\n\[\]]*\]
196 CommentField {LabelName}{WhiteSpace}*:{WhiteSpace}{Comment}?$
214 <INITIAL,DATA_STATE>{Comment} { DbgPrint(ASL_PARSE_OUTPUT,"Comment matched\n"); }
H A Dcvdisasm.c197 if (Current->Comment) in CvPrintOneCommentList()
200 AcpiOsPrintf("%s\n", Current->Comment); in CvPrintOneCommentList()
201 Current->Comment = NULL; in CvPrintOneCommentList()
H A Dcvparser.c765 CommentNode->Comment = ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
791 CommentNode->Comment = ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
816 CommentNode->Comment = ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
896 CommentNode->Comment = ACPI_CAST_PTR (char, Aml); in CvCaptureCommentsOnly()
912 CommentNode->Comment); in CvCaptureCommentsOnly()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
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 DCommentParser.h100 ArrayRef<Comment::Argument>
105 ArrayRef<Comment::Argument>
108 ArrayRef<Comment::Argument>
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DModuleSummaryIndex.cpp398 const Twine &Comment = Twine());
399 void addComment(const Twine &Comment);
415 const Twine &Comment) { in add() argument
421 addComment(Comment); in add()
424 void Attributes::addComment(const Twine &Comment) { in addComment() argument
425 if (!Comment.isTriviallyEmpty()) { in addComment()
430 Comments += Comment.str(); in addComment()

1234567