• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Format/

Lines Matching refs:identifier

29 /// Returns \c true if the token can be used as an identifier in
34 /// lexed as tok::kw_*, not tok::identifier, even for Objective-C.
38 /// invokes @selector(...)). So, we allow treat any identifier or
225 (Line.startsWith(Keywords.kw_type, tok::identifier) ||
227 tok::identifier))) {
241 (Left->Previous->endsSequence(tok::identifier,
253 (!Left->Previous || !Left->Previous->is(tok::identifier))) {
295 // 'identifier' '*' 'identifier' followed by not '=' -- this
303 if (PrevPrev && PrevPrev->is(tok::identifier) &&
305 CurrentToken->is(tok::identifier) && Next->isNot(tok::equal)) {
411 // `identifier[i]` is not an attribute.
412 if (Tok.Previous && Tok.Previous->is(tok::identifier))
415 // Chains of [] in `identifier[i][j][k]` are not attributes.
452 AttrTok->Next->startsSequence(tok::identifier, tok::l_paren))
470 if (AttrTok->startsSequence(tok::kw_using, tok::identifier, tok::colon))
472 if (AttrTok->isNot(tok::identifier))
479 AttrTok->startsSequence(tok::identifier, tok::identifier) ||
480 AttrTok->startsSequence(tok::r_paren, tok::identifier))
493 // A '[' could be an index subscript (after an identifier or after
589 tok::identifier) &&
637 // If we haven't seen a colon yet, make sure the last identifier
682 CurrentToken->endsSequence(tok::colon, tok::identifier,
858 Tok->Previous->is(tok::identifier) && Tok->Previous->is(TT_Unknown);
916 CurrentToken->isOneOf(tok::kw_constexpr, tok::identifier))
1062 (Tok->Next && Tok->Next->is(tok::identifier) && Tok->Next->Next &&
1086 case tok::identifier:
1259 CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier,
1278 if (CurrentToken && CurrentToken->is(tok::identifier)) {
1422 (Line.startsWith(Keywords.kw_type, tok::identifier) ||
1424 tok::identifier))) &&
1497 Current.startsSequence(tok::arrow, tok::identifier, tok::less)) {
1520 // Determine if the identifier `A` prior to the A<..>; is the same as
1526 // > of the template prior to the leading identifier.
1661 if (BeforeParen->is(tok::identifier) &&
1705 // colon after this, this is the only place which annotates the identifier
1708 } else if (Current.isOneOf(tok::identifier, tok::kw_const,
1738 /// This is a heuristic based on whether \p Tok is an identifier following
1741 if (Tok.isNot(tok::identifier) || !Tok.Previous)
1759 bool IsPPKeyword = PreviousNotConst->is(tok::identifier) &&
1775 PreviousNotConst->isOneOf(tok::identifier, tok::kw_auto)) ||
1802 // If there is an identifier (or with a few exceptions a keyword) right
1865 // If the following token is an identifier or 'this', this is a cast. All
1867 if (Tok.Next->isOneOf(tok::identifier, tok::kw_this))
1879 !Tok.Next->Next->isOneOf(tok::identifier, tok::numeric_constant))
1884 if (!Prev->isOneOf(tok::kw_const, tok::identifier, tok::coloncolon))
1945 // declarations. Thus, having an identifier on the right-hand side
1999 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier))
2323 if ((Next->isSimpleTypeSpecifier() || Next->is(tok::identifier)) &&
2359 if (!Next->is(tok::identifier))
2580 if (Right.is(tok::identifier) && Right.Next && Right.Next->is(TT_DictLiteral))
2681 Left.Previous->isOneOf(tok::identifier, tok::greater))
2794 Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant,
2814 return Left.Tok.isLiteral() || (Left.is(tok::identifier) && Left.Previous &&
2865 if (Previous->is(tok::identifier) || Previous->isSimpleTypeSpecifier()) {
2961 (Left.is(tok::identifier) || Left.isFunctionLikeKeyword() ||
2972 if ((Left.isOneOf(tok::identifier, tok::greater, tok::r_square,
2980 if (Right.is(tok::hash) && Left.is(tok::identifier) && Left.TokenText == "L")
3143 // the tag identifier and the template string.
3175 // "of" is only a keyword if it appears after another identifier
3179 (Left.Previous->Tok.is(tok::identifier) ||
3317 (Left.is(tok::identifier) || Left.is(tok::kw_this)))
3319 if (Right.is(tok::coloncolon) && Left.is(tok::identifier))
3320 // Generally don't remove existing spaces between an identifier and "::".
3321 // The identifier might actually be a macro name such as ALWAYS_INLINE. If
3322 // this turns out to be too lenient, add analysis of the identifier itself.
3436 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export,
3438 // kw_var/kw_let are pseudo-tokens that are tok::identifier, so match
3791 Right.isOneOf(tok::identifier, tok::string_literal))
3796 // identifier and template string.
3797 if (Left.is(tok::identifier) && Right.is(TT_TemplateString)) {
3884 if (Right.is(TT_SelectorName) || (Right.is(tok::identifier) && Right.Next &&
3938 if (Left.is(tok::identifier) && Right.is(tok::string_literal))
3941 if (Right.is(tok::identifier) && Right.Next && Right.Next->is(TT_DictLiteral))
3997 Right.isOneOf(tok::identifier, tok::kw_const)) ||