Home
last modified time | relevance | path

Searched refs:Comments (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DByteStreamer.h93 std::vector<std::string> &Comments; variable
102 std::vector<std::string> &Comments, bool GenerateComments) in BufferByteStreamer() argument
103 : Buffer(Buffer), Comments(Comments), GenerateComments(GenerateComments) { in BufferByteStreamer()
108 Comments.push_back(Comment.str()); in emitInt8()
114 Comments.push_back(Comment.str()); in emitSLEB128()
118 Comments.push_back(""); in emitSLEB128()
127 Comments.push_back(Comment.str()); in emitULEB128()
131 Comments.push_back(""); in emitULEB128()
H A DDebugLocStream.cpp32 Comments.erase(Comments.begin() + Entries.back().CommentOffset, in finalizeEntry()
33 Comments.end()); in finalizeEntry()
H A DDebugLocStream.h51 std::vector<std::string> Comments; variable
99 Entries.push_back({BeginSym, EndSym, DWARFBytes.size(), Comments.size()}); in startEntry()
107 return BufferByteStreamer(DWARFBytes, Comments, GenerateComments); in getStreamer()
123 return makeArrayRef(Comments) in getComments()
150 return Comments.size() - Entries[EI].CommentOffset; in getNumComments()
H A DDwarfExpression.h372 std::vector<std::string> Comments; member
375 TempBuffer(bool GenerateComments) : BS(Bytes, Comments, GenerateComments) {} in TempBuffer()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DArgumentCommentCheck.cpp84 std::vector<std::pair<SourceLocation, StringRef>> Comments; in getCommentsInRange() local
90 return Comments; in getCommentsInRange()
95 return Comments; in getCommentsInRange()
114 Comments.emplace_back( in getCommentsInRange()
119 Comments.clear(); in getCommentsInRange()
123 return Comments; in getCommentsInRange()
136 Comments.emplace_back( in getCommentsBeforeLoc()
142 return Comments; in getCommentsBeforeLoc()
304 Comments = getCommentsInRange(Ctx, BeforeArgument); in checkCallArgs()
312 for (auto Comment : Comments) { in checkCallArgs()
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp51 Comments.push_back(Comment(C, CLine, CCol)); in HandleComment()
64 CommentList Comments; member in clang::CommentHandlerVisitor
94 CommentVerifier(const CommentList &Comments, Preprocessor *PP) in CommentVerifier() argument
95 : Current(Comments.begin()), End(Comments.end()), PP(PP) in CommentVerifier()
127 return CommentVerifier(Comments, PP); in GetVerifier()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-equals-default.cpp179 struct Comments { struct
180 Comments() { in Comments() argument
184 ~Comments() { in ~Comments() argument
H A Duse-equals-default-copy.cpp83 struct Comments { struct
84 Comments(const Comments &Other) in Comments() argument
/llvm-project-15.0.7/llvm/lib/MC/MCDisassembler/
H A DDisassembler.cpp142 StringRef Comments = DC->CommentsToEmit.str(); in emitComments() local
148 while (!Comments.empty()) { in emitComments()
153 size_t Position = Comments.find('\n'); in emitComments()
154 FormattedOS << CommentBegin << ' ' << Comments.substr(0, Position); in emitComments()
156 Comments = Comments.substr(Position+1); in emitComments()
/llvm-project-15.0.7/llvm/lib/IR/
H A DModuleSummaryIndex.cpp380 std::string Comments; member
403 if (Comments.empty()) in addComment()
404 Comments = " // "; in addComment()
406 Comments += ", "; in addComment()
407 Comments += Comment.str(); in addComment()
420 Ret += Comments; in getAsString()
/llvm-project-15.0.7/llvm/test/tools/split-file/Inputs/
H A Dbasic-bb.txt4 ; Comments are preserved.
/llvm-project-15.0.7/llvm/test/YAMLParser/
H A Dspec-09-23.test4 # Comments:
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCAsmStreamer.cpp427 StringRef Comments = CommentToEmit; in EmitCommentsAndEOL() local
429 assert(Comments.back() == '\n' && in EmitCommentsAndEOL()
434 size_t Position = Comments.find('\n'); in EmitCommentsAndEOL()
435 OS << MAI->getCommentString() << ' ' << Comments.substr(0, Position) <<'\n'; in EmitCommentsAndEOL()
437 Comments = Comments.substr(Position+1); in EmitCommentsAndEOL()
438 } while (!Comments.empty()); in EmitCommentsAndEOL()
493 StringRef Comments = ExplicitCommentToEmit; in emitExplicitComments() local
494 if (!Comments.empty()) in emitExplicitComments()
495 OS << Comments; in emitExplicitComments()
2299 StringRef Comments = CommentToEmit; in emitInstruction() local
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dhsa-metadata-agpr-small.ll5 ; COM: Comments for each kernel
/llvm-project-15.0.7/llvm/test/tools/split-file/
H A Dbasic.test4 ; Comments are preserved.
/llvm-project-15.0.7/llvm/resources/
H A Dwindows_version_resource.rc73 VALUE "Comments", RC_COMMENTS
/llvm-project-15.0.7/openmp/runtime/src/
H A Dlibomp.rc.var50 VALUE "Comments",
/llvm-project-15.0.7/clang/unittests/Format/
H A DSortImportsTestJS.cpp118 TEST_F(SortImportsTestJS, Comments) { in TEST_F() argument
/llvm-project-15.0.7/clang/lib/Format/
H A DUnwrappedLineParser.cpp4202 const SmallVectorImpl<FormatToken *> &Comments, in distributeComments() argument
4222 if (Comments.empty()) in distributeComments()
4237 FormatToken *FormatTok = Comments[i]; in distributeComments()
4256 SmallVector<FormatToken *, 1> Comments; in readToken() local
4297 distributeComments(Comments, FormatTok); in readToken()
4298 Comments.clear(); in readToken()
4327 distributeComments(Comments, FormatTok); in readToken()
4328 Comments.clear(); in readToken()
4332 Comments.push_back(FormatTok); in readToken()
4335 distributeComments(Comments, nullptr); in readToken()
[all …]
H A DUnwrappedLineParser.h201 void distributeComments(const SmallVectorImpl<FormatToken *> &Comments,
/llvm-project-15.0.7/llvm/test/DebugInfo/X86/
H A Ddbg_value_list_clobbers.mir5 # expected. Comments and test directives inline.
H A Ddbg_value_list_emission.mir6 # Comments and test directives inline.
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/modernize/
H A Dmacro-to-enum.rst42 continue refactoring to a scoped enum if desired. Comments on the
H A Dloop-convert.rst171 Comments inside loop headers
174 Comments inside the original loop header are ignored and deleted when
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp1219 StringRef Comments, in emitPostInstructionInfo() argument
1222 if (!Comments.empty()) { in emitPostInstructionInfo()
1225 std::tie(Comment, Comments) = Comments.split('\n'); in emitPostInstructionInfo()
1235 } while (!Comments.empty()); in emitPostInstructionInfo()
1460 SmallString<40> Comments; in disassembleObject() local
1461 raw_svector_ostream CommentStream(Comments); in disassembleObject()
1779 Comments.clear(); in disassembleObject()

12