Home | History | Annotate | Download | only in Sema

Lines Matching refs:ObjCDeclSpec

106                           ObjCDeclSpec &ODS,
119 Attributes |= ObjCDeclSpec::DQ_PR_weak;
121 bool isReadWrite = ((Attributes & ObjCDeclSpec::DQ_PR_readwrite) ||
123 !(Attributes & ObjCDeclSpec::DQ_PR_readonly));
126 bool isAssign = ((Attributes & ObjCDeclSpec::DQ_PR_assign) ||
128 !(Attributes & ObjCDeclSpec::DQ_PR_retain) &&
129 !(Attributes & ObjCDeclSpec::DQ_PR_strong) &&
130 !(Attributes & ObjCDeclSpec::DQ_PR_copy) &&
131 !(Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) &&
132 !(Attributes & ObjCDeclSpec::DQ_PR_weak)));
175 if (Attributes & ObjCDeclSpec::DQ_PR_readonly)
177 if (Attributes & ObjCDeclSpec::DQ_PR_readwrite)
179 if (Attributes & ObjCDeclSpec::DQ_PR_getter)
181 if (Attributes & ObjCDeclSpec::DQ_PR_setter)
183 if (Attributes & ObjCDeclSpec::DQ_PR_assign)
185 if (Attributes & ObjCDeclSpec::DQ_PR_retain)
187 if (Attributes & ObjCDeclSpec::DQ_PR_strong)
189 if (Attributes & ObjCDeclSpec::DQ_PR_weak)
191 if (Attributes & ObjCDeclSpec::DQ_PR_copy)
193 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained)
195 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)
197 if (Attributes & ObjCDeclSpec::DQ_PR_atomic)
244 if (Attributes & ObjCDeclSpec::DQ_PR_readonly)
246 if (Attributes & ObjCDeclSpec::DQ_PR_readwrite)
323 ObjCDeclSpec ProtocolPropertyODS;
324 // FIXME. Assuming that ObjCDeclSpec::ObjCPropertyAttributeKind
328 setPropertyAttributes((ObjCDeclSpec::ObjCPropertyAttributeKind)
344 if (Attributes & ObjCDeclSpec::DQ_PR_retain)
346 if (Attributes & ObjCDeclSpec::DQ_PR_strong)
348 if (Attributes & ObjCDeclSpec::DQ_PR_copy)
357 (Attributes & ObjCDeclSpec::DQ_PR_readwrite) &&
395 isAssign && !(Attributes & ObjCDeclSpec::DQ_PR_assign))
439 if (Attributes & ObjCDeclSpec::DQ_PR_readonly)
442 if (Attributes & ObjCDeclSpec::DQ_PR_getter)
445 if (Attributes & ObjCDeclSpec::DQ_PR_setter)
451 if (Attributes & ObjCDeclSpec::DQ_PR_retain)
454 if (Attributes & ObjCDeclSpec::DQ_PR_strong)
457 if (Attributes & ObjCDeclSpec::DQ_PR_weak)
460 if (Attributes & ObjCDeclSpec::DQ_PR_copy)
463 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained)
470 if (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)
476 if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained)
1769 (Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
1773 unsigned rel = (ObjCDeclSpec::DQ_PR_unsafe_unretained |
1774 ObjCDeclSpec::DQ_PR_copy |
1775 ObjCDeclSpec::DQ_PR_retain |
1776 ObjCDeclSpec::DQ_PR_strong |
1777 ObjCDeclSpec::DQ_PR_weak |
1778 ObjCDeclSpec::DQ_PR_assign);
1784 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
1785 (Attributes & (ObjCDeclSpec::DQ_PR_readwrite |
1786 ObjCDeclSpec::DQ_PR_assign |
1787 ObjCDeclSpec::DQ_PR_unsafe_unretained |
1788 ObjCDeclSpec::DQ_PR_copy |
1789 ObjCDeclSpec::DQ_PR_retain |
1790 ObjCDeclSpec::DQ_PR_strong))) {
1791 const char * which = (Attributes & ObjCDeclSpec::DQ_PR_readwrite) ?
1793 (Attributes & ObjCDeclSpec::DQ_PR_assign) ?
1795 (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) ?
1797 (Attributes & ObjCDeclSpec::DQ_PR_copy) ?
1800 Diag(Loc, (Attributes & (ObjCDeclSpec::DQ_PR_readwrite)) ?
1807 if ((Attributes & (ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy |
1808 ObjCDeclSpec::DQ_PR_retain | ObjCDeclSpec::DQ_PR_strong)) &&
1812 << (Attributes & ObjCDeclSpec::DQ_PR_weak ? "weak" :
1813 Attributes & ObjCDeclSpec::DQ_PR_copy ? "copy" : "retain (or strong)");
1814 Attributes &= ~(ObjCDeclSpec::DQ_PR_weak | ObjCDeclSpec::DQ_PR_copy |
1815 ObjCDeclSpec::DQ_PR_retain | ObjCDeclSpec::DQ_PR_strong);
1820 if (Attributes & ObjCDeclSpec::DQ_PR_assign) {
1821 if (Attributes & ObjCDeclSpec::DQ_PR_copy) {
1824 Attributes &= ~ObjCDeclSpec::DQ_PR_copy;
1826 if (Attributes & ObjCDeclSpec::DQ_PR_retain) {
1829 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
1831 if (Attributes & ObjCDeclSpec::DQ_PR_strong) {
1834 Attributes &= ~ObjCDeclSpec::DQ_PR_strong;
1837 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
1840 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
1842 } else if (Attributes & ObjCDeclSpec::DQ_PR_unsafe_unretained) {
1843 if (Attributes & ObjCDeclSpec::DQ_PR_copy) {
1846 Attributes &= ~ObjCDeclSpec::DQ_PR_copy;
1848 if (Attributes & ObjCDeclSpec::DQ_PR_retain) {
1851 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
1853 if (Attributes & ObjCDeclSpec::DQ_PR_strong) {
1856 Attributes &= ~ObjCDeclSpec::DQ_PR_strong;
1859 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
1862 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
1864 } else if (Attributes & ObjCDeclSpec::DQ_PR_copy) {
1865 if (Attributes & ObjCDeclSpec::DQ_PR_retain) {
1868 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
1870 if (Attributes & ObjCDeclSpec::DQ_PR_strong) {
1873 Attributes &= ~ObjCDeclSpec::DQ_PR_strong;
1875 if (Attributes & ObjCDeclSpec::DQ_PR_weak) {
1878 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
1881 else if ((Attributes & ObjCDeclSpec::DQ_PR_retain) &&
1882 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
1885 Attributes &= ~ObjCDeclSpec::DQ_PR_retain;
1887 else if ((Attributes & ObjCDeclSpec::DQ_PR_strong) &&
1888 (Attributes & ObjCDeclSpec::DQ_PR_weak)) {
1891 Attributes &= ~ObjCDeclSpec::DQ_PR_weak;
1894 if ((Attributes & ObjCDeclSpec::DQ_PR_atomic) &&
1895 (Attributes & ObjCDeclSpec::DQ_PR_nonatomic)) {
1898 Attributes &= ~ObjCDeclSpec::DQ_PR_atomic;
1903 if (!(Attributes & (ObjCDeclSpec::DQ_PR_assign | ObjCDeclSpec::DQ_PR_copy |
1904 ObjCDeclSpec::DQ_PR_unsafe_unretained |
1905 ObjCDeclSpec::DQ_PR_retain | ObjCDeclSpec::DQ_PR_strong |
1906 ObjCDeclSpec::DQ_PR_weak)) &&
1912 else if (!(Attributes & ObjCDeclSpec::DQ_PR_readonly)) {
1937 if (!(Attributes & ObjCDeclSpec::DQ_PR_copy)
1938 &&!(Attributes & ObjCDeclSpec::DQ_PR_readonly)
1943 (Attributes & ObjCDeclSpec::DQ_PR_retain) &&
1944 !(Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
1945 !(Attributes & ObjCDeclSpec::DQ_PR_strong) &&
1949 if ((Attributes & ObjCDeclSpec::DQ_PR_readonly) &&
1950 (Attributes & ObjCDeclSpec::DQ_PR_setter))