/external/llvm/unittests/LineEditor/ |
D | LineEditor.cpp | 58 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/llvm/lib/LineEditor/ |
D | LineEditor.cpp | 35 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/unittests/ASTMatchers/Dynamic/ |
D | ParserTest.cpp | 274 std::vector<MatcherCompletion> Comps = in TEST() local 276 ASSERT_EQ(1u, Comps.size()); in TEST() 277 EXPECT_EQ("Stmt(", Comps[0].TypedText); in TEST() 279 Comps[0].MatcherDecl); in TEST() 281 Comps = Parser::completeExpression("whileStmt().", 12); in TEST() 282 ASSERT_EQ(1u, Comps.size()); in TEST() 283 EXPECT_EQ("bind(\"", Comps[0].TypedText); in TEST() 284 EXPECT_EQ("bind", Comps[0].MatcherDecl); in TEST()
|
D | RegistryTest.cpp | 112 bool hasCompletion(const CompVector &Comps, StringRef TypedText, in hasCompletion() argument 115 for (CompVector::const_iterator I = Comps.begin(), E = Comps.end(); I != E; in hasCompletion() 120 *Index = I - Comps.begin(); in hasCompletion() 440 CompVector Comps = getCompletions(); in TEST_F() local 442 Comps, "hasParent(", "Matcher<Decl|Stmt> hasParent(Matcher<Decl|Stmt>)")); in TEST_F() 443 EXPECT_TRUE(hasCompletion(Comps, "whileStmt(", in TEST_F()
|
/external/clang/lib/Parse/ |
D | ParseExpr.cpp | 1740 SmallVector<Sema::OffsetOfComponent, 4> Comps; in ParseBuiltinPrimaryExpression() local 1742 Comps.push_back(Sema::OffsetOfComponent()); in ParseBuiltinPrimaryExpression() 1743 Comps.back().isBrackets = false; in ParseBuiltinPrimaryExpression() 1744 Comps.back().U.IdentInfo = Tok.getIdentifierInfo(); in ParseBuiltinPrimaryExpression() 1745 Comps.back().LocStart = Comps.back().LocEnd = ConsumeToken(); in ParseBuiltinPrimaryExpression() 1751 Comps.push_back(Sema::OffsetOfComponent()); in ParseBuiltinPrimaryExpression() 1752 Comps.back().isBrackets = false; in ParseBuiltinPrimaryExpression() 1753 Comps.back().LocStart = ConsumeToken(); in ParseBuiltinPrimaryExpression() 1760 Comps.back().U.IdentInfo = Tok.getIdentifierInfo(); in ParseBuiltinPrimaryExpression() 1761 Comps.back().LocEnd = ConsumeToken(); in ParseBuiltinPrimaryExpression() [all …]
|
/external/llvm/include/llvm/LineEditor/ |
D | LineEditor.h | 124 static std::string getCommonPrefix(const std::vector<Completion> &Comps);
|
/external/llvm/utils/TableGen/ |
D | CodeGenRegisters.cpp | 60 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() 264 const CodeGenSubRegIndex::CompMap &Comps = Idx->getComposites(); in computeSubRegs() local 270 for (CodeGenSubRegIndex::CompMap::const_iterator I = Comps.begin(), in computeSubRegs() 271 E = Comps.end(); I != E; ++I) { in computeSubRegs()
|
/external/pdfium/core/src/fpdfapi/fpdf_page/ |
D | fpdf_page_colors.cpp | 808 CFX_FixedBufGrow<FX_FLOAT, 16> Comps(m_nBaseComponents); in GetRGB() local 809 FX_FLOAT* comps = Comps; in GetRGB()
|
/external/clang/lib/Sema/ |
D | SemaExpr.cpp | 10214 SmallVector<OffsetOfNode, 4> Comps; in BuildBuiltinOffsetOf() local 10243 Comps.push_back(OffsetOfNode(OC.LocStart, Exprs.size(), OC.LocEnd)); in BuildBuiltinOffsetOf() 10252 Comps.push_back(OffsetOfNode(OC.LocStart, OC.U.IdentInfo, OC.LocEnd)); in BuildBuiltinOffsetOf() 10335 Comps.push_back(OffsetOfNode(B->Base)); in BuildBuiltinOffsetOf() 10341 Comps.push_back(OffsetOfNode(OC.LocStart, in BuildBuiltinOffsetOf() 10345 Comps.push_back(OffsetOfNode(OC.LocStart, MemberDecl, OC.LocEnd)); in BuildBuiltinOffsetOf() 10351 Comps, Exprs, RParenLoc); in BuildBuiltinOffsetOf()
|