Home | History | Annotate | Download | only in Parse

Lines Matching defs:Identifier

5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
117 /// nested-name-specifier identifier '::'
147 /// filled in with the leading identifier in the last component of the
162 assert(!LastII && "want last identifier but have already annotated scope");
192 Diag(ConsumeToken(), diag::err_expected) << tok::identifier;
269 // 'identifier <' after it.
281 if (Tok.is(tok::identifier)) {
282 // Consume the identifier.
379 // tok::identifier.
380 if (Tok.isNot(tok::identifier))
388 // nested-name-specifier identifier '::'
398 // If the token after the colon isn't an identifier, it's still an
401 PP.LookAhead(1).is(tok::identifier)) {
412 Token Identifier = Tok; // Stash away the identifier.
413 ConsumeToken(); // Eat the identifier, current token is now '::'.
415 << tok::identifier;
416 UnconsumeToken(Identifier); // Stick the identifier back.
444 // We have an identifier followed by a '::'. Lookup this name
446 Token Identifier = Tok;
458 // Identifier is not recognized as a nested name, but we can have
464 Tok = Identifier;
630 /// '::' identifier
716 /// identifier
717 /// '&' identifier
721 /// identifier initializer
722 /// '&' identifier initializer
765 (Next.is(tok::identifier) && // [identifier]
772 // [identifier identifier
773 if (Next.is(tok::identifier) && After.is(tok::identifier))
959 if (Tok.is(tok::identifier)) {
1062 if (Tentative && Tok.is(tok::identifier) &&
1073 // The '...' should appear before the identifier in an init-capture, and
1074 // after the identifier otherwise.
1689 /// nested-name-specifier identifier ::
1710 if (Tok.is(tok::identifier)) {
1742 if (!Tok.is(tok::identifier)) {
1920 /// [Clang] type-specifier-seq ref-qualifier[opt] '[' identifier-list ']'
2150 case tok::identifier: // foo::bar
2287 /// This routine is invoked when a '<' is encountered after an identifier or
2303 /// identifier that may be a template-name.
2361 Name = std::string(Id.Identifier->getName());
2367 Name += Id.Identifier->getName();
2441 Id.getKind() == UnqualifiedIdKind::IK_Identifier ? Id.Identifier
2608 // operator string-literal identifier
2647 } else if (Tok.is(tok::identifier)) {
2652 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
2713 /// Parse a C++ unqualified-id (or a C identifier), which describes the
2718 /// identifier
2774 // identifier
2776 if (Tok.is(tok::identifier)) {
2777 // Consume the identifier.
2783 // identifier and return.
2804 // We have parsed an identifier.
2949 if (Tok.isNot(tok::identifier)) {
2971 if (Tok.isNot(tok::identifier) || NextToken().is(tok::coloncolon) ||
2977 // Recover as if the tilde had been written before the identifier.
3278 (GetLookAheadToken(3).is(tok::identifier) &&
3279 GetLookAheadToken(4).is(tok::identifier))))) {
3567 if (Tok.isOneOf(tok::identifier, tok::annot_template_id) &&
3573 if (Tok.is(tok::identifier)) {