Searched refs:Snippets (Results 1 – 4 of 4) sorted by relevance
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | IsolateDeclarationCheck.cpp | 206 std::vector<StringRef> Snippets; in collectSourceRanges() local 207 Snippets.reserve(Ranges.size()); in collectSourceRanges() 224 Snippets.emplace_back(Snippet); in collectSourceRanges() 227 return Snippets; in collectSourceRanges() 232 createIsolatedDecls(llvm::ArrayRef<StringRef> Snippets) { in createIsolatedDecls() argument 234 assert(Snippets.size() > 2 && "Not enough snippets to create isolated decls"); in createIsolatedDecls() 235 std::vector<std::string> Decls(Snippets.size() - 1); in createIsolatedDecls() 237 for (std::size_t I = 1; I < Snippets.size(); ++I) in createIsolatedDecls() 238 Decls[I - 1] = Twine(Snippets[0]) in createIsolatedDecls() 239 .concat(Snippets[0].endswith(" ") ? "" : " ") in createIsolatedDecls() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/X86/ |
| H A D | SnippetFileTest.cpp | 73 auto Snippets = TestCommon(R"( in TEST_F() local 80 EXPECT_FALSE((bool)Snippets.takeError()); in TEST_F() 81 ASSERT_THAT(*Snippets, SizeIs(1)); in TEST_F() 82 const auto &Snippet = (*Snippets)[0]; in TEST_F() 121 auto Snippets = TestCommon(R"( in TEST_F() local 124 EXPECT_FALSE((bool)Snippets.takeError()); in TEST_F()
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | SourceCoverageViewHTML.cpp | 510 SmallVector<std::string, 8> Snippets; in renderLine() local 515 Snippets.push_back(std::string(Line.substr(Start, Len))); in renderLine() 529 for (unsigned I = 0, E = Snippets.size(); I < E; ++I) in renderLine() 530 Snippets[I] = escape(Snippets[I], getOptions()); in renderLine() 551 if (!Snippets[0].empty()) in renderLine() 552 Snippets[0] = Highlight(Snippets[0], 1, 1 + Snippets[0].size()); in renderLine() 565 Snippets[I + 1] = Highlight(Snippets[I + 1], CurSeg->Col, in renderLine() 566 CurSeg->Col + Snippets[I + 1].size()); in renderLine() 570 Snippets.back() = Highlight(Snippets.back(), 1, 1 + Snippets.back().size()); in renderLine() 595 Snippets[I + 1] = in renderLine() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | CodeCompleteTests.cpp | 483 TEST(CompletionTest, Snippets) { in TEST() argument
|