|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/Basic/IdentifierTable.h 119 : TokenID(tok::identifier), ObjCOrBuiltinID(0), HasMacro(false),
197 assert(TokenID != tok::identifier && "Already at tok::identifier");
198 TokenID = tok::identifier;
202 assert(TokenID == tok::identifier && "Should be at tok::identifier");
tools/clang/include/clang/Basic/TokenKinds.h 72 return (K == tok::identifier) || (K == tok::raw_identifier);
tools/clang/include/clang/Lex/Preprocessor.h 93 assert(Kind != tok::identifier &&
99 TokenValue(IdentifierInfo *II) : Kind(tok::identifier), II(II) {}
tools/clang/lib/ARCMigrate/ObjCMT.cpp 1162 return II->getTokenID() == tok::identifier;
tools/clang/lib/Basic/Diagnostic.cpp 751 case tok::identifier:
tools/clang/lib/Basic/IdentifierTable.cpp 173 Table.get(Keyword, AddResult == KS_Future ? tok::identifier : TokenCode);
tools/clang/lib/Format/ContinuationIndenter.cpp 492 ((Previous.is(tok::identifier) && Previous.TokenText == "endl") ||
978 if (Current.is(tok::identifier) && Current.Next &&
1048 if (NextNonComment->is(tok::identifier) && NextNonComment->FakeRParens == 0 &&
1201 else if (!Current.isOneOf(tok::comment, tok::identifier, tok::hash) &&
1735 if (!Tok || !Tok->is(tok::identifier))
tools/clang/lib/Format/FormatToken.h 332 (endsSequence(tok::identifier, tok::kw_if) && AllowConstexprMacro);
895 return Tok.is(tok::identifier) &&
950 return Tok.is(tok::identifier) &&
tools/clang/lib/Format/FormatTokenLexer.cpp 154 if (!Hash->is(tok::hash) || !Identifier->is(tok::identifier))
156 Hash->Tok.setKind(tok::identifier);
233 At->Tok.setKind(tok::identifier);
248 if (!Identifier->isOneOf(tok::r_square, tok::identifier) ||
264 if (!Identifier->is(tok::identifier))
766 FormatTok->Tok.setKind(tok::identifier);
771 FormatTok->Tok.setKind(tok::identifier);
817 } else if (FormatTok->is(tok::identifier)) {
tools/clang/lib/Format/SortJavaScriptImports.cpp 387 if (Current->isNot(tok::identifier))
396 if (Current->is(tok::identifier)) {
412 if (!Current->isOneOf(tok::identifier, tok::kw_default))
424 if (!Current->isOneOf(tok::identifier, tok::kw_default))
tools/clang/lib/Format/TokenAnnotator.cpp 186 (Line.startsWith(Keywords.kw_type, tok::identifier) ||
188 tok::identifier))) {
202 (Left->Previous->endsSequence(tok::identifier,
214 (!Left->Previous || !Left->Previous->is(tok::identifier))) {
264 if (PrevPrev && PrevPrev->is(tok::identifier) &&
266 CurrentToken->is(tok::identifier) && Next->isNot(tok::equal)) {
402 AttrTok->Next->startsSequence(tok::identifier, tok::l_paren))
420 if (AttrTok->startsSequence(tok::kw_using, tok::identifier, tok::colon))
422 if (AttrTok->isNot(tok::identifier))
429 AttrTok->startsSequence(tok::identifier, tok::identifier) ||
429 AttrTok->startsSequence(tok::identifier, tok::identifier) ||
430 AttrTok->startsSequence(tok::r_paren, tok::identifier))
536 tok::identifier) &&
629 CurrentToken->endsSequence(tok::colon, tok::identifier,
796 Tok->Previous->is(tok::identifier) && Tok->Previous->is(TT_Unknown);
849 CurrentToken->isOneOf(tok::kw_constexpr, tok::identifier))
998 case tok::identifier:
1137 CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier,
1156 if (CurrentToken && CurrentToken->is(tok::identifier)) {
1300 (Line.startsWith(Keywords.kw_type, tok::identifier) ||
1302 tok::identifier))) &&
1361 (Current.Previous->isOneOf(tok::identifier, tok::kw_namespace,
1450 if (BeforeParen->is(tok::identifier) &&
1497 } else if (Current.isOneOf(tok::identifier, tok::kw_const,
1530 if (Tok.isNot(tok::identifier) || !Tok.Previous)
1548 bool IsPPKeyword = PreviousNotConst->is(tok::identifier) &&
1564 PreviousNotConst->isOneOf(tok::identifier, tok::kw_auto)) ||
1651 if (Tok.Next->isOneOf(tok::identifier, tok::kw_this))
1663 !Tok.Next->Next->isOneOf(tok::identifier, tok::numeric_constant))
1668 if (!Prev->isOneOf(tok::kw_const, tok::identifier, tok::coloncolon))
1776 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier))
2121 if (!Next->is(tok::identifier))
2342 if (Right.is(tok::identifier) && Right.Next && Right.Next->is(TT_DictLiteral))
2443 Left.Previous->isOneOf(tok::identifier, tok::greater))
2547 Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant,
2567 return Left.Tok.isLiteral() || (Left.is(tok::identifier) && Left.Previous &&
2663 (Left.is(tok::identifier) || Left.isFunctionLikeKeyword() ||
2674 if ((Left.isOneOf(tok::identifier, tok::greater, tok::r_square,
2682 if (Right.is(tok::hash) && Left.is(tok::identifier) && Left.TokenText == "L")
2777 if (Left.is(tok::identifier) && Keywords.IsJavaScriptIdentifier(Left) &&
2811 (Left.Previous->Tok.is(tok::identifier) ||
2943 (Left.is(tok::identifier) || Left.is(tok::kw_this)))
2945 if (Right.is(tok::coloncolon) && Left.is(tok::identifier))
3006 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export,
3336 Right.isOneOf(tok::identifier, tok::string_literal))
3342 if (Left.is(tok::identifier) && Right.is(TT_TemplateString)) {
3429 if (Right.is(TT_SelectorName) || (Right.is(tok::identifier) && Right.Next &&
3483 if (Left.is(tok::identifier) && Right.is(tok::string_literal))
3486 if (Right.is(tok::identifier) && Right.Next && Right.Next->is(TT_DictLiteral))
3532 Right.isOneOf(tok::identifier, tok::kw_const)) ||
tools/clang/lib/Format/UnwrappedLineParser.cpp 464 (NextTok->is(tok::identifier) &&
487 case tok::identifier:
886 return FormatTok->is(tok::identifier) &&
1082 case tok::identifier:
1298 case tok::identifier: {
1442 case tok::identifier:
1511 (Previous->isOneOf(tok::identifier, tok::kw_operator, tok::kw_new,
1541 if (FormatTok->is(tok::identifier))
1710 case tok::identifier:
1767 if (FormatTok->Tok.isOneOf(tok::kw_constexpr, tok::identifier))
1813 while (FormatTok->is(tok::identifier)) {
1884 while (FormatTok->isOneOf(tok::identifier, tok::coloncolon, tok::kw_inline,
2076 if (FormatTok->is(tok::identifier)) {
2080 if (Style.isCpp() && FormatTok->is(tok::identifier))
2184 while (FormatTok->isOneOf(tok::identifier, tok::coloncolon, tok::hashhash,
2202 FormatTok->is(tok::identifier) &&
2249 assert(FormatTok->Tok.isOneOf(tok::l_paren, tok::identifier) &&
tools/clang/lib/Format/UsingDeclarationsSorter.cpp 100 while (Tok && Tok->is(tok::identifier)) {
tools/clang/lib/Format/WhitespaceManager.cpp 497 if (!Current || !Current->is(tok::identifier))
tools/clang/lib/Frontend/Rewrite/InclusionRewriter.cpp 372 if (RawToken.is(tok::identifier))
tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp 129 if (RawTokens[CurRawTok].is(tok::identifier)) {
135 RawTokens[CurRawTok+1].is(tok::identifier) &&
tools/clang/lib/Lex/PPMacroExpansion.cpp 1153 assert(Tok.is(tok::identifier));
1621 } else if (II->getTokenID() != tok::identifier ||
1658 return Tok.is(tok::identifier);
1777 Tok.setKind(tok::identifier);
1785 Tok.setKind(tok::identifier);
tools/clang/lib/Lex/Pragma.cpp 946 if (Tok.isNot(tok::identifier)) {
1031 if (Tok.isNot(tok::identifier)) {
1172 if (Tok.isNot(tok::identifier)) {
tools/clang/lib/Lex/Preprocessor.cpp 723 Identifier.setKind(tok::identifier);
939 case tok::identifier:
1212 if (ModuleImportExpectsIdentifier && Result.getKind() == tok::identifier) {
tools/clang/lib/Lex/TokenConcatenation.cpp 73 TokenInfo[tok::identifier ] |= aci_custom;
179 PrevKind = tok::identifier; // Language keyword or named operator.
244 case tok::identifier: // id+id or id+number or id+L"foo".
tools/clang/lib/Lex/TokenLexer.cpp 617 return FirstTok.is(tok::identifier) &&
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp 813 if (Tok.is(tok::identifier)) {
824 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype)) {
880 !PreviousToken.isOneOf(tok::identifier, tok::greater,
1129 if (Tok.is(tok::identifier)) {
tools/clang/lib/Parse/ParseDecl.cpp 293 assert(Tok.is(tok::identifier) && "expected an identifier");
342 Tok.setKind(tok::identifier);
345 if (Tok.is(tok::identifier)) {
374 Tok.setKind(tok::identifier);
386 } else if (Tok.is(tok::identifier) &&
552 if (!Tok.is(tok::identifier)) {
609 if (!Tok.is(tok::identifier)) {
687 if (!IsString && Tok.getKind() != tok::identifier &&
1010 if (Tok.isNot(tok::identifier)) {
1051 if (Tok.isNot(tok::identifier)) {
1129 Tok.is(tok::identifier)) {
1250 if (Tok.isNot(tok::identifier)) {
1352 if (Tok.isNot(tok::identifier)) {
1367 if (Tok.is(tok::identifier)) {
1387 if (Tok.is(tok::identifier))
1572 if (Tok.isNot(tok::identifier)) {
1573 Diag(Tok, diag::err_expected) << tok::identifier;
1594 if (Tok.isNot(tok::identifier)) {
1595 Diag(Tok, diag::err_expected) << tok::identifier;
1879 case tok::identifier:
1907 case tok::identifier: // Possible virt-specifier.
2562 assert(Tok.is(tok::identifier) && "should have identifier");
2890 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype,
2914 } else if (AfterScope.is(tok::identifier)) {
2919 if (Next.isOneOf(tok::star, tok::amp, tok::ampamp, tok::identifier,
3060 Tok.setKind(tok::identifier);
3204 if (Next.isNot(tok::identifier))
3297 case tok::identifier: {
3308 if (!getLangOpts().DeclSpecKeyword && Tok.is(tok::identifier) &&
3336 if (!Tok.is(tok::identifier))
3794 Tok.setKind(tok::identifier);
4207 if (!Tok.is(tok::identifier)) {
4208 Diag(Tok, diag::err_expected) << tok::identifier;
4338 if (Spec.isSet() && Tok.isNot(tok::identifier)) {
4339 Diag(Tok, diag::err_expected) << tok::identifier;
4352 if (Tok.isNot(tok::identifier) && Tok.isNot(tok::l_brace) &&
4354 Diag(Tok, diag::err_expected_either) << tok::identifier << tok::l_brace;
4364 if (Tok.is(tok::identifier)) {
4540 NextToken().is(tok::identifier))
4658 if (Tok.isNot(tok::identifier)) {
4659 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
4702 if (Tok.is(tok::identifier)) {
4833 case tok::identifier: // foo::bar
4842 if (Tok.is(tok::identifier))
4967 case tok::identifier: // foo::bar
4980 if (Tok.is(tok::identifier))
5162 if (Tok.is(tok::identifier)) {
5216 else if (Tok.is(tok::identifier) ||
5217 (Tok.is(tok::annot_cxxscope) && NextToken().is(tok::identifier))) {
5528 (Tok.is(tok::identifier) &&
5809 if (Tok.isOneOf(tok::identifier, tok::kw_operator, tok::annot_template_id,
5866 } else if (Tok.is(tok::identifier) && D.mayHaveIdentifier()) {
5874 } else if (Tok.is(tok::identifier) && !D.mayHaveIdentifier()) {
5987 << tok::identifier << tok::l_paren;
6043 if (!(NextToken().is(tok::identifier) &&
6058 if (Tok.is(tok::identifier)) {
6066 SkipUntil(tok::r_square, tok::comma, tok::identifier,
6070 else if (Tok.isNot(tok::identifier))
6075 if (Tok.isNot(tok::identifier)) {
6076 Diag(Tok, diag::err_expected) << tok::identifier;
6364 GetLookAheadToken(4).is(tok::identifier) &&
6458 && Tok.is(tok::identifier)
6503 if (Tok.isNot(tok::identifier)) {
6504 Diag(Tok, diag::err_expected) << tok::identifier;
7061 case tok::identifier:
7095 case tok::identifier:
tools/clang/lib/Parse/ParseDeclCXX.cpp 87 if (Tok.is(tok::identifier)) {
91 (NextToken().is(tok::identifier) ||
93 GetLookAheadToken(2).is(tok::identifier)))) {
123 Diag(Tok, diag::err_expected) << tok::identifier;
142 Diag(Tok, diag::err_expected_either) << tok::identifier << tok::l_brace;
299 if (Tok.isNot(tok::identifier)) {
543 if (Tok.isNot(tok::identifier)) {
623 Tok.is(tok::identifier) &&
637 /*AllowConstructorName=*/!(Tok.is(tok::identifier) &&
1160 if (Tok.isNot(tok::identifier)) {
1263 case tok::identifier: // struct foo {...} V ;
1451 Tok.isNot(tok::identifier) &&
1520 Tok.setKind(tok::identifier);
1555 if (Tok.isNot(tok::identifier) && Tok.isNot(tok::annot_template_id)) {
1556 Diag(Tok, diag::err_expected) << tok::identifier;
1599 if (Tok.is(tok::identifier)) {
2117 Tok.setKind(tok::identifier);
2209 if (!getLangOpts().CPlusPlus || Tok.isNot(tok::identifier))
2485 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw___super)) {
2492 else if (NextToken().is(tok::identifier))
3000 if (getLangOpts().CPlusPlus && Tok.is(tok::identifier)) {
3219 if (getLangOpts().CPlusPlus && Tok.is(tok::identifier)) {
3283 case tok::identifier:
3455 Tok.isOneOf(tok::identifier, tok::coloncolon)) {
3499 if (Tok.is(tok::identifier)) {
4069 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
4098 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
4205 assert(Tok.is(tok::identifier) && "Not a Microsoft attribute list");
4307 SkipUntil(tok::r_square, tok::identifier, StopAtSemi | StopBeforeMatch);
4308 if (Tok.isNot(tok::identifier)) // ']', but also eof
tools/clang/lib/Parse/ParseExpr.cpp 866 case tok::identifier: { // primary-expression: identifier
880 Tok.is(tok::identifier) &&
963 if (!Tok.is(tok::identifier))
987 if (Tok.isNot(tok::identifier) &&
1006 ((Tok.is(tok::identifier) &&
1020 ((Tok.is(tok::identifier) && !InMessageExpression) ||
1215 if (Tok.isNot(tok::identifier))
1216 return ExprError(Diag(Tok, diag::err_expected) << tok::identifier);
1544 case tok::identifier:
1998 if (Tok.is(tok::identifier)) {
2009 } else if (Tok.is(tok::identifier)) {
2154 if (Tok.isNot(tok::identifier)) {
2155 Diag(Tok, diag::err_expected) << tok::identifier;
2176 if (Tok.isNot(tok::identifier)) {
2177 Diag(Tok, diag::err_expected) << tok::identifier;
2511 if (!DeclaratorInfo.isInvalidType() && Tok.is(tok::identifier) &&
2598 if (Tok.is(tok::identifier) && getLangOpts().ObjC &&
3169 if (Tok.isNot(tok::identifier)) {
tools/clang/lib/Parse/ParseExprCXX.cpp 191 Diag(ConsumeToken(), diag::err_expected) << tok::identifier;
280 if (Tok.is(tok::identifier)) {
380 if (Tok.isNot(tok::identifier))
401 PP.LookAhead(1).is(tok::identifier)) {
415 << tok::identifier;
757 (Next.is(tok::identifier) && // [identifier]
765 if (Next.is(tok::identifier) && After.is(tok::identifier))
765 if (Next.is(tok::identifier) && After.is(tok::identifier))
942 if (Tok.is(tok::identifier)) {
1045 if (Tentative && Tok.is(tok::identifier) &&
1693 if (Tok.is(tok::identifier)) {
1723 if (!Tok.is(tok::identifier)) {
2093 case tok::identifier: // foo::bar
2573 } else if (Tok.is(tok::identifier)) {
2578 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
2698 if (Tok.is(tok::identifier)) {
2847 if (Tok.isNot(tok::identifier)) {
2868 if (Tok.isNot(tok::identifier) || NextToken().is(tok::coloncolon) ||
3169 (GetLookAheadToken(3).is(tok::identifier) &&
3170 GetLookAheadToken(4).is(tok::identifier))))) {
tools/clang/lib/Parse/ParseInit.cpp 50 case tok::identifier:
64 case tok::identifier: // designation: identifier ':'
163 if (Tok.is(tok::identifier)) {
196 if (Tok.isNot(tok::identifier)) {
241 if (Tok.is(tok::identifier) && Tok.getIdentifierInfo() == Ident_super &&
272 } else if (getLangOpts().ObjC && Tok.is(tok::identifier)) {
tools/clang/lib/Parse/ParseObjc.cpp 261 if (Tok.is(tok::identifier)) {
267 << tok::identifier; // missing category name.
469 if (!Tok.is(tok::identifier)) {
1026 Tok.setKind(tok::identifier);
1033 case tok::identifier:
1115 return (getLangOpts().ObjC && Tok.is(tok::identifier) &&
1150 if (Tok.isNot(tok::identifier))
1612 if (Tok.is(tok::identifier) &&
2148 if (Tok.is(tok::identifier)) {
2153 << tok::identifier; // missing category name.
2318 if (Tok.isNot(tok::identifier)) {
2896 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_typename,
2969 return GetLookAheadToken(1).is(tok::identifier) &&
2970 GetLookAheadToken(2).is(tok::identifier);
2974 if (!getLangOpts().ObjC || !NextToken().is(tok::identifier) ||
2982 else if (Tok.is(tok::identifier))
2991 if (Tok.is(tok::identifier))
3029 if (Tok.is(tok::identifier) && Tok.getIdentifierInfo() == Ident_super &&
3051 if (Tok.is(tok::identifier)) {
3273 Diag(Tok, diag::err_expected) << tok::identifier; // missing selector name.
3284 << (Tok.is(tok::identifier) ? tok::colon : tok::r_square);
3588 return ExprError(Diag(Tok, diag::err_expected) << tok::identifier);
tools/clang/lib/Parse/ParseOpenMP.cpp 210 case tok::identifier: // identifier
343 if (Tok.is(tok::identifier) &&
367 if (Tok.is(tok::identifier) &&
507 if (Tok.isNot(tok::identifier) && Tok.isNot(tok::kw_default)) {
692 if (Tok.isNot(tok::identifier))
830 if (!Tok.is(tok::identifier)) {
866 if (Tok.is(tok::identifier)) {
882 } while (Tok.is(tok::identifier));
919 if (!Tok.is(tok::identifier)) {
974 } while (Tok.is(tok::identifier));
1127 if (Tok.is(tok::identifier)) {
1293 SkipUntil(tok::comma, tok::identifier, tok::annot_pragma_openmp_end,
1339 SkipUntil(tok::comma, tok::identifier, tok::annot_pragma_openmp_end,
1647 SkipUntil(tok::comma, tok::identifier, tok::annot_pragma_openmp_end,
1922 << tok::identifier
1934 Diag(Tok, diag::err_expected) << tok::identifier;
2448 if (!Tok.is(tok::identifier))
2471 if (Tok.isNot(tok::identifier) && Tok.isNot(tok::kw_default)) {
2527 if (!Tok.isOneOf(tok::identifier, tok::kw_delete))
2594 Kind, Tok.is(tok::identifier) ? PP.getSpelling(Tok) : ""));
2618 if (Tok.is(tok::identifier) && PP.LookAhead(0).is(tok::l_paren)) {
2660 if (Tok.is(tok::identifier)) {
tools/clang/lib/Parse/ParsePragma.cpp 1029 IdentifierInfo *OptionInfo = Info->Option.is(tok::identifier)
1162 if (Tok.is(tok::identifier))
1443 if (Tok.isNot(tok::identifier)) {
1522 if (Tok.isNot(tok::identifier)) {
1666 } else if (Tok.is(tok::identifier)) {
1690 } else if (Tok.is(tok::identifier)) {
1758 if (Tok.isNot(tok::identifier)) {
1803 if (Tok.isNot(tok::identifier)) {
1849 if (Tok.isNot(tok::identifier) ||
1864 if (Tok.isNot(tok::identifier)) {
1946 if (Tok.is(tok::identifier)) {
2012 if (Tok.isNot(tok::identifier)) {
2025 if (Tok.isNot(tok::identifier)) {
2073 if (Tok.isNot(tok::identifier)) {
2082 if (Tok.isNot(tok::identifier)) {
2133 if (Tok.isNot(tok::identifier)) {
2148 if (Tok.isNot(tok::identifier)) {
2546 if (Tok.isNot(tok::identifier)) {
2625 if (Tok.isNot(tok::identifier)) {
2669 if (Tok.isNot(tok::identifier)) {
2675 while (Tok.is(tok::identifier)) {
2697 if (Tok.isNot(tok::identifier)) {
2872 if (Tok.isNot(tok::identifier)) {
2878 while (Tok.is(tok::identifier)) {
3037 while (Tok.is(tok::identifier)) {
3175 if (Tok.is(tok::identifier)) {
3190 if (!Tok.isOneOf(tok::identifier, tok::l_paren)) {
tools/clang/lib/Parse/ParseStmt.cpp 123 tok::identifier, tok::star, tok::amp);
125 nextTok.isOneOf(tok::l_paren, tok::identifier, tok::arrow, tok::period);
127 nextTok.isOneOf(tok::l_paren, tok::semi, tok::identifier, tok::l_brace);
177 case tok::identifier: {
200 if (Tok.isNot(tok::identifier))
483 if (Tok.is(tok::identifier) &&
598 assert(Tok.is(tok::identifier) && Tok.getIdentifierInfo() &&
1040 if (Tok.isNot(tok::identifier)) {
1041 Diag(Tok, diag::err_expected) << tok::identifier;
1573 assert(Tok.is(tok::identifier));
1684 } else if (getLangOpts().CPlusPlus && Tok.is(tok::identifier) &&
1957 if (Tok.is(tok::identifier)) {
1973 Diag(Tok, diag::err_expected) << tok::identifier;
2222 if ((Tok.is(tok::identifier) &&
tools/clang/lib/Parse/ParseStmtAsm.cpp 251 if (IdTok.isNot(tok::identifier))
834 if (Tok.isNot(tok::identifier)) {
835 Diag(Tok, diag::err_expected) << tok::identifier;
892 if (Tok.isNot(tok::identifier)) {
893 Diag(Tok, diag::err_expected) << tok::identifier;
tools/clang/lib/Parse/ParseTemplate.cpp 507 case tok::identifier:
542 if (Next.getKind() == tok::identifier)
635 if (Tok.is(tok::identifier)) {
643 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
709 } else if (Next.isOneOf(tok::identifier, tok::comma, tok::greater,
732 if (Tok.is(tok::identifier)) {
740 Diag(Tok.getLocation(), diag::err_expected) << tok::identifier;
1247 if (!Tok.is(tok::identifier) && !Tok.is(tok::coloncolon) &&
1273 if (Tok.is(tok::identifier)) {
1292 } else if (Tok.is(tok::identifier)) {
tools/clang/lib/Parse/ParseTentative.cpp 205 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype,
211 if (Tok.is(tok::identifier))
788 if (Tok.isOneOf(tok::coloncolon, tok::identifier))
874 if (Tok.is(tok::identifier))
967 if ((Tok.isOneOf(tok::identifier, tok::kw_operator) ||
968 (Tok.is(tok::annot_cxxscope) && (NextToken().is(tok::identifier) ||
974 else if (Tok.is(tok::identifier))
1181 tok::l_brace, tok::identifier);
1316 case tok::identifier: {
1324 if (!getLangOpts().ObjC && Next.is(tok::identifier))
1346 if (Tok.isNot(tok::identifier))
1358 assert(Tok.isNot(tok::identifier) &&
1370 if (Tok.is(tok::identifier))
1533 if (Tok.is(tok::annot_cxxscope) && NextToken().is(tok::identifier)) {
1542 bool isIdentifier = Tok.is(tok::identifier);
1583 if (Tok.isNot(tok::identifier))
1601 NextToken().isNot(tok::identifier));
1807 if (Tok.isNot(tok::identifier))
1944 if (SeenType && Tok.is(tok::identifier))
tools/clang/lib/Parse/Parser.cpp 215 if (Tok.is(tok::identifier))
220 << tok::identifier << Tok.getIdentifierInfo();
225 Diag(Tok, diag::err_expected) << tok::identifier;
599 case tok::identifier: {
660 case tok::identifier:
1568 assert(Tok.is(tok::identifier) || Tok.is(tok::annot_cxxscope));
1578 if (Tok.isNot(tok::identifier) || SS.isInvalid()) {
1732 assert(Tok.isNot(tok::identifier));
1738 Tok.setKind(tok::identifier);
1765 assert((Tok.is(tok::identifier) || Tok.is(tok::coloncolon) ||
1802 if (Tok.is(tok::identifier) || Tok.is(tok::annot_template_id) ||
1824 if (Tok.is(tok::identifier)) {
1881 if (Tok.is(tok::identifier)) {
1996 assert((Tok.is(tok::identifier) || Tok.is(tok::coloncolon) ||
2214 (Tok.is(tok::identifier) && Tok.getIdentifierInfo() == Ident_module)) &&
2299 assert((AtLoc.isInvalid() ? Tok.isOneOf(tok::kw_import, tok::identifier)
2378 if (!Tok.is(tok::identifier)) {
tools/clang/lib/Rewrite/HTMLRewrite.cpp 468 case tok::identifier:
476 if (Tok.isNot(tok::identifier))
tools/clang/lib/Sema/SemaDecl.cpp 1162 if ((NextToken.is(tok::identifier) ||
tools/clang/lib/Sema/SemaExprObjC.cpp 2041 Diag(receiverNameLoc, diag::err_expected_either) << tok::identifier
tools/clang/lib/Serialization/ASTReader.cpp 978 if (HasRevertedTokenIDToIdentifier && II->getTokenID() != tok::identifier)
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp 979 if (T.isNot(tok::identifier)) {
1221 if (It->isNot(tok::identifier)) {
tools/clang/lib/Tooling/Syntax/Tokens.cpp 244 if (Token->kind() == tok::TokenKind::identifier)
tools/clang/tools/extra/clang-tidy/bugprone/LambdaFunctionNameCheck.cpp 41 if (T.is(tok::identifier)) {
tools/clang/tools/extra/clang-tidy/bugprone/MacroParenthesesCheck.cpp 87 if (!Tok->isOneOf(tok::identifier, tok::raw_identifier, tok::coloncolon))
92 Tok->isOneOf(tok::identifier, tok::raw_identifier, tok::coloncolon,
183 if (!Tok.isOneOf(tok::identifier, tok::raw_identifier))
tools/clang/tools/extra/clangd/SourceCode.cpp 744 case tok::identifier:
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandMacro.cpp 75 if (T->kind() == tok::identifier)
83 if (T->endLocation() != Cursor || T->kind() != tok::identifier)
tools/clang/tools/libclang/CIndex.cpp 6756 CXTok.int_data[0] = Tok.is(tok::identifier)
tools/clang/tools/libclang/Indexing.cpp 267 bool isImport = (IncludeTok.is(tok::identifier) &&
tools/clang/unittests/Basic/SourceManagerTest.cpp 83 ASSERT_EQ(tok::identifier, toks[1].getKind());
tools/clang/unittests/Lex/LexerTest.cpp 116 ExpectedTokens.push_back(tok::identifier);
118 ExpectedTokens.push_back(tok::identifier);
130 ExpectedTokens.push_back(tok::identifier);
131 ExpectedTokens.push_back(tok::identifier);
142 ExpectedTokens.push_back(tok::identifier);
143 ExpectedTokens.push_back(tok::identifier);
144 ExpectedTokens.push_back(tok::identifier);
155 ExpectedTokens.push_back(tok::identifier);
156 ExpectedTokens.push_back(tok::identifier);
157 ExpectedTokens.push_back(tok::identifier);
168 ExpectedTokens.push_back(tok::identifier);
169 ExpectedTokens.push_back(tok::identifier);
170 ExpectedTokens.push_back(tok::identifier);
171 ExpectedTokens.push_back(tok::identifier);
182 ExpectedTokens.push_back(tok::identifier);
184 ExpectedTokens.push_back(tok::identifier);
197 ExpectedTokens.push_back(tok::identifier);
199 ExpectedTokens.push_back(tok::identifier);
210 ExpectedTokens.push_back(tok::identifier);
212 ExpectedTokens.push_back(tok::identifier);
223 ExpectedTokens.push_back(tok::identifier);
225 ExpectedTokens.push_back(tok::identifier);
237 ExpectedTokens.push_back(tok::identifier);
239 ExpectedTokens.push_back(tok::identifier);
240 ExpectedTokens.push_back(tok::identifier);
252 ExpectedTokens.push_back(tok::identifier);
253 ExpectedTokens.push_back(tok::identifier);
255 ExpectedTokens.push_back(tok::identifier);
268 ExpectedTokens.push_back(tok::identifier);
271 ExpectedTokens.push_back(tok::identifier);
273 ExpectedTokens.push_back(tok::identifier);
274 ExpectedTokens.push_back(tok::identifier);
275 ExpectedTokens.push_back(tok::identifier);
276 ExpectedTokens.push_back(tok::identifier);
458 std::vector<tok::TokenKind> ExpectedTokens{5, tok::identifier};
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp 252 AllOf(HasText("main"), Kind(tok::identifier)),
258 AllOf(HasText("a"), Kind(tok::identifier)),
332 AllOf(Kind(tok::identifier), RangeIs(Code.range("r2"))),
341 AllOf(Kind(tok::identifier), RangeIs(Code.range("r2"))),
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp 539 case clang::tok::TokenKind::identifier:
tools/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp 71 case tok::identifier: