Home
last modified time | relevance | path

Searched refs:Snippet (Results 1 – 24 of 24) sorted by relevance

/external/llvm-project/clang/unittests/Tooling/
DStencilTest.cpp83 const std::string Snippet = R"cc( in testError() local
92 Snippet, in testError()
125 const std::string Snippet = R"cc( in TEST_F() local
132 Snippet, ifStmt(hasCondition(expr().bind(Condition)), in TEST_F()
144 const std::string Snippet = R"cc( in TEST_F() local
150 auto StmtMatch = matchStmt(Snippet, ifStmt(hasCondition(stmt().bind("a1")), in TEST_F()
161 void testExpr(StringRef Id, StringRef Snippet, const Stencil &Stencil, in testExpr() argument
163 auto StmtMatch = matchStmt(Snippet, expr().bind(Id)); in testExpr()
169 void testFailure(StringRef Id, StringRef Snippet, const Stencil &Stencil, in testFailure() argument
171 auto StmtMatch = matchStmt(Snippet, expr().bind(Id)); in testFailure()
[all …]
DSourceCodeBuildersTest.cpp69 static void testPredicate(bool (*Pred)(const Expr &), StringRef Snippet, in testPredicate() argument
71 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testPredicate()
72 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicate()
74 << "Snippet: " << Snippet; in testPredicate()
79 static void testPredicateOnArg(bool (*Pred)(const Expr &), StringRef Snippet, in testPredicateOnArg() argument
82 Snippet, expr(ignoringImplicit(callExpr(hasArgument( in testPredicateOnArg()
84 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicateOnArg()
86 << "Snippet: " << Snippet; in testPredicateOnArg()
131 StringRef Snippet, StringRef Expected) { in testBuilder() argument
132 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testBuilder()
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DAddConstTest.cpp54 StringRef Snippet = "int target = 0;"; in TEST() local
56 EXPECT_EQ("const int target = 0;", runCheckOnCode<ValueLTransform>(Snippet)); in TEST()
58 runCheckOnCode<PointeeLTransform>(Snippet)); in TEST()
60 EXPECT_EQ("int const target = 0;", runCheckOnCode<ValueRTransform>(Snippet)); in TEST()
62 runCheckOnCode<PointeeRTransform>(Snippet)); in TEST()
220 StringRef Snippet = "int ((target)) = 0;"; in TEST() local
223 runCheckOnCode<ValueLTransform>(Snippet)); in TEST()
225 runCheckOnCode<PointeeLTransform>(Snippet)); in TEST()
228 runCheckOnCode<ValueRTransform>(Snippet)); in TEST()
230 runCheckOnCode<PointeeRTransform>(Snippet)); in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clangd/unittests/
DCodeCompletionStringsTests.cpp29 Snippet.clear(); in computeSignature()
30 getSignature(CCS, &Signature, &Snippet, /*RequiredQualifier=*/nullptr, in computeSignature()
38 std::string Snippet; member in clang::clangd::__anond9d6ddc60111::CompletionStringTest
82 EXPECT_EQ(Snippet, ""); in TEST_F()
98 EXPECT_EQ(Snippet, "(${1:p1}, ${2:p2})"); in TEST_F()
123 EXPECT_EQ(Snippet, "(${1:p1})"); in TEST_F()
134 EXPECT_EQ(Snippet, "(${1:\\$p\\}1\\\\})"); in TEST_F()
149 EXPECT_EQ(Snippet, " ${1:name} = ${2:target};"); in TEST_F()
153 EXPECT_EQ(Snippet, " ${1:name} = ${0:target};"); in TEST_F()
162 EXPECT_EQ(Snippet, ""); in TEST_F()
[all …]
DSymbolCollectorTests.cpp54 MATCHER_P(Snippet, S, "") {
1387 TEST_F(SymbolCollectorTest, Snippet) { in TEST_F() argument
1398 AllOf(QName("nx::f"), Labeled("f()"), Snippet("f()")), in TEST_F()
1400 Snippet("ff(${1:int x}, ${2:double y})")))); in TEST_F()
DCodeCompleteTests.cpp316 Not(Contains(Kind(CompletionItemKind::Snippet)))); in testAfterDotCompletion()
363 Contains(Kind(CompletionItemKind::Snippet)))); in testGlobalScopeCompletion()
551 Has("namespace", CompletionItemKind::Snippet)); in TEST()
1814 EXPECT_EQ(R.insertTextFormat, InsertTextFormat::Snippet); in TEST()
/external/llvm-project/clang-tools-extra/clangd/
DCodeCompletionStrings.cpp99 std::string *Snippet, std::string *RequiredQualifiers, in getSignature() argument
140 Snippet->clear(); in getSignature()
153 *Snippet += Chunk.Text; in getSignature()
159 *Snippet += Chunk.Text; in getSignature()
169 *Snippet += in getSignature()
172 appendEscapeSnippet(Chunk.Text, Snippet); in getSignature()
173 *Snippet += '}'; in getSignature()
204 *Snippet += Chunk.Text; in getSignature()
207 *Snippet += Chunk.Text; in getSignature()
DCodeCompletionStrings.h48 std::string *Snippet,
DCodeComplete.cpp153 return CompletionItemKind::Snippet; in toCompletionItemKind()
454 auto *Snippet = onlyValue<&BundledEntry::SnippetSuffix>(); in summarizeSnippet() local
455 if (!Snippet) in summarizeSnippet()
461 return *Snippet; in summarizeSnippet()
464 if (Snippet->empty()) in summarizeSnippet()
476 bool EmptyArgs = llvm::StringRef(*Snippet).endswith("()"); in summarizeSnippet()
477 if (Snippet->front() == '<') in summarizeSnippet()
479 if (Snippet->front() == '(') in summarizeSnippet()
481 return *Snippet; // Not an arg snippet? in summarizeSnippet()
486 if (Snippet->front() != '<') in summarizeSnippet()
[all …]
DProtocol.h302 Snippet = 15, enumerator
1148 Snippet = 2, enumerator
/external/llvm-project/llvm/unittests/tools/llvm-exegesis/X86/
DSnippetFileTest.cpp82 const auto &Snippet = (*Snippets)[0]; in TEST_F() local
83 ASSERT_THAT(Snippet.Key.Instructions, ElementsAre(HasOpcode(X86::INC64r))); in TEST_F()
84 ASSERT_THAT(Snippet.Key.RegisterInitialValues, in TEST_F()
87 ASSERT_THAT(Snippet.LiveIns, ElementsAre(X86::RDI, X86::DL)); in TEST_F()
DSnippetGeneratorTest.cpp432 std::vector<InstructionTemplate> Snippet; in TEST_F() local
433 Snippet.push_back(std::move(IT)); in TEST_F()
434 const auto RIV = Generator.computeRegisterInitialValues(Snippet); in TEST_F()
443 std::vector<InstructionTemplate> Snippet; in TEST_F() local
449 Snippet.push_back(std::move(Mov)); in TEST_F()
457 Snippet.push_back(std::move(Add)); in TEST_F()
460 const auto RIV = Generator.computeRegisterInitialValues(Snippet); in TEST_F()
/external/llvm/tools/llvm-cov/
DSourceCoverageViewHTML.cpp328 auto Highlight = [&](const std::string &Snippet) { in renderLine() argument
329 return tag("span", Snippet, Color.getValue()); in renderLine()
383 for (const auto &Snippet : Snippets) in renderLine() local
384 OS << Snippet; in renderLine()
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
Dsnippet.py16 class Snippet(object): class
92 class TokenSnippet(Snippet):
154 class Symbol(Snippet):
/external/llvm-project/llvm/tools/llvm-cov/
DSourceCoverageViewHTML.cpp532 auto Highlight = [&](const std::string &Snippet, unsigned LC, unsigned RC) { in renderLine() argument
535 return tag("span", Snippet, std::string(Color.getValue())); in renderLine()
602 for (const auto &Snippet : Snippets) in renderLine() local
603 OS << Snippet; in renderLine()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DIsolateDeclarationCheck.cpp218 StringRef Snippet = in collectSourceRanges() local
224 Snippets.emplace_back(Snippet); in collectSourceRanges()
/external/llvm-project/llvm/tools/llvm-exegesis/lib/
DSnippetGenerator.h69 const std::vector<InstructionTemplate> &Snippet) const;
/external/llvm-project/llvm/docs/CommandGuide/
Dllvm-exegesis.rst67 Snippet:
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DBugReporter.cpp1579 StringRef Snippet = Buffer->getBuffer().slice(BeginOffset, EndOffset); in getLengthOnSingleLine() local
1585 if (Snippet.find_first_of("\r\n") != StringRef::npos) in getLengthOnSingleLine()
1589 return Snippet.size(); in getLengthOnSingleLine()
/external/llvm-project/llvm/test/tools/llvm-mca/X86/
Dread-after-ld-2.s12 # Code Snippet from "Ithemal: Accurate, Portable and Fast Basic Block Throughput Estimation using D…
/external/clang/lib/StaticAnalyzer/Core/
DBugReporter.cpp2131 StringRef Snippet = Buffer->getBuffer().slice(BeginOffset, EndOffset); in getLengthOnSingleLine() local
2137 if (Snippet.find_first_of("\r\n") != StringRef::npos) in getLengthOnSingleLine()
2141 return Snippet.size(); in getLengthOnSingleLine()
/external/clang/docs/
DInternalsManual.rst1302 // Snippet #1:
1310 // Snippet #2:
1317 actually have two separate ``NamespaceDecl`` nodes in Snippet #1, each of which
/external/llvm-project/clang/docs/
DInternalsManual.rst1406 // Snippet #1:
1414 // Snippet #2:
1421 actually have two separate ``NamespaceDecl`` nodes in Snippet #1, each of which
/external/fonttools/
DNEWS.rst1717 - Add Snippet scripts for cmap subtable format conversion, printing