Lines Matching refs:Builder
1309 CodeCompletionBuilder Builder(Results.getAllocator(),
1319 Builder.AddTypedTextChunk("typename");
1320 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1321 Builder.AddPlaceholderChunk("qualifier");
1322 Builder.AddTextChunk("::");
1323 Builder.AddPlaceholderChunk("name");
1324 Results.AddResult(Result(Builder.TakeString()));
1331 Builder.AddTypedTextChunk("decltype");
1332 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1333 Builder.AddPlaceholderChunk("expression");
1334 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1335 Results.AddResult(Result(Builder.TakeString()));
1346 Builder.AddTypedTextChunk("typeof");
1347 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1348 Builder.AddPlaceholderChunk("expression");
1349 Results.AddResult(Result(Builder.TakeString()));
1351 Builder.AddTypedTextChunk("typeof");
1352 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1353 Builder.AddPlaceholderChunk("type");
1354 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1355 Results.AddResult(Result(Builder.TakeString()));
1425 CodeCompletionBuilder Builder(Results.getAllocator(),
1427 Builder.AddTypedTextChunk("typedef");
1428 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1429 Builder.AddPlaceholderChunk("type");
1430 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1431 Builder.AddPlaceholderChunk("name");
1432 Results.AddResult(CodeCompletionResult(Builder.TakeString()));
1520 CodeCompletionBuilder Builder(Allocator, Results.getCodeCompletionTUInfo());
1522 Builder.AddResultTypeChunk(GetCompletionTypeString(ThisTy,
1526 Builder.AddTypedTextChunk("this");
1527 Results.AddResult(CodeCompletionResult(Builder.TakeString()));
1536 CodeCompletionBuilder Builder(Allocator, Results.getCodeCompletionTUInfo());
1544 Builder.AddTypedTextChunk("namespace");
1545 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1546 Builder.AddPlaceholderChunk("identifier");
1547 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
1548 Builder.AddPlaceholderChunk("declarations");
1549 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
1550 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
1551 Results.AddResult(Result(Builder.TakeString()));
1555 Builder.AddTypedTextChunk("namespace");
1556 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1557 Builder.AddPlaceholderChunk("name");
1558 Builder.AddChunk(CodeCompletionString::CK_Equal);
1559 Builder.AddPlaceholderChunk("namespace");
1560 Results.AddResult(Result(Builder.TakeString()));
1563 Builder.AddTypedTextChunk("using");
1564 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1565 Builder.AddTextChunk("namespace");
1566 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1567 Builder.AddPlaceholderChunk("identifier");
1568 Results.AddResult(Result(Builder.TakeString()));
1571 Builder.AddTypedTextChunk("asm");
1572 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1573 Builder.AddPlaceholderChunk("string-literal");
1574 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1575 Results.AddResult(Result(Builder.TakeString()));
1579 Builder.AddTypedTextChunk("template");
1580 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1581 Builder.AddPlaceholderChunk("declaration");
1582 Results.AddResult(Result(Builder.TakeString()));
1595 Builder.AddTypedTextChunk("using");
1596 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1597 Builder.AddPlaceholderChunk("qualifier");
1598 Builder.AddTextChunk("::");
1599 Builder.AddPlaceholderChunk("name");
1600 Results.AddResult(Result(Builder.TakeString()));
1604 Builder.AddTypedTextChunk("using");
1605 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1606 Builder.AddTextChunk("typename");
1607 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1608 Builder.AddPlaceholderChunk("qualifier");
1609 Builder.AddTextChunk("::");
1610 Builder.AddPlaceholderChunk("name");
1611 Results.AddResult(Result(Builder.TakeString()));
1618 Builder.AddTypedTextChunk("public");
1620 Builder.AddChunk(CodeCompletionString::CK_Colon);
1621 Results.AddResult(Result(Builder.TakeString()));
1624 Builder.AddTypedTextChunk("protected");
1626 Builder.AddChunk(CodeCompletionString::CK_Colon);
1627 Results.AddResult(Result(Builder.TakeString()));
1630 Builder.AddTypedTextChunk("private");
1632 Builder.AddChunk(CodeCompletionString::CK_Colon);
1633 Results.AddResult(Result(Builder.TakeString()));
1642 Builder.AddTypedTextChunk("template");
1643 Builder.AddChunk(CodeCompletionString::CK_LeftAngle);
1644 Builder.AddPlaceholderChunk("parameters");
1645 Builder.AddChunk(CodeCompletionString::CK_RightAngle);
1646 Results.AddResult(Result(Builder.TakeString()));
1675 Builder.AddTypedTextChunk("try");
1676 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
1677 Builder.AddPlaceholderChunk("statements");
1678 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
1679 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
1680 Builder.AddTextChunk("catch");
1681 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1682 Builder.AddPlaceholderChunk("declaration");
1683 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1684 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
1685 Builder.AddPlaceholderChunk("statements");
1686 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
1687 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
1688 Results.AddResult(Result(Builder.TakeString()));
1695 Builder.AddTypedTextChunk("if");
1696 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1698 Builder.AddPlaceholderChunk("condition");
1700 Builder.AddPlaceholderChunk("expression");
1701 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1702 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
1703 Builder.AddPlaceholderChunk("statements");
1704 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
1705 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
1706 Results.AddResult(Result(Builder.TakeString()));
1709 Builder.AddTypedTextChunk("switch");
1710 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1712 Builder.AddPlaceholderChunk("condition");
1714 Builder.AddPlaceholderChunk("expression");
1715 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1716 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
1717 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
1718 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
1719 Results.AddResult(Result(Builder.TakeString()));
1725 Builder.AddTypedTextChunk("case");
1726 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1727 Builder.AddPlaceholderChunk("expression");
1728 Builder.AddChunk(CodeCompletionString::CK_Colon);
1729 Results.AddResult(Result(Builder.TakeString()));
1732 Builder.AddTypedTextChunk("default");
1733 Builder.AddChunk(CodeCompletionString::CK_Colon);
1734 Results.AddResult(Result(Builder.TakeString()));
1739 Builder.AddTypedTextChunk("while");
1740 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1742 Builder.AddPlaceholderChunk("condition");
1744 Builder.AddPlaceholderChunk("expression");
1745 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1746 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
1747 Builder.AddPlaceholderChunk("statements");
1748 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
1749 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
1750 Results.AddResult(Result(Builder.TakeString()));
1753 Builder.AddTypedTextChunk("do");
1754 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
1755 Builder.AddPlaceholderChunk("statements");
1756 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
1757 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
1758 Builder.AddTextChunk("while");
1759 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1760 Builder.AddPlaceholderChunk("expression");
1761 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1762 Results.AddResult(Result(Builder.TakeString()));
1765 Builder.AddTypedTextChunk("for");
1766 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1768 Builder.AddPlaceholderChunk("init-statement");
1770 Builder.AddPlaceholderChunk("init-expression");
1771 Builder.AddChunk(CodeCompletionString::CK_SemiColon);
1772 Builder.AddPlaceholderChunk("condition");
1773 Builder.AddChunk(CodeCompletionString::CK_SemiColon);
1774 Builder.AddPlaceholderChunk("inc-expression");
1775 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1776 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
1777 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
1778 Builder.AddPlaceholderChunk("statements");
1779 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
1780 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
1781 Results.AddResult(Result(Builder.TakeString()));
1786 Builder.AddTypedTextChunk("continue");
1787 Results.AddResult(Result(Builder.TakeString()));
1792 Builder.AddTypedTextChunk("break");
1793 Results.AddResult(Result(Builder.TakeString()));
1807 Builder.AddTypedTextChunk("return");
1809 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1810 Builder.AddPlaceholderChunk("expression");
1812 Results.AddResult(Result(Builder.TakeString()));
1815 Builder.AddTypedTextChunk("goto");
1816 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1817 Builder.AddPlaceholderChunk("label");
1818 Results.AddResult(Result(Builder.TakeString()));
1821 Builder.AddTypedTextChunk("using");
1822 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1823 Builder.AddTextChunk("namespace");
1824 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1825 Builder.AddPlaceholderChunk("identifier");
1826 Results.AddResult(Result(Builder.TakeString()));
1839 Builder.AddTypedTextChunk("__bridge");
1840 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1841 Builder.AddPlaceholderChunk("type");
1842 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1843 Builder.AddPlaceholderChunk("expression");
1844 Results.AddResult(Result(Builder.TakeString()));
1847 Builder.AddTypedTextChunk("__bridge_transfer");
1848 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1849 Builder.AddPlaceholderChunk("Objective-C type");
1850 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1851 Builder.AddPlaceholderChunk("expression");
1852 Results.AddResult(Result(Builder.TakeString()));
1855 Builder.AddTypedTextChunk("__bridge_retained");
1856 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1857 Builder.AddPlaceholderChunk("CF type");
1858 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1859 Builder.AddPlaceholderChunk("expression");
1860 Results.AddResult(Result(Builder.TakeString()));
1870 Builder.AddResultTypeChunk("bool");
1871 Builder.AddTypedTextChunk("true");
1872 Results.AddResult(Result(Builder.TakeString()));
1875 Builder.AddResultTypeChunk("bool");
1876 Builder.AddTypedTextChunk("false");
1877 Results.AddResult(Result(Builder.TakeString()));
1881 Builder.AddTypedTextChunk("dynamic_cast");
1882 Builder.AddChunk(CodeCompletionString::CK_LeftAngle);
1883 Builder.AddPlaceholderChunk("type");
1884 Builder.AddChunk(CodeCompletionString::CK_RightAngle);
1885 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1886 Builder.AddPlaceholderChunk("expression");
1887 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1888 Results.AddResult(Result(Builder.TakeString()));
1892 Builder.AddTypedTextChunk("static_cast");
1893 Builder.AddChunk(CodeCompletionString::CK_LeftAngle);
1894 Builder.AddPlaceholderChunk("type");
1895 Builder.AddChunk(CodeCompletionString::CK_RightAngle);
1896 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1897 Builder.AddPlaceholderChunk("expression");
1898 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1899 Results.AddResult(Result(Builder.TakeString()));
1902 Builder.AddTypedTextChunk("reinterpret_cast");
1903 Builder.AddChunk(CodeCompletionString::CK_LeftAngle);
1904 Builder.AddPlaceholderChunk("type");
1905 Builder.AddChunk(CodeCompletionString::CK_RightAngle);
1906 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1907 Builder.AddPlaceholderChunk("expression");
1908 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1909 Results.AddResult(Result(Builder.TakeString()));
1912 Builder.AddTypedTextChunk("const_cast");
1913 Builder.AddChunk(CodeCompletionString::CK_LeftAngle);
1914 Builder.AddPlaceholderChunk("type");
1915 Builder.AddChunk(CodeCompletionString::CK_RightAngle);
1916 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1917 Builder.AddPlaceholderChunk("expression");
1918 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1919 Results.AddResult(Result(Builder.TakeString()));
1923 Builder.AddResultTypeChunk("std::type_info");
1924 Builder.AddTypedTextChunk("typeid");
1925 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1926 Builder.AddPlaceholderChunk("expression-or-type");
1927 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1928 Results.AddResult(Result(Builder.TakeString()));
1932 Builder.AddTypedTextChunk("new");
1933 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1934 Builder.AddPlaceholderChunk("type");
1935 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1936 Builder.AddPlaceholderChunk("expressions");
1937 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1938 Results.AddResult(Result(Builder.TakeString()));
1941 Builder.AddTypedTextChunk("new");
1942 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1943 Builder.AddPlaceholderChunk("type");
1944 Builder.AddChunk(CodeCompletionString::CK_LeftBracket);
1945 Builder.AddPlaceholderChunk("size");
1946 Builder.AddChunk(CodeCompletionString::CK_RightBracket);
1947 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1948 Builder.AddPlaceholderChunk("expressions");
1949 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1950 Results.AddResult(Result(Builder.TakeString()));
1953 Builder.AddResultTypeChunk("void");
1954 Builder.AddTypedTextChunk("delete");
1955 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1956 Builder.AddPlaceholderChunk("expression");
1957 Results.AddResult(Result(Builder.TakeString()));
1960 Builder.AddResultTypeChunk("void");
1961 Builder.AddTypedTextChunk("delete");
1962 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1963 Builder.AddChunk(CodeCompletionString::CK_LeftBracket);
1964 Builder.AddChunk(CodeCompletionString::CK_RightBracket);
1965 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1966 Builder.AddPlaceholderChunk("expression");
1967 Results.AddResult(Result(Builder.TakeString()));
1971 Builder.AddResultTypeChunk("void");
1972 Builder.AddTypedTextChunk("throw");
1973 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
1974 Builder.AddPlaceholderChunk("expression");
1975 Results.AddResult(Result(Builder.TakeString()));
1982 Builder.AddResultTypeChunk("std::nullptr_t");
1983 Builder.AddTypedTextChunk("nullptr");
1984 Results.AddResult(Result(Builder.TakeString()));
1987 Builder.AddResultTypeChunk("size_t");
1988 Builder.AddTypedTextChunk("alignof");
1989 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1990 Builder.AddPlaceholderChunk("type");
1991 Builder.AddChunk(CodeCompletionString::CK_RightParen);
1992 Results.AddResult(Result(Builder.TakeString()));
1995 Builder.AddResultTypeChunk("bool");
1996 Builder.AddTypedTextChunk("noexcept");
1997 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
1998 Builder.AddPlaceholderChunk("expression");
1999 Builder.AddChunk(CodeCompletionString::CK_RightParen);
2000 Results.AddResult(Result(Builder.TakeString()));
2003 Builder.AddResultTypeChunk("size_t");
2004 Builder.AddTypedTextChunk("sizeof...");
2005 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
2006 Builder.AddPlaceholderChunk("parameter-pack");
2007 Builder.AddChunk(CodeCompletionString::CK_RightParen);
2008 Results.AddResult(Result(Builder.TakeString()));
2023 Builder.AddResultTypeChunk(Allocator.CopyString(SuperType));
2024 Builder.AddTypedTextChunk("super");
2025 Results.AddResult(Result(Builder.TakeString()));
2034 Builder.AddResultTypeChunk("size_t");
2036 Builder.AddTypedTextChunk("alignof");
2038 Builder.AddTypedTextChunk("_Alignof");
2039 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
2040 Builder.AddPlaceholderChunk("type");
2041 Builder.AddChunk(CodeCompletionString::CK_RightParen);
2042 Results.AddResult(Result(Builder.TakeString()));
2046 Builder.AddResultTypeChunk("size_t");
2047 Builder.AddTypedTextChunk("sizeof");
2048 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
2049 Builder.AddPlaceholderChunk("expression-or-type");
2050 Builder.AddChunk(CodeCompletionString::CK_RightParen);
2051 Results.AddResult(Result(Builder.TakeString()));
3236 CodeCompletionBuilder Builder(Results.getAllocator(),
3251 Builder.AddTextChunk(Results.getAllocator().CopyString(OS.str()));
3256 Builder.AddTypedTextChunk(Results.getAllocator().CopyString(
3258 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
3264 Builder.AddChunk(CodeCompletionString::CK_Comma);
3266 Builder.AddPlaceholderChunk(
3269 Builder.AddChunk(CodeCompletionString::CK_RightParen);
3270 Results.AddResult(CodeCompletionResult(Builder.TakeString(),
3288 CodeCompletionBuilder Builder(Allocator, Results.getCodeCompletionTUInfo());
3295 Builder.AddTypedTextChunk(
3296 Builder.getAllocator().CopyString(Modules[I]->Name));
3297 Results.AddResult(Result(Builder.TakeString(),
3315 Builder.AddTypedTextChunk(
3316 Builder.getAllocator().CopyString((*Sub)->Name));
3317 Results.AddResult(Result(Builder.TakeString(),
3602 CodeCompletionBuilder Builder(Results.getAllocator(),
3605 Builder);
3606 Builder.AddTypedTextChunk(
3609 Results.MaybeAddResult(Result(Builder.TakeString(), M,
4192 CodeCompletionBuilder Builder(Results.getAllocator(),
4194 Builder.AddTypedTextChunk("else");
4196 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4197 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
4198 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
4199 Builder.AddPlaceholderChunk("statements");
4200 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
4201 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
4203 Results.AddResult(Builder.TakeString());
4206 Builder.AddTypedTextChunk("else");
4207 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4208 Builder.AddTextChunk("if");
4209 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4210 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
4212 Builder.AddPlaceholderChunk("condition");
4214 Builder.AddPlaceholderChunk("expression");
4215 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4217 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4218 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
4219 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
4220 Builder.AddPlaceholderChunk("statements");
4221 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
4222 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
4224 Results.AddResult(Builder.TakeString());
4460 CodeCompletionBuilder Builder(Results.getAllocator(),
4476 Builder.AddTypedTextChunk(
4479 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
4480 Builder.AddPlaceholderChunk("args");
4481 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4482 Results.AddResult(CodeCompletionResult(Builder.TakeString(),
4500 Builder.AddTypedTextChunk(
4501 Builder.getAllocator().CopyString(
4503 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
4504 Builder.AddPlaceholderChunk("args");
4505 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4506 Results.AddResult(CodeCompletionResult(Builder.TakeString(),
4526 Builder.AddTypedTextChunk(Builder.getAllocator().CopyString(
4528 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
4529 Builder.AddPlaceholderChunk("args");
4530 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4531 Results.AddResult(CodeCompletionResult(Builder.TakeString(),
4609 CodeCompletionBuilder Builder(Results.getAllocator(),
4613 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"dynamic"));
4614 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4615 Builder.AddPlaceholderChunk("property");
4616 Results.AddResult(Result(Builder.TakeString()));
4619 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"synthesize"));
4620 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4621 Builder.AddPlaceholderChunk("property");
4622 Results.AddResult(Result(Builder.TakeString()));
4648 CodeCompletionBuilder Builder(Results.getAllocator(),
4652 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"class"));
4653 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4654 Builder.AddPlaceholderChunk("name");
4655 Results.AddResult(Result(Builder.TakeString()));
4661 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"interface"));
4662 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4663 Builder.AddPlaceholderChunk("class");
4664 Results.AddResult(Result(Builder.TakeString()));
4667 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"protocol"));
4668 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4669 Builder.AddPlaceholderChunk("protocol");
4670 Results.AddResult(Result(Builder.TakeString()));
4673 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"implementation"));
4674 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4675 Builder.AddPlaceholderChunk("class");
4676 Results.AddResult(Result(Builder.TakeString()));
4680 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"compatibility_alias"));
4681 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4682 Builder.AddPlaceholderChunk("alias");
4683 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4684 Builder.AddPlaceholderChunk("class");
4685 Results.AddResult(Result(Builder.TakeString()));
4689 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt, "import"));
4690 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4691 Builder.AddPlaceholderChunk("module");
4692 Results.AddResult(Result(Builder.TakeString()));
4715 CodeCompletionBuilder Builder(Results.getAllocator(),
4723 Builder.AddResultTypeChunk(EncodeType);
4724 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"encode"));
4725 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
4726 Builder.AddPlaceholderChunk("type-name");
4727 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4728 Results.AddResult(Result(Builder.TakeString()));
4731 Builder.AddResultTypeChunk("Protocol *");
4732 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"protocol"));
4733 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
4734 Builder.AddPlaceholderChunk("protocol-name");
4735 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4736 Results.AddResult(Result(Builder.TakeString()));
4739 Builder.AddResultTypeChunk("SEL");
4740 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"selector"));
4741 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
4742 Builder.AddPlaceholderChunk("selector");
4743 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4744 Results.AddResult(Result(Builder.TakeString()));
4747 Builder.AddResultTypeChunk("NSString *");
4748 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"\""));
4749 Builder.AddPlaceholderChunk("string");
4750 Builder.AddTextChunk("\"");
4751 Results.AddResult(Result(Builder.TakeString()));
4754 Builder.AddResultTypeChunk("NSArray *");
4755 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"["));
4756 Builder.AddPlaceholderChunk("objects, ...");
4757 Builder.AddChunk(CodeCompletionString::CK_RightBracket);
4758 Results.AddResult(Result(Builder.TakeString()));
4761 Builder.AddResultTypeChunk("NSDictionary *");
4762 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"{"));
4763 Builder.AddPlaceholderChunk("key");
4764 Builder.AddChunk(CodeCompletionString::CK_Colon);
4765 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4766 Builder.AddPlaceholderChunk("object, ...");
4767 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
4768 Results.AddResult(Result(Builder.TakeString()));
4771 Builder.AddResultTypeChunk("id");
4772 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt, "("));
4773 Builder.AddPlaceholderChunk("expression");
4774 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4775 Results.AddResult(Result(Builder.TakeString()));
4780 CodeCompletionBuilder Builder(Results.getAllocator(),
4786 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"try"));
4787 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
4788 Builder.AddPlaceholderChunk("statements");
4789 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
4790 Builder.AddTextChunk("@catch");
4791 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
4792 Builder.AddPlaceholderChunk("parameter");
4793 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4794 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
4795 Builder.AddPlaceholderChunk("statements");
4796 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
4797 Builder.AddTextChunk("@finally");
4798 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
4799 Builder.AddPlaceholderChunk("statements");
4800 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
4801 Results.AddResult(Result(Builder.TakeString()));
4805 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"throw"));
4806 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4807 Builder.AddPlaceholderChunk("expression");
4808 Results.AddResult(Result(Builder.TakeString()));
4812 Builder.AddTypedTextChunk(OBJC_AT_KEYWORD_NAME(NeedAt,"synchronized"));
4813 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
4814 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
4815 Builder.AddPlaceholderChunk("expression");
4816 Builder.AddChunk(CodeCompletionString::CK_RightParen);
4817 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
4818 Builder.AddPlaceholderChunk("statements");
4819 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
4820 Results.AddResult(Result(Builder.TakeString()));
5223 CodeCompletionBuilder Builder(Results.getAllocator(),
5226 Builder.AddTypedTextChunk("IBAction");
5227 Builder.AddChunk(CodeCompletionString::CK_RightParen);
5228 Builder.AddPlaceholderChunk("selector");
5229 Builder.AddChunk(CodeCompletionString::CK_Colon);
5230 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
5231 Builder.AddTextChunk("id");
5232 Builder.AddChunk(CodeCompletionString::CK_RightParen);
5233 Builder.AddTextChunk("sender");
5234 Results.AddResult(CodeCompletionResult(Builder.TakeString()));
5399 CodeCompletionBuilder Builder(Results.getAllocator(),
5405 Builder);
5409 Builder.AddTypedTextChunk("super");
5410 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
5416 Builder.AddTextChunk(Builder.getAllocator().CopyString(
5419 Builder.AddTypedTextChunk(Builder.getAllocator().CopyString(
5425 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
5428 Builder.AddInformativeChunk(
5429 Builder.getAllocator().CopyString(
5432 Builder.AddTextChunk(
5433 Builder.getAllocator().CopyString(
5435 Builder.AddPlaceholderChunk(Builder.getAllocator().CopyString(
5438 Builder.AddTypedTextChunk(
5439 Builder.getAllocator().CopyString(
5441 Builder.AddPlaceholderChunk(Builder.getAllocator().CopyString(
5447 Results.AddResult(CodeCompletionResult(Builder.TakeString(), SuperMethod,
5901 CodeCompletionBuilder Builder(Results.getAllocator(),
5904 Builder.AddTypedTextChunk(Builder.getAllocator().CopyString(
5906 Results.AddResult(Builder.TakeString());
5914 Builder.AddInformativeChunk(Builder.getAllocator().CopyString(
5923 Builder.AddTypedTextChunk(Builder.getAllocator().CopyString( Accumulator));
5924 Results.AddResult(Builder.TakeString());
6272 CodeCompletionBuilder Builder(Allocator, Results.getCodeCompletionTUInfo(),
6276 Builder.AddResultTypeChunk(GetCompletionTypeString(PropertyType, Context,
6278 Builder.AddTypedTextChunk(Allocator.CopyString(NameWithPrefix));
6279 Results.AddResult(Result(Builder.TakeString(), Priority,
6389 CodeCompletionBuilder &Builder) {
6390 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6393 Builder.AddTextChunk(Builder.getAllocator().CopyString(Quals));
6394 Builder.AddTextChunk(GetCompletionTypeString(Type, Context, Policy,
6395 Builder.getAllocator()));
6396 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6426 // Builder that will create each code completion.
6429 CodeCompletionBuilder Builder(Allocator, Results.getCodeCompletionTUInfo());
6469 Context, Policy, Builder);
6471 Builder.AddTypedTextChunk(Key);
6472 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern,
6489 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6490 Builder.AddTextChunk("BOOL");
6491 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6494 Builder.AddTypedTextChunk(
6496 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern,
6508 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6509 Builder.AddTextChunk("void");
6510 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6513 Builder.AddTypedTextChunk(
6515 Builder.AddTypedTextChunk(":");
6517 Context, Policy, Builder);
6518 Builder.AddTextChunk(Key);
6519 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern,
6561 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6562 Builder.AddTextChunk("NSUInteger");
6563 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6566 Builder.AddTypedTextChunk(
6568 Results.AddResult(Result(Builder.TakeString(),
6584 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6585 Builder.AddTextChunk("id");
6586 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6589 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6590 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6591 Builder.AddTextChunk("NSUInteger");
6592 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6593 Builder.AddTextChunk("index");
6594 Results.AddResult(Result(Builder.TakeString(), IndexedGetterPriority,
6611 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6612 Builder.AddTextChunk("NSArray *");
6613 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6616 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6617 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6618 Builder.AddTextChunk("NSIndexSet *");
6619 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6620 Builder.AddTextChunk("indexes");
6621 Results.AddResult(Result(Builder.TakeString(), IndexedGetterPriority,
6636 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6637 Builder.AddTextChunk("void");
6638 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6641 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6642 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6643 Builder.AddPlaceholderChunk("object-type");
6644 Builder.AddTextChunk(" **");
6645 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6646 Builder.AddTextChunk("buffer");
6647 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
6648 Builder.AddTypedTextChunk("range:");
6649 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6650 Builder.AddTextChunk("NSRange");
6651 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6652 Builder.AddTextChunk("inRange");
6653 Results.AddResult(Result(Builder.TakeString(), IndexedGetterPriority,
6670 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6671 Builder.AddTextChunk("void");
6672 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6675 Builder.AddTypedTextChunk("insertObject:");
6676 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6677 Builder.AddPlaceholderChunk("object-type");
6678 Builder.AddTextChunk(" *");
6679 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6680 Builder.AddTextChunk("object");
6681 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
6682 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6683 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6684 Builder.AddPlaceholderChunk("NSUInteger");
6685 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6686 Builder.AddTextChunk("index");
6687 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority,
6702 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6703 Builder.AddTextChunk("void");
6704 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6707 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6708 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6709 Builder.AddTextChunk("NSArray *");
6710 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6711 Builder.AddTextChunk("array");
6712 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
6713 Builder.AddTypedTextChunk("atIndexes:");
6714 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6715 Builder.AddPlaceholderChunk("NSIndexSet *");
6716 Builder
6717 Builder.AddTextChunk("indexes");
6718 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority,
6730 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6731 Builder.AddTextChunk("void");
6732 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6735 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6736 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6737 Builder.AddTextChunk("NSUInteger");
6738 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6739 Builder.AddTextChunk("index");
6740 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority,
6752 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6753 Builder.AddTextChunk("void");
6754 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6757 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6758 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6759 Builder.AddTextChunk("NSIndexSet *");
6760 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6761 Builder.AddTextChunk("indexes");
6762 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority,
6778 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6779 Builder.AddTextChunk("void");
6780 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6783 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6784 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6785 Builder.AddPlaceholderChunk("NSUInteger");
6786 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6787 Builder.AddTextChunk("index");
6788 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
6789 Builder.AddTypedTextChunk("withObject:");
6790 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6791 Builder.AddTextChunk("id");
6792 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6793 Builder.AddTextChunk("object");
6794 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority,
6811 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6812 Builder.AddTextChunk("void");
6813 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6816 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName1 + ":"));
6817 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6818 Builder.AddPlaceholderChunk("NSIndexSet *");
6819 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6820 Builder.AddTextChunk("indexes");
6821 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
6822 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName2 + ":"));
6823 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6824 Builder.AddTextChunk("NSArray *");
6825 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6826 Builder.AddTextChunk("array");
6827 Results.AddResult(Result(Builder.TakeString(), IndexedSetterPriority,
6845 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6846 Builder.AddTextChunk("NSEnumerator *");
6847 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6850 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName));
6851 Results.AddResult(Result(Builder.TakeString(), UnorderedGetterPriority,
6863 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6864 Builder.AddPlaceholderChunk("object-type");
6865 Builder.AddTextChunk(" *");
6866 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6869 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6870 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6872 Builder.AddPlaceholderChunk("object-type");
6873 Builder.AddTextChunk(" *");
6875 Builder.AddTextChunk(GetCompletionTypeString(ReturnType, Context,
6877 Builder.getAllocator()));
6879 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6880 Builder.AddTextChunk("object");
6881 Results.AddResult(Result(Builder.TakeString(), UnorderedGetterPriority,
6894 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6895 Builder.AddTextChunk("void");
6896 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6899 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6900 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6901 Builder.AddPlaceholderChunk("object-type");
6902 Builder.AddTextChunk(" *");
6903 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6904 Builder.AddTextChunk("object");
6905 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority,
6916 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6917 Builder.AddTextChunk("void");
6918 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6921 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6922 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6923 Builder.AddTextChunk("NSSet *");
6924 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6925 Builder.AddTextChunk("objects");
6926 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority,
6938 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6939 Builder.AddTextChunk("void");
6940 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6943 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6944 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6945 Builder.AddPlaceholderChunk("object-type");
6946 Builder.AddTextChunk(" *");
6947 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6948 Builder.AddTextChunk("object");
6949 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority,
6960 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6961 Builder.AddTextChunk("void");
6962 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6965 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6966 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6967 Builder.AddTextChunk("NSSet *");
6968 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6969 Builder.AddTextChunk("objects");
6970 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority,
6981 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6982 Builder.AddTextChunk("void");
6983 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6986 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName + ":"));
6987 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
6988 Builder.AddTextChunk("NSSet *");
6989 Builder.AddChunk(CodeCompletionString::CK_RightParen);
6990 Builder.AddTextChunk("objects");
6991 Results.AddResult(Result(Builder.TakeString(), UnorderedSetterPriority,
7010 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
7011 Builder.AddTextChunk("NSSet *");
7012 Builder.AddChunk(CodeCompletionString::CK_RightParen);
7015 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName));
7016 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern,
7032 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
7033 Builder.AddTextChunk("BOOL");
7034 Builder.AddChunk(CodeCompletionString::CK_RightParen);
7037 Builder.AddTypedTextChunk(Allocator.CopyString(SelectorName));
7038 Results.AddResult(Result(Builder.TakeString(), CCP_CodePattern,
7098 CodeCompletionBuilder Builder(Results.getAllocator(),
7108 Builder);
7114 Builder.AddTypedTextChunk(Builder.getAllocator().CopyString(
7124 Builder.AddTypedTextChunk(":");
7126 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7127 Builder.AddTypedTextChunk(
7128 Builder.getAllocator().CopyString(Sel.getNameForSlot(I) + ":"));
7144 Builder);
7147 Builder.AddTextChunk(Builder.getAllocator().CopyString( Id->getName()));
7152 Builder.AddChunk(CodeCompletionString::CK_Comma);
7153 Builder.AddTextChunk("...");
7158 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7159 Builder.AddChunk(CodeCompletionString::CK_LeftBrace);
7160 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
7163 Builder.AddTextChunk("return");
7164 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7165 Builder.AddPlaceholderChunk("expression");
7166 Builder.AddChunk(CodeCompletionString::CK_SemiColon);
7168 Builder.AddPlaceholderChunk("statements");
7170 Builder.AddChunk(CodeCompletionString::CK_VerticalSpace);
7171 Builder.AddChunk(CodeCompletionString::CK_RightBrace);
7178 Results.AddResult(Result(Builder.TakeString(), Method, Priority));
7262 CodeCompletionBuilder Builder(Results.getAllocator(),
7264 Builder.AddTypedTextChunk(Builder.getAllocator().CopyString(
7266 Results.AddResult(Builder.TakeString());
7295 CodeCompletionBuilder Builder(Results.getAllocator(),
7297 Builder.AddTypedTextChunk("if");
7298 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7299 Builder.AddPlaceholderChunk("condition");
7300 Results.AddResult(Builder.TakeString());
7303 Builder.AddTypedTextChunk("ifdef");
7304 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7305 Builder.AddPlaceholderChunk("macro");
7306 Results.AddResult(Builder.TakeString());
7309 Builder.AddTypedTextChunk("ifndef");
7310 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7311 Builder.AddPlaceholderChunk("macro");
7312 Results.AddResult(Builder.TakeString());
7316 Builder.AddTypedTextChunk("elif");
7317 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7318 Builder.AddPlaceholderChunk("condition");
7319 Results.AddResult(Builder.TakeString());
7322 Builder.AddTypedTextChunk("else");
7323 Results.AddResult(Builder.TakeString());
7326 Builder.AddTypedTextChunk("endif");
7327 Results.AddResult(Builder.TakeString());
7331 Builder.AddTypedTextChunk("include");
7332 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7333 Builder.AddTextChunk("\"");
7334 Builder.AddPlaceholderChunk("header");
7335 Builder.AddTextChunk("\"");
7336 Results.AddResult(Builder.TakeString());
7339 Builder.AddTypedTextChunk("include");
7340 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7341 Builder.AddTextChunk("<");
7342 Builder.AddPlaceholderChunk("header");
7343 Builder.AddTextChunk(">");
7344 Results.AddResult(Builder.TakeString());
7347 Builder.AddTypedTextChunk("define");
7348 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7349 Builder.AddPlaceholderChunk("macro");
7350 Results.AddResult(Builder.TakeString());
7353 Builder.AddTypedTextChunk("define");
7354 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7355 Builder.AddPlaceholderChunk("macro");
7356 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
7357 Builder.AddPlaceholderChunk("args");
7358 Builder.AddChunk(CodeCompletionString::CK_RightParen);
7359 Results.AddResult(Builder.TakeString());
7362 Builder.AddTypedTextChunk("undef");
7363 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7364 Builder.AddPlaceholderChunk("macro");
7365 Results.AddResult(Builder.TakeString());
7368 Builder.AddTypedTextChunk("line");
7369 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7370 Builder.AddPlaceholderChunk("number");
7371 Results.AddResult(Builder.TakeString());
7374 Builder.AddTypedTextChunk("line");
7375 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7376 Builder.AddPlaceholderChunk("number");
7377 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7378 Builder.AddTextChunk("\"");
7379 Builder.AddPlaceholderChunk("filename");
7380 Builder.AddTextChunk("\"");
7381 Results.AddResult(Builder.TakeString());
7384 Builder.AddTypedTextChunk("error");
7385 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7386 Builder.AddPlaceholderChunk("message");
7387 Results.AddResult(Builder.TakeString());
7390 Builder.AddTypedTextChunk("pragma");
7391 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7392 Builder.AddPlaceholderChunk("arguments");
7393 Results.AddResult(Builder.TakeString());
7397 Builder.AddTypedTextChunk("import");
7398 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7399 Builder.AddTextChunk("\"");
7400 Builder.AddPlaceholderChunk("header");
7401 Builder.AddTextChunk("\"");
7402 Results.AddResult(Builder.TakeString());
7405 Builder.AddTypedTextChunk("import");
7406 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7407 Builder.AddTextChunk("<");
7408 Builder.AddPlaceholderChunk("header");
7409 Builder.AddTextChunk(">");
7410 Results.AddResult(Builder.TakeString());
7414 Builder.AddTypedTextChunk("include_next");
7415 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7416 Builder.AddTextChunk("\"");
7417 Builder.AddPlaceholderChunk("header");
7418 Builder.AddTextChunk("\"");
7419 Results.AddResult(Builder.TakeString());
7422 Builder.AddTypedTextChunk("include_next");
7423 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7424 Builder.AddTextChunk("<");
7425 Builder.AddPlaceholderChunk("header");
7426 Builder.AddTextChunk(">");
7427 Results.AddResult(Builder.TakeString());
7430 Builder.AddTypedTextChunk("warning");
7431 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7432 Builder.AddPlaceholderChunk("message");
7433 Results.AddResult(Builder.TakeString());
7460 CodeCompletionBuilder Builder(Results.getAllocator(),
7466 Builder.AddTypedTextChunk(Builder.getAllocator().CopyString(
7468 Results.AddResult(CodeCompletionResult(Builder.TakeString(),
7491 CodeCompletionBuilder Builder(Results.getAllocator(),
7493 Builder.AddTypedTextChunk("defined");
7494 Builder.AddChunk(CodeCompletionString::CK_HorizontalSpace);
7495 Builder.AddChunk(CodeCompletionString::CK_LeftParen);
7496 Builder.AddPlaceholderChunk("macro");
7497 Builder.AddChunk(CodeCompletionString::CK_RightParen);
7498 Results.AddResult(Builder.TakeString());
7526 ResultBuilder Builder(*this, Allocator, CCTUInfo,
7529 CodeCompletionDeclConsumer Consumer(Builder,
7536 AddMacroResults(PP, Builder, true);
7540 Builder.data(), Builder.data() + Builder.size());