Lines Matching full:identifier
98 /// '@' 'class' identifier-list ';'
102 ConsumeToken(); // the identifier "class"
109 if (Tok.isNot(tok::identifier)) {
110 Diag(Tok, diag::err_expected) << tok::identifier;
156 /// '@' 'interface' identifier objc-superclass[opt]
163 /// '@' 'interface' identifier '(' identifier[opt] ')'
169 /// ':' identifier
184 ConsumeToken(); // the "interface" identifier
195 if (Tok.isNot(tok::identifier)) {
197 << tok::identifier; // missing class or category name.
219 if (Tok.is(tok::identifier)) {
225 << tok::identifier; // missing category name.
276 if (Tok.isNot(tok::identifier)) {
278 << tok::identifier; // missing super class name.
403 // Eat the identifier.
498 ConsumeToken(); // the "end" identifier
520 /// getter '=' identifier
521 /// setter '=' identifier ':'
545 // If this is not an identifier at all, bail out early.
656 /// identifier
682 Tok.setKind(tok::identifier);
689 case tok::identifier:
768 // valid tokens following an 'in'; such as an identifier, unary operators,
770 return (getLangOpts().ObjC2 && Tok.is(tok::identifier) &&
794 if (Tok.isNot(tok::identifier))
902 Tok.is(tok::identifier)) {
937 /// objc-selector ':' objc-type-name objc-keyword-attributes[opt] identifier
938 /// objc-selector ':' objc-keyword-attributes[opt] identifier
939 /// ':' objc-type-name objc-keyword-attributes[opt] identifier
940 /// ':' objc-keyword-attributes[opt] identifier
1057 if (Tok.isNot(tok::identifier)) {
1059 << tok::identifier; // missing argument name.
1065 ConsumeToken(); // Eat the identifier.
1149 /// '<' identifier-list '>'
1170 if (Tok.isNot(tok::identifier)) {
1171 Diag(Tok, diag::err_expected) << tok::identifier;
1342 /// \@protocol identifier
1348 /// \@protocol identifier-list ';'
1350 /// "\@protocol identifier ;" should be resolved as "\@protocol
1351 /// identifier-list ;": objc-interface-decl-list may not start with a
1358 ConsumeToken(); // the "protocol" identifier
1368 if (Tok.isNot(tok::identifier)) {
1369 Diag(Tok, diag::err_expected) << tok::identifier; // missing protocol name.
1391 if (Tok.isNot(tok::identifier)) {
1392 Diag(Tok, diag::err_expected) << tok::identifier;
1398 ConsumeToken(); // the identifier
1439 /// @implementation identifier objc-superclass[opt]
1443 /// @implementation identifier ( identifier )
1449 ConsumeToken(); // the "implementation" identifier
1460 if (Tok.isNot(tok::identifier)) {
1462 << tok::identifier; // missing class or category name.
1482 if (Tok.is(tok::identifier)) {
1487 << tok::identifier; // missing category name.
1512 if (Tok.isNot(tok::identifier)) {
1514 << tok::identifier; // missing super class name.
1558 ConsumeToken(); // the "end" identifier
1612 if (Tok.isNot(tok::identifier)) {
1613 Diag(Tok, diag::err_expected) << tok::identifier;
1618 if (Tok.isNot(tok::identifier)) {
1619 Diag(Tok, diag::err_expected) << tok::identifier;
1637 /// identifier
1638 /// identifier '=' identifier
1652 if (Tok.isNot(tok::identifier)) {
1670 if (Tok.isNot(tok::identifier)) {
1671 Diag(Tok, diag::err_expected) << tok::identifier;
1691 /// identifier
1692 /// property-list ',' identifier
1705 if (Tok.isNot(tok::identifier)) {
1706 Diag(Tok, diag::err_expected) << tok::identifier;
2172 if (Tok.is(tok::identifier) || Tok.is(tok::coloncolon) ||
2245 return GetLookAheadToken(1).is(tok::identifier) &&
2246 GetLookAheadToken(2).is(tok::identifier);
2250 if (!getLangOpts().ObjC1 || !NextToken().is(tok::identifier) ||
2259 else if (Tok.is(tok::identifier))
2268 if (Tok.is(tok::identifier))
2306 if (Tok.is(tok::identifier) && Tok.getIdentifierInfo() == Ident_super &&
2329 if (Tok.is(tok::identifier)) {
2536 Diag(Tok, diag::err_expected) << tok::identifier; // missing selector name.
2547 << (Tok.is(tok::identifier) ? tok::colon : tok::r_square);
2792 if (Tok.isNot(tok::identifier))
2793 return ExprError(Diag(Tok, diag::err_expected) << tok::identifier);
2831 return ExprError(Diag(Tok, diag::err_expected) << tok::identifier);