Searched refs:tok (Results 1 - 25 of 293) sorted by relevance

1234567891011>>

/openbsd-current/gnu/llvm/clang/lib/Basic/
H A DOperatorPrecedence.cpp17 prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator,
20 case tok::greater:
29 case tok::greatergreater:
41 case tok::comma: return prec::Comma;
42 case tok::equal:
43 case tok::starequal:
44 case tok::slashequal:
45 case tok::percentequal:
46 case tok::plusequal:
47 case tok
[all...]
H A DTokenKinds.cpp24 const char *tok::getTokenName(TokenKind Kind) {
25 if (Kind < tok::NUM_TOKENS)
31 const char *tok::getPunctuatorSpelling(TokenKind Kind) {
40 const char *tok::getKeywordSpelling(TokenKind Kind) {
49 const char *tok::getPPKeywordSpelling(tok::PPKeywordKind Kind) {
51 #define PPKEYWORD(x) case tok::pp_##x: return #x;
58 bool tok::isAnnotation(TokenKind Kind) {
68 bool tok::isPragmaAnnotation(TokenKind Kind) {
/openbsd-current/lib/libedit/
H A Dtokenizer.c87 static void FUN(tok,finish)(TYPE(Tokenizer) *);
90 /* FUN(tok,finish)():
94 FUN(tok,finish)(TYPE(Tokenizer) *tok)
97 *tok->wptr = '\0';
98 if ((tok->flags & TOK_KEEP) || tok->wptr != tok->wstart) {
99 tok->argv[tok
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Denum-1.c24 static token tok; variable
29 if ((tok >= 0 && tok < (1 << 8 ) ) || tok >= CSET || tok == BACKREF
30 || tok == BEGLINE || tok == ENDLINE || tok == BEGWORD
31 || tok == ENDWORD || tok
[all...]
/openbsd-current/gnu/llvm/clang/lib/Parse/
H A DParseTentative.cpp55 case tok::kw_asm:
57 case tok::kw_namespace:
60 case tok::kw_using:
62 case tok::kw_static_assert:
63 case tok::kw__Static_assert:
65 case tok::identifier: {
75 case tok::identifier: {
89 case tok::kw_operator:
91 case tok::annot_cxxscope: // Check if this is a dtor.
92 if (NextToken().is(tok
[all...]
H A DParseDecl.cpp164 assert(Tok.is(tok::kw___attribute) && "Not a GNU attribute list!");
169 while (Tok.is(tok::kw___attribute)) {
174 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after,
176 SkipUntil(tok::r_paren, StopAtSemi); // skip until ) or ;
179 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) {
180 SkipUntil(tok::r_paren, StopAtSemi); // skip until ) or ;
186 while (TryConsumeToken(tok::comma))
192 if (Tok.is(tok::code_completion)) {
203 if (Tok.isNot(tok::l_paren)) {
231 ConsumeAndStoreUntil(tok
[all...]
H A DParseDeclCXX.cpp64 assert(Tok.is(tok::kw_namespace) && "Not a namespace!");
68 if (Tok.is(tok::code_completion)) {
85 if (Tok.is(tok::kw___attribute)) {
102 if (Tok.is(tok::identifier)) {
105 while (Tok.is(tok::coloncolon) &&
106 (NextToken().is(tok::identifier) ||
107 (NextToken().is(tok::kw_inline) &&
108 GetLookAheadToken(2).is(tok::identifier)))) {
113 if (Tok.is(tok::kw_inline)) {
134 if (Tok.is(tok
[all...]
/openbsd-current/gnu/llvm/clang/include/clang/Basic/
H A DTokenKinds.h22 namespace tok { namespace in namespace:clang
76 return (K == tok::identifier) || (K == tok::raw_identifier);
82 return K == tok::string_literal || K == tok::wide_string_literal ||
83 K == tok::utf8_string_literal || K == tok::utf16_string_literal ||
84 K == tok::utf32_string_literal;
90 return K == tok::numeric_constant || K == tok
[all...]
/openbsd-current/gnu/llvm/clang/lib/Lex/
H A DTokenConcatenation.cpp73 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
[all...]
/openbsd-current/gnu/llvm/llvm/utils/reduce_pipeline_test/
H A Dfake_opt.py36 tok = '' variable
39 if tok != '':
40 crash_seq.append(tok)
41 tok = '' variable
43 tok += c
44 if tok != '':
45 crash_seq.append(tok)
49 tok = '' variable
52 if len(crash_seq) > 0 and crash_seq[0] == tok:
54 tok variable
56 tok = '' variable
60 tok = '' variable
[all...]
/openbsd-current/gnu/llvm/clang/lib/Format/
H A DTokenAnnotator.cpp32 return Line.startsWith(tok::kw_for) || Line.startsWith(tok::kw_if) ||
33 Line.startsWith(tok::kw_switch);
41 /// lexed as tok::kw_*, not tok::identifier, even for Objective-C.
55 if (Left->Previous && Left->Previous->is(tok::greater) &&
62 return Left->Previous && Left->Previous->is(tok::r_square) &&
70 return Tok.isOneOf(tok::kw_if, tok::kw_for, tok
[all...]
H A DUnwrappedLineParser.cpp116 return FormatTok.is(tok::comment) && !FormatTok.TokenText.startswith("/*");
142 FakeEOF.Tok.setKind(tok::eof);
294 while (Tokens[Next]->is(tok::comment))
303 bool isEOF() override { return Tokens[Position]->is(tok::eof); }
438 case tok::l_brace:
457 case tok::r_square:
465 case tok::l_square:
481 return Previous && Previous->is(tok::comment) &&
515 tok::TokenKind kind = FormatTok->Tok.getKind();
517 kind = tok
[all...]
H A DFormatTokenLexer.cpp95 } while (Tokens.back()->isNot(tok::eof));
112 static const tok::TokenKind NullishCoalescingOperator[] = {tok::question,
113 tok::question};
114 static const tok::TokenKind NullPropagatingOperator[] = {tok::question,
115 tok::period};
116 static const tok::TokenKind FatArrow[] = {tok::equal, tok
[all...]
/openbsd-current/usr.bin/rpcgen/
H A Drpc_parse.c67 token tok; local
70 get_token(&tok);
71 switch (tok.kind) {
96 scan(TOK_SEMICOLON, &tok);
112 token tok; local
119 scan(TOK_IDENT, &tok);
120 defp->def_name = tok.str;
121 scan(TOK_LBRACE, &tok);
129 scan(TOK_SEMICOLON, &tok);
130 peek(&tok);
140 token tok; local
246 token tok; local
276 token tok; local
290 token tok; local
422 token tok; local
476 token tok; local
548 token tok; local
603 token tok; local
[all...]
/openbsd-current/gnu/llvm/lldb/source/Plugins/Language/ClangCommon/
H A DClangHighlighter.cpp55 if (token.is(tok::comment)) {
59 } else if (in_pp_directive || token.getKind() == tok::hash) {
64 } else if (tok::isStringLiteral(token.getKind()))
66 else if (tok::isLiteral(token.getKind()))
72 case tok::raw_identifier:
73 case tok::identifier:
75 case tok::l_brace:
76 case tok::r_brace:
78 case tok::l_square:
79 case tok
[all...]
/openbsd-current/usr.bin/ftp/
H A Dlist.c28 char *tok; local
31 while ((tok = strsep(line, " \t")) != NULL) {
32 if (*tok == '\0')
36 *type = *tok;
53 char *tok; local
57 while ((tok = strsep(line, " \t")) != NULL) {
58 if (*tok == '\0')
61 if (field == 2 && strcmp(tok, "<DIR>") == 0)
/openbsd-current/gnu/gcc/gcc/treelang/
H A Dtree1.c236 struct prod_token_parm_item *tok; local
240 tok = SYMBOL_TABLE_NAME (prod);
241 sanity_check (tok);
248 if (tok->tp.tok.length != this_tok->tp.tok.length)
250 if (memcmp (tok->tp.tok.chars, this_tok->tp.tok.chars,
251 this_tok->tp.tok
273 struct prod_token_parm_item *tok; local
[all...]
H A Dparse.y87 (struct prod_token_parm_item *tok, struct prod_token_parm_item *op1,
182 struct prod_token_parm_item *tok;
184 tok = $3;
185 prod = make_production (PROD_VARIABLE_NAME, tok);
186 SYMBOL_TABLE_NAME (prod) = tok;
191 ensure_not_void (NUMERIC_TYPE (prod), tok);
206 &tok->tp.tok.location, tok->tp.tok
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/treelang/
H A Dtree1.c262 struct prod_token_parm_item *tok; local
263 tok = SYMBOL_TABLE_NAME (prod);
267 if (tok->tp.tok.length != this_tok->tp.tok.length)
269 if (memcmp (tok->tp.tok.chars, this_tok->tp.tok.chars, this_tok->tp.tok.length))
272 fprintf (stderr, "Found symbol %s (%i:%i) as %i \n", tok
287 struct prod_token_parm_item *tok; local
[all...]
H A Dparse.y177 struct prod_token_parm_item* tok;
179 tok = $3;
180 prod = make_production (PROD_VARIABLE_NAME, tok);
181 SYMBOL_TABLE_NAME (prod) = tok;
185 ensure_not_void (NUMERIC_TYPE (prod), tok);
200 tok->tp.tok.lineno, tok->tp.tok.charno);
201 print_token (stderr, 0, tok);
[all...]
/openbsd-current/usr.bin/ctags/
H A DC.c57 char tok[MAXTOKEN]; /* token buffer */ local
60 sp = tok; token = t_def = NO; t_level = -1; level = 0; lineno = 1;
92 endtok: if (sp > tok) {
95 sp = tok;
129 if (sp == tok) {
151 if (sp != tok)
163 pfnote(tok, curline);
189 if (sp != tok)
191 pfnote(tok, lineno);
218 if (sp == tok)
369 char tok[MAXTOKEN]; /* storage buffer */ local
437 char tok[LINE_MAX]; /* storage buffer */ local
[all...]
/openbsd-current/sys/dev/pci/drm/i915/
H A Di915_mitigations.c35 char *str, *sep, *tok; local
45 for (sep = str; (tok = strsep(&sep, ","));) {
50 tok = strim(tok);
55 if (!strcmp(tok, "auto"))
59 if (!strcmp(tok, "off"))
63 if (*tok == '!') {
65 tok++;
68 if (!strncmp(tok, "no", 2)) {
70 tok
[all...]
/openbsd-current/lib/libexpat/lib/
H A Dxmlrole.c122 typedef int PTRCALL PROLOG_HANDLER(PROLOG_STATE *state, int tok,
138 static int FASTCALL common(PROLOG_STATE *state, int tok);
141 prolog0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, argument
143 switch (tok) {
168 return common(state, tok);
172 prolog1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, argument
174 switch (tok) {
200 return common(state, tok);
204 prolog2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, argument
209 switch (tok) {
224 doctype0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
241 doctype1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
267 doctype2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
283 doctype3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
299 doctype4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
318 doctype5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
334 internalSubset(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
379 externalSubset0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
388 externalSubset1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
416 entity0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
435 entity1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
451 entity2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
475 entity3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
491 entity4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
507 entity5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
526 entity6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
543 entity7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
567 entity8(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
583 entity9(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
599 entity10(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
615 notation0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
631 notation1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
651 notation2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
667 notation3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
684 notation4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
704 attlist0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
721 attlist1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
741 attlist2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
771 attlist3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
789 attlist4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
808 attlist5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
824 attlist6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
840 attlist7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
860 attlist8(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
890 attlist9(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
906 element0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
923 element1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
949 element2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
983 element3(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1007 element4(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1024 element5(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1044 element6(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1073 element7(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1122 condSect0(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1142 condSect1(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1159 condSect2(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1177 declClose(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1213 error(PROLOG_STATE *state, int tok, const char *ptr, const char *end, const ENCODING *enc) argument
1225 common(PROLOG_STATE *state, int tok) argument
[all...]
/openbsd-current/gnu/llvm/lldb/source/Plugins/Language/CPlusPlus/
H A DCPlusPlusNameParser.cpp21 namespace tok = clang::tok;
71 bool CPlusPlusNameParser::ConsumeToken(tok::TokenKind kind) {
112 if (!ConsumeToken(tok::kw_auto) && !ConsumeTypename())
166 if (!ConsumeToken(tok::l_paren))
180 if (ConsumeToken(tok::r_paren))
209 if (ConsumeToken(tok::r_paren))
220 return ConsumeBrackets(tok::l_paren, tok::r_paren);
225 if (!HasMoreTokens() || Peek().getKind() != tok
[all...]
/openbsd-current/lib/libc/string/
H A Dstrsep.c51 char *tok; local
55 for (tok = s;;) {
65 return (tok);

Completed in 481 milliseconds

1234567891011>>