| /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 …]
|
| /llvm-project/llvm/tools/llvm-mca/ |
| H A D | CodeRegionGenerator.cpp | 87 StringRef Comment(CommentText); in HandleComment() 88 if (Comment.empty()) in HandleComment() local 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 in HandleComment() 123 StringRef Comment(CommentText); HandleComment() local [all...] |
| /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("defaul in emit() 1361 std::string Comment; emitPredicateOpcodes() local [all...] |
| H A D | GlobalISelMatchTableExecutorEmitter.h | 76 /// \param Comment Optional comment for the enum declaration. 84 StringRef Comment) { in emitCxxPredicateFns() argument 85 if (!Comment.empty()) in emitCxxPredicateFns() 86 OS << "// " << Comment << "\n"; in emitCxxPredicateFns() 133 /// \param Comment Optional comment for the enum declaration. 140 StringRef Comment = "") { 143 AdditionalDecls, Predicates, GetPredEnumName, GetPredCode, Comment); 158 /// \param Comment Optional comment for the enum declaration. 165 StringRef Comment = "") { 168 Comment); [all...] |
| /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(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;
|
| /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 …]
|
| /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 …]
|
| /llvm-project/clang/include/clang/ExtractAPI/ |
| H A D | ExtractAPIVisitor.h | 302 DocComment Comment; in VisitVarDecl() 305 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl() 317 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, Declaration, in VisitVarDecl() 323 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, Declaration, in VisitFunctionDecl() 375 DocComment Comment; in VisitFunctionDecl() 378 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitFunctionDecl() 389 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, 397 AvailabilityInfo::createFromDecl(Decl), Linkage, Comment, in VisitEnumDecl() 412 DocComment Comment; in VisitEnumDecl() 415 Comment in VisitEnumDecl() 288 DocComment Comment; VisitVarDecl() local 361 DocComment Comment; VisitFunctionDecl() local 398 DocComment Comment; VisitEnumDecl() local 529 DocComment Comment; VisitNamespaceDecl() local 562 DocComment Comment; VisitRecordDecl() local 603 DocComment Comment; VisitCXXRecordDecl() local 656 DocComment Comment; VisitCXXMethodDecl() local 717 DocComment Comment; VisitCXXConstructorDecl() local 751 DocComment Comment; VisitCXXDestructorDecl() local 782 DocComment Comment; VisitConceptDecl() local 809 DocComment Comment; VisitClassTemplateSpecializationDecl() local 843 DocComment Comment; VisitClassTemplatePartialSpecializationDecl() local 877 DocComment Comment; VisitVarTemplateDecl() local 921 DocComment Comment; VisitVarTemplateSpecializationDecl() local 953 DocComment Comment; VisitVarTemplatePartialSpecializationDecl() local 986 DocComment Comment; VisitFunctionTemplateDecl() local 1019 DocComment Comment; VisitObjCInterfaceDecl() local 1067 DocComment Comment; VisitObjCProtocolDecl() local 1135 DocComment Comment; VisitTypedefNameDecl() local 1167 DocComment Comment; VisitObjCCategoryDecl() local 1210 DocComment Comment; recordEnumConstants() local 1243 DocComment Comment; VisitFieldDecl() local 1295 DocComment Comment; VisitCXXConversionDecl() local 1340 DocComment Comment; recordObjCMethods() local 1377 DocComment Comment; recordObjCProperties() local 1430 DocComment Comment; recordObjCInstanceVariables() local 1473 if (const auto *Comment = this->Context.getRawCommentForDeclNoCache(D)) fetchRawCommentForDecl() local [all...] |
| H A D | API.h | 244 DocComment Comment; 285 const DocComment &Comment, DeclarationFragments Declaration, 290 Comment(Comment), Declaration(Declaration), SubHeading(SubHeading), 385 LinkageInfo Linkage, const DocComment &Comment, 389 Linkage, Comment, Declaration, SubHeading, in NamespaceRecord() 405 LinkageInfo Linkage, const DocComment &Comment, 410 std::move(Availability), Linkage, Comment, Declaration, in GlobalFunctionRecord() 417 const DocComment &Comment, in GlobalFunctionRecord() 422 Linkage, Comment, Declaratio in GlobalFunctionRecord() 251 DocComment Comment; global() member [all...] |
| /llvm-project/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 11 #include "clang/AST/Comment.h" 24 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment, 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() 44 // Comment lexe in getCommentKind() 26 getCommentKind(StringRef Comment,bool ParseAllComments) getCommentKind() argument 64 mergedCommentIsTrailingComment(StringRef Comment) mergedCommentIsTrailingComment() argument [all...] |
| H A D | CommentSema.cpp | 97 void Sema::checkFunctionDeclVerbatimLine(const BlockCommandComment *Comment) { 98 const CommandInfo *Info = Traits.getCommandInfo(Comment->getCommandID()); in checkFunctionDeclVerbatimLine() argument 103 switch (Comment->getCommandID()) { in checkFunctionDeclVerbatimLine() 124 Diag(Comment->getLocation(), diag::warn_doc_function_method_decl_mismatch) in checkFunctionDeclVerbatimLine() 125 << Comment->getCommandMarker() in checkFunctionDeclVerbatimLine() 127 << Comment->getSourceRange(); in checkFunctionDeclVerbatimLine() 130 void Sema::checkContainerDeclVerbatimLine(const BlockCommandComment *Comment) { 131 const CommandInfo *Info = Traits.getCommandInfo(Comment->getCommandID()); in checkContainerDeclVerbatimLine() argument 135 switch (Comment->getCommandID()) { in checkContainerDeclVerbatimLine() 143 if (DiagSelect && Comment in checkContainerDeclVerbatimLine() 170 checkContainerDecl(const BlockCommandComment * Comment) checkContainerDecl() argument [all...] |
| H A D | Comment.cpp | 1 //===--- Comment.cpp - Comment AST node implementation --------------------===// 9 #include "clang/AST/Comment.h" 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 [all...] |
| /llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | AnnotateHighlightings.cpp | 73 std::string Comment = "/* "; in REGISTER_TWEAK() local 74 Comment.append(llvm::to_string(Token.Kind)); in REGISTER_TWEAK() 78 Comment.append(" ["); in REGISTER_TWEAK() 79 Comment.append(llvm::to_string(static_cast<HighlightingModifier>(I))); in REGISTER_TWEAK() 80 Comment.push_back(']'); in REGISTER_TWEAK() 83 Comment.append(" */"); in REGISTER_TWEAK() 85 tooling::Replacement(FilePath, *InsertOffset, 0, Comment); in REGISTER_TWEAK()
|
| /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 | 16 #include "clang/AST/Comment.h" 51 /// Comment AST nodes that correspond to parameter names in 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);
|
| /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>;
|
| /llvm-project/clang/tools/libclang/ |
| H A D | CXComment.h | 30 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/clang/test/Index/ |
| H A D | annotate-comments-typedef.m | 33 /** Comment about Foo */ 37 …Comment about Foo </p>] FullCommentAsXML=[<Typedef file="{{[^"]+}}annotate-comments-typedef.m" lin… 38 …Comment about Foo] FullCommentAsHTML=[<p class="para-brief"> Comment about Foo </p>] FullCommentAs…
|
| H A D | annotate-comments-objc.m | 6 /// Comment for 'functionBeforeImports'. 104 // WRONG-NOT: notdoxy{{.*}}Comment= 105 // WRONG-NOT: test{{.*}}Comment= 129 …ents-objc.m:7:6: FunctionDecl=functionBeforeImports:{{.*}} BriefComment=[Comment for 'functionBefo… 130 …entsA.h:2:6: FunctionDecl=functionFromDocCommentsA1:{{.*}} BriefComment=[Comment for 'functionFrom… 131 …entsA.h:7:6: FunctionDecl=functionFromDocCommentsA2:{{.*}} BriefComment=[Comment for 'functionFrom… 132 …entsB.h:2:6: FunctionDecl=functionFromDocCommentsB1:{{.*}} BriefComment=[Comment for 'functionFrom… 133 …entsB.h:7:6: FunctionDecl=functionFromDocCommentsB2:{{.*}} BriefComment=[Comment for 'functionFrom… 134 …mentsC.h:2:6: FunctionDecl=functionFromDocCommentsC:{{.*}} BriefComment=[Comment for 'functionFrom…
|
| /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()
|
| /llvm-project/clang-tools-extra/clang-doc/ |
| H A D | Mapper.cpp | 12 #include "clang/AST/Comment.h" 110 RawComment *Comment = Context.getRawCommentForDeclNoCache(D); in getFile() 112 if (Comment) { in getFile() 113 Comment->setAttached(); in getFile() 114 return Comment->parse(Context, nullptr, D); in getFile() 84 RawComment *Comment = Context.getRawCommentForDeclNoCache(D); getComment() local
|
| /llvm-project/clang/unittests/Tooling/ |
| H A D | CommentHandlerTest.cpp | 14 struct Comment { struct 15 Comment(const std::string &Message, unsigned Line, unsigned Col) in Comment() argument 23 typedef std::vector<Comment> CommentList; 48 Comments.push_back(Comment(C, CLine, CCol)); in HandleComment() 108 EXPECT_TRUE(Current != End) << "Comment " << Message << " not found"; in ~CommentVerifier() 111 const Comment &C = *Current; in Match() 18 Messageclang::Comment global() argument 19 Colclang::Comment global() argument
|
| /llvm-project/clang/tools/clang-refactor/ |
| H A D | TestSupport.cpp | 326 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()
|
| /llvm-project/clang/unittests/AST/ |
| H A D | CommentParser.cpp | 78 ::testing::AssertionResult HasChildCount(const Comment *C, size_t Count) { in HasChildCount() 91 ::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() 137 ::testing::AssertionResult HasTextWithNewlineAt(const Comment *C, in HasTextWithNewlineAt() 158 ::testing::AssertionResult HasBlockCommandAt(const Comment *C, in HasBlockCommandAt() 180 HasParamCommandAt(const Comment *C, const CommandTraits &Traits, size_t Idx, in HasParamCommandAt() 224 const Comment *C, in HasTParamCommandAt() 257 ::testing::AssertionResult HasInlineCommandAt(const Comment *C, in HasInlineCommandAt() [all …]
|