Home
last modified time | relevance | path

Searched refs:Comps (Results 1 – 9 of 9) sorted by relevance

/external/llvm/unittests/LineEditor/
DLineEditor.cpp58 std::vector<LineEditor::Completion> Comps; in TEST_F() local
60 Comps.push_back(LineEditor::Completion("foo", "int foo()")); in TEST_F()
61 LE->setListCompleter(TestListCompleter(Comps)); in TEST_F()
66 Comps.push_back(LineEditor::Completion("bar", "int bar()")); in TEST_F()
67 LE->setListCompleter(TestListCompleter(Comps)); in TEST_F()
74 Comps.clear(); in TEST_F()
75 Comps.push_back(LineEditor::Completion("fee", "int fee()")); in TEST_F()
76 Comps.push_back(LineEditor::Completion("fi", "int fi()")); in TEST_F()
77 Comps.push_back(LineEditor::Completion("foe", "int foe()")); in TEST_F()
78 Comps.push_back(LineEditor::Completion("fum", "int fum()")); in TEST_F()
[all …]
/external/clang/unittests/ASTMatchers/Dynamic/
DParserTest.cpp280 std::vector<MatcherCompletion> Comps = in TEST() local
282 ASSERT_EQ(1u, Comps.size()); in TEST()
283 EXPECT_EQ("Stmt(", Comps[0].TypedText); in TEST()
285 Comps[0].MatcherDecl); in TEST()
287 Comps = Parser::completeExpression("whileStmt().", 12); in TEST()
288 ASSERT_EQ(1u, Comps.size()); in TEST()
289 EXPECT_EQ("bind(\"", Comps[0].TypedText); in TEST()
290 EXPECT_EQ("bind", Comps[0].MatcherDecl); in TEST()
297 std::vector<MatcherCompletion> Comps = in TEST() local
299 ASSERT_EQ(1u, Comps.size()); in TEST()
[all …]
DRegistryTest.cpp115 bool hasCompletion(const CompVector &Comps, StringRef TypedText, in hasCompletion() argument
117 for (CompVector::const_iterator I = Comps.begin(), E = Comps.end(); I != E; in hasCompletion()
447 CompVector Comps = getCompletions(); in TEST_F() local
450 Comps, "hasParent(", "Matcher<Decl|Stmt> hasParent(Matcher<Decl|Stmt>)")); in TEST_F()
452 EXPECT_TRUE(hasCompletion(Comps, "whileStmt(", in TEST_F()
456 Comps, "hasDescendant(", in TEST_F()
490 Comps = getCompletions("classTemplateSpecializationDecl", 0); in TEST_F()
492 Comps, "isSameOrDerivedFrom(", in TEST_F()
/external/llvm/lib/LineEditor/
DLineEditor.cpp35 const std::vector<Completion> &Comps) { in getCommonPrefix() argument
36 assert(!Comps.empty()); in getCommonPrefix()
38 std::string CommonPrefix = Comps[0].TypedText; in getCommonPrefix()
39 for (std::vector<Completion>::const_iterator I = Comps.begin() + 1, in getCommonPrefix()
40 E = Comps.end(); in getCommonPrefix()
56 std::vector<Completion> Comps = getCompletions(Buffer, Pos); in complete() local
57 if (Comps.empty()) { in complete()
62 std::string CommonPrefix = getCommonPrefix(Comps); in complete()
71 for (std::vector<Completion>::iterator I = Comps.begin(), E = Comps.end(); in complete()
/external/clang/lib/Parse/
DParseExpr.cpp1874 SmallVector<Sema::OffsetOfComponent, 4> Comps; in ParseBuiltinPrimaryExpression() local
1876 Comps.push_back(Sema::OffsetOfComponent()); in ParseBuiltinPrimaryExpression()
1877 Comps.back().isBrackets = false; in ParseBuiltinPrimaryExpression()
1878 Comps.back().U.IdentInfo = Tok.getIdentifierInfo(); in ParseBuiltinPrimaryExpression()
1879 Comps.back().LocStart = Comps.back().LocEnd = ConsumeToken(); in ParseBuiltinPrimaryExpression()
1885 Comps.push_back(Sema::OffsetOfComponent()); in ParseBuiltinPrimaryExpression()
1886 Comps.back().isBrackets = false; in ParseBuiltinPrimaryExpression()
1887 Comps.back().LocStart = ConsumeToken(); in ParseBuiltinPrimaryExpression()
1894 Comps.back().U.IdentInfo = Tok.getIdentifierInfo(); in ParseBuiltinPrimaryExpression()
1895 Comps.back().LocEnd = ConsumeToken(); in ParseBuiltinPrimaryExpression()
[all …]
/external/llvm/include/llvm/LineEditor/
DLineEditor.h124 static std::string getCommonPrefix(const std::vector<Completion> &Comps);
/external/llvm/utils/TableGen/
DCodeGenRegisters.cpp60 std::vector<Record*> Comps = TheDef->getValueAsListOfDefs("ComposedOf"); in updateComponents() local
61 if (!Comps.empty()) { in updateComponents()
62 if (Comps.size() != 2) in updateComponents()
65 CodeGenSubRegIndex *A = RegBank.getSubRegIdx(Comps[0]); in updateComponents()
66 CodeGenSubRegIndex *B = RegBank.getSubRegIdx(Comps[1]); in updateComponents()
259 const CodeGenSubRegIndex::CompMap &Comps = Idx->getComposites(); in computeSubRegs() local
265 for (CodeGenSubRegIndex::CompMap::const_iterator I = Comps.begin(), in computeSubRegs()
266 E = Comps.end(); I != E; ++I) { in computeSubRegs()
/external/pdfium/core/src/fpdfapi/fpdf_page/
Dfpdf_page_colors.cpp840 CFX_FixedBufGrow<FX_FLOAT, 16> Comps(m_nBaseComponents); in GetRGB() local
841 FX_FLOAT* comps = Comps; in GetRGB()
/external/clang/lib/Sema/
DSemaExpr.cpp10900 SmallVector<OffsetOfNode, 4> Comps; in BuildBuiltinOffsetOf() local
10929 Comps.push_back(OffsetOfNode(OC.LocStart, Exprs.size(), OC.LocEnd)); in BuildBuiltinOffsetOf()
10938 Comps.push_back(OffsetOfNode(OC.LocStart, OC.U.IdentInfo, OC.LocEnd)); in BuildBuiltinOffsetOf()
11021 Comps.push_back(OffsetOfNode(B->Base)); in BuildBuiltinOffsetOf()
11027 Comps.push_back(OffsetOfNode(OC.LocStart, in BuildBuiltinOffsetOf()
11031 Comps.push_back(OffsetOfNode(OC.LocStart, MemberDecl, OC.LocEnd)); in BuildBuiltinOffsetOf()
11037 Comps, Exprs, RParenLoc); in BuildBuiltinOffsetOf()