Home
last modified time | relevance | path

Searched refs:Ident (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/rust/macros/
H A Dconcat_idents.rs3 use proc_macro::{token_stream, Ident, TokenStream, TokenTree};
7 fn expect_ident(it: &mut token_stream::IntoIter) -> Ident { in expect_ident() argument
8 if let Some(TokenTree::Ident(ident)) = it.next() { in expect_ident()
21 let res = Ident::new(&format!("{a}{b}"), b.span()); in concat_idents()
22 TokenStream::from_iter([TokenTree::Ident(res)]) in concat_idents()
H A Dpin_data.rs27 .skip_while(|tt| !matches!(tt, TokenTree::Ident(i) if i.to_string() == "struct")) in pin_data()
30 TokenTree::Ident(_) => { in pin_data()
64 if matches!(&tt, TokenTree::Ident(i) if i.to_string() == "struct") { in pin_data()
95 TokenTree::Ident(ref i) in replace_self_and_deny_type_defs()
117 TokenTree::Ident(i) if i.to_string() == "Self" => struct_name.clone(), in replace_self_and_deny_type_defs()
118 TokenTree::Literal(_) | TokenTree::Punct(_) | TokenTree::Ident(_) => vec![tt], in replace_self_and_deny_type_defs()
H A Dvtable.rs14 TokenTree::Ident(ident) => match ident.to_string().as_str() { in vtable()
34 TokenTree::Ident(ident) if ident.to_string() == "fn" => { in vtable()
36 Some(TokenTree::Ident(ident)) => ident.to_string(), in vtable()
42 TokenTree::Ident(ident) if ident.to_string() == "const" => { in vtable()
44 Some(TokenTree::Ident(ident)) => ident.to_string(), in vtable()
H A Dpaste.rs3 use proc_macro::{Delimiter, Group, Ident, Spacing, Span, TokenTree};
13 Some(TokenTree::Ident(ident)) => { in concat()
21 let Some(TokenTree::Ident(ident)) = tokens.next() else { in concat()
46 TokenTree::Ident(Ident::new(&pasted, span.unwrap_or(group_span))) in concat()
H A Dhelpers.rs6 if let Some(TokenTree::Ident(ident)) = it.next() { in try_ident()
122 TokenTree::Ident(i) if i.to_string() == "const" => {} in parse_generics()
123 TokenTree::Ident(_) if at_start => { in parse_generics()
H A Dpinned_drop.rs9 assert!(matches!(&toks[0], TokenTree::Ident(i) if i.to_string() == "impl")); in pinned_drop()
27 matches!(tt, TokenTree::Ident(i) if i.to_string() == "PinnedDrop"), in pinned_drop()
H A Dquote.rs140 $v.push(::proc_macro::TokenTree::Ident(::proc_macro::Ident::new(stringify!($id), $span)));
H A Dmodule.rs113 Some(TokenTree::Ident(ident)) => ident.to_string(), in parse()
/openbmc/u-boot/scripts/
H A Dcheckpatch.pl336 our $Ident = qr{
388 our $Member = qr{->$Ident|\.$Ident|\[[^]]*\]};
389 our $Lval = qr{$Ident(?:$Member)*};
508 qr{struct\s+$Ident},
509 qr{union\s+$Ident},
510 qr{enum\s+$Ident},
511 qr{${Ident}_t},
512 qr{${Ident}_handler},
513 qr{${Ident}_handler_fn},
541 qr{struct\s+$InitAttribute\s+$Ident},
[all …]
/openbmc/qemu/scripts/
H A Dcheckpatch.pl241 our $Ident = qr{
262 our $Member = qr{->$Ident|\.$Ident|\[[^]]*\]};
263 our $Lval = qr{$Ident(?:$Member)*};
329 qr{struct\s+$Ident},
330 qr{union\s+$Ident},
331 qr{enum\s+$Ident},
332 qr{${Ident}_t},
333 qr{${Ident}_handler},
334 qr{${Ident}_handler_fn},
414 (?:typeof|__typeof__)\s*\(\s*\**\s*$Ident\s*\)|
[all …]
H A Ddump-guest-memory.py216 class Ident(ctypes.Structure): class
251 _fields_ = [('e_ident', Ident),
268 self.e_ident = Ident(endianness, elfclass)
280 _fields_ = [('e_ident', Ident),
297 self.e_ident = Ident(endianness, elfclass)
/openbmc/linux/scripts/
H A Dcheckpatch.pl470 our $Ident = qr{
526 our $Member = qr{->$Ident|\.$Ident|\[[^]]*\]};
527 our $Lval = qr{$Ident(?:$Member)*};
770 qr{struct\s+$Ident},
771 qr{union\s+$Ident},
772 qr{enum\s+$Ident},
773 qr{${Ident}_t},
774 qr{${Ident}_handler},
775 qr{${Ident}_handler_fn},
803 qr{struct\s+$InitAttribute\s+$Ident},
[all …]
/openbmc/qemu/rust/qemu-api-macros/src/
H A Dlib.rs10 Fields, Ident, Type, Visibility,
75 let field_names: Vec<&Ident> = fields.iter().map(|f| f.ident.as_ref().unwrap()).collect(); in derive_offsets_or_error()