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

Lines Matching refs:tok

73   TokenInfo[tok::identifier      ] |= aci_custom;
74 TokenInfo[tok::numeric_constant] |= aci_custom_firstchar;
75 TokenInfo[tok::period ] |= aci_custom_firstchar;
76 TokenInfo[tok::amp ] |= aci_custom_firstchar;
77 TokenInfo[tok::plus ] |= aci_custom_firstchar;
78 TokenInfo[tok::minus ] |= aci_custom_firstchar;
79 TokenInfo[tok::slash ] |= aci_custom_firstchar;
80 TokenInfo[tok::less ] |= aci_custom_firstchar;
81 TokenInfo[tok::greater ] |= aci_custom_firstchar;
82 TokenInfo[tok::pipe ] |= aci_custom_firstchar;
83 TokenInfo[tok::percent ] |= aci_custom_firstchar;
84 TokenInfo[tok::colon ] |= aci_custom_firstchar;
85 TokenInfo[tok::hash ] |= aci_custom_firstchar;
86 TokenInfo[tok::arrow ] |= aci_custom_firstchar;
90 TokenInfo[tok::string_literal ] |= aci_custom;
91 TokenInfo[tok::wide_string_literal ] |= aci_custom;
92 TokenInfo[tok::utf8_string_literal ] |= aci_custom;
93 TokenInfo[tok::utf16_string_literal] |= aci_custom;
94 TokenInfo[tok::utf32_string_literal] |= aci_custom;
95 TokenInfo[tok::char_constant ] |= aci_custom;
96 TokenInfo[tok::wide_char_constant ] |= aci_custom;
97 TokenInfo[tok::utf16_char_constant ] |= aci_custom;
98 TokenInfo[tok::utf32_char_constant ] |= aci_custom;
103 TokenInfo[tok::utf8_char_constant] |= aci_custom;
107 TokenInfo[tok::lessequal ] |= aci_custom_firstchar;
110 TokenInfo[tok::amp ] |= aci_avoid_equal; // &=
111 TokenInfo[tok::plus ] |= aci_avoid_equal; // +=
112 TokenInfo[tok::minus ] |= aci_avoid_equal; // -=
113 TokenInfo[tok::slash ] |= aci_avoid_equal; // /=
114 TokenInfo[tok::less ] |= aci_avoid_equal; // <=
115 TokenInfo[tok::greater ] |= aci_avoid_equal; // >=
116 TokenInfo[tok::pipe ] |= aci_avoid_equal; // |=
117 TokenInfo[tok::percent ] |= aci_avoid_equal; // %=
118 TokenInfo[tok::star ] |= aci_avoid_equal; // *=
119 TokenInfo[tok::exclaim ] |= aci_avoid_equal; // !=
120 TokenInfo[tok::lessless ] |= aci_avoid_equal; // <<=
121 TokenInfo[tok::greatergreater] |= aci_avoid_equal; // >>=
122 TokenInfo[tok::caret ] |= aci_avoid_equal; // ^=
123 TokenInfo[tok::equal ] |= aci_avoid_equal; // ==
177 tok::TokenKind PrevKind = PrevTok.getKind();
179 PrevKind = tok::identifier; // Language keyword or named operator.
189 if (Tok.isOneOf(tok::equal, tok::equalequal))
195 assert(Tok.isOneOf(tok::annot_module_include, tok::annot_module_begin,
196 tok::annot_module_end) &&
218 case tok::raw_identifier:
219 llvm_unreachable("tok::raw_identifier in non-raw lexing mode!");
221 case tok::string_literal:
222 case tok::wide_string_literal:
223 case tok::utf8_string_literal:
224 case tok::utf16_string_literal:
225 case tok::utf32_string_literal:
226 case tok::char_constant:
227 case tok::wide_char_constant:
228 case tok::utf8_char_constant:
229 case tok::utf16_char_constant:
230 case tok::utf32_char_constant:
244 case tok::identifier: // id+id or id+number or id+L"foo".
246 if (Tok.is(tok::numeric_constant))
250 Tok.isOneOf(tok::wide_string_literal, tok::utf8_string_literal,
251 tok::utf16_string_literal, tok::utf32_string_literal,
252 tok::wide_char_constant, tok::utf8_char_constant,
253 tok::utf16_char_constant, tok::utf32_char_constant))
257 if (Tok.isNot(tok::char_constant) && Tok.isNot(tok::string_literal))
264 case tok::numeric_constant:
267 case tok::period: // ..., .*, .1234
268 return (FirstChar == '.' && PrevPrevTok.is(tok::period)) ||
271 case tok::amp: // &&
273 case tok::plus: // ++
275 case tok::minus: // --, ->, ->*
277 case tok::slash: //, /*, //
279 case tok::less: // <<, <<=, <:, <%
281 case tok::greater: // >>, >>=
283 case tok::pipe: // ||
285 case tok::percent: // %>, %:
287 case tok::colon: // ::, :>
290 case tok::hash: // ##, #@, %:%:
292 case tok::arrow: // ->*
294 case tok::lessequal: // <=> (C++2a)