| /src/contrib/llvm-project/clang/include/clang-c/ |
| H A D | Documentation.h | 218 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 …]
|
| /src/contrib/llvm-project/llvm/tools/llvm-mca/ |
| H A D | CodeRegionGenerator.cpp | 87 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 …]
|
| /src/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
| H A D | GlobalISelMatchTable.cpp | 208 MatchTableRecord MatchTable::Comment(StringRef Comment) { in Comment() argument 209 return MatchTableRecord(std::nullopt, Comment, 0, in Comment() 510 << MatchTable::Comment("On fail goto") in emit() 626 Table << MatchTable::Opcode("GIM_SwitchOpcode") << MatchTable::Comment("MI") in emitPredicateSpecificOpcodes() 631 Table << MatchTable::Opcode("GIM_SwitchType") << MatchTable::Comment("MI") in emitPredicateSpecificOpcodes() 633 << MatchTable::Comment("Op") in emitPredicateSpecificOpcodes() 659 Table << MatchTable::Comment("[") << MatchTable::IntValue(2, LowerBound) in emit() 660 << MatchTable::IntValue(2, UpperBound) << MatchTable::Comment(")") in emit() 661 << MatchTable::Comment("default:") << MatchTable::JumpTarget(Default); in emit() 965 << MatchTable::Comment("On fail goto") in emit() [all …]
|
| H A D | GlobalISelMatchTableExecutorEmitter.h | 84 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); 165 StringRef Comment = "") { 168 Comment);
|
| /src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | ByteStreamer.h | 32 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 D | DwarfExpression.h | 50 const char *Comment; member 53 static Register createRegister(int 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(int 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 D | AsmPrinterDwarf.cpp | 176 const Twine &Comment) const { in emitDwarfUnitLength() 177 OutStreamer->emitDwarfUnitLength(Length, Comment); in emitDwarfUnitLength() 181 const Twine &Comment) const { in emitDwarfUnitLength() 182 return OutStreamer->emitDwarfUnitLength(Prefix, Comment); in emitDwarfUnitLength()
|
| /src/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | CodeViewRecordIO.cpp | 104 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 …]
|
| /src/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | CodeViewRecordIO.h | 67 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 …]
|
| /src/contrib/llvm-project/clang/include/clang/ExtractAPI/ |
| H A D | ExtractAPIVisitor.h | 291 DocComment Comment; in VisitVarDecl() local 294 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl() 306 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, Declaration, in VisitVarDecl() 312 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, Declaration, in VisitVarDecl() 364 DocComment Comment; in VisitFunctionDecl() local 367 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitFunctionDecl() 378 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, in VisitFunctionDecl() 386 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, in VisitFunctionDecl() 401 DocComment Comment; in VisitEnumDecl() local 404 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitEnumDecl() [all …]
|
| H A D | API.h | 251 DocComment Comment; member 292 const DocComment &Comment, DeclarationFragments Declaration, 297 Comment(Comment), Declaration(Declaration), SubHeading(SubHeading), in USR() 390 LinkageInfo Linkage, const DocComment &Comment, in NamespaceRecord() 394 Linkage, Comment, Declaration, SubHeading, in NamespaceRecord() 410 LinkageInfo Linkage, const DocComment &Comment, in GlobalFunctionRecord() 415 std::move(Availability), Linkage, Comment, Declaration, in GlobalFunctionRecord() 422 const DocComment &Comment, in GlobalFunctionRecord() 427 Linkage, Comment, Declaration, SubHeading, in GlobalFunctionRecord() 446 LinkageInfo Linkage, const DocComment &Comment, in GlobalFunctionTemplateRecord() [all …]
|
| /src/contrib/llvm-project/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 26 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 D | CommentSema.cpp | 98 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 D | Comment.cpp | 35 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 D | CommentParser.cpp | 422 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 …]
|
| /src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Comment.h | 65 class Comment { 74 friend class Comment; variable 226 Comment(CommentKind K, 251 typedef Comment * const *child_iterator; 265 class InlineContentComment : public Comment { 270 Comment(K, LocBegin, LocEnd) { 275 static bool classof(const Comment *C) { 301 static bool classof(const Comment *C) { 351 static bool classof(const Comment *C) { 410 static bool classof(const Comment *C) { [all …]
|
| H A D | CommentSema.h | 134 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 D | CommentParser.h | 100 ArrayRef<Comment::Argument> 105 ArrayRef<Comment::Argument> 108 ArrayRef<Comment::Argument>
|
| /src/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | CommentNodes.td | 8 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>;
|
| /src/contrib/bc/tests/bc/ |
| H A D | stdin.txt | 7 1 /* Comment with partial "string */ + 2 8 2 /* Comment with full "string" */ + 3 9 3 /* Comment with a # hash comment */ + 4
|
| /src/contrib/llvm-project/clang/lib/Format/ |
| H A D | NamespaceEndCommentsFixer.cpp | 167 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()
|
| /src/sys/contrib/dev/acpica/compiler/ |
| H A D | cvcompiler.c | 422 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 D | dtcompilerparser.l | 195 Comment \[[^\n\[\]]*\] 196 CommentField {LabelName}{WhiteSpace}*:{WhiteSpace}{Comment}?$ 214 <INITIAL,DATA_STATE>{Comment} { DbgPrint(ASL_PARSE_OUTPUT,"Comment matched\n"); }
|
| H A D | cvdisasm.c | 197 if (Current->Comment) in CvPrintOneCommentList() 200 AcpiOsPrintf("%s\n", Current->Comment); in CvPrintOneCommentList() 201 Current->Comment = NULL; in CvPrintOneCommentList()
|
| H A D | cvparser.c | 765 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()
|