19:07:13 do any of the modern cscope-y replacements do "find assignments to" but of a type rather than a symbol? and if so, which? 19:24:53 I feel certain libclang knows, but I have no idea of what if anything is the good consumer :) 19:39:09 some lsp probably 19:39:47 helix-editor uses clangd and lldb for C 19:40:07 so helix editor should work for you 19:45:08 does it actually do the search I want too? 19:46:03 it can do find usages. are you looking for other symbol type searches? 19:46:12 I'm looking for assignments to a specific type 19:46:36 so type conversions? 19:46:56 Not quite. 19:47:03 no, any assignment to a symbol of a given type. 19:47:26 like when a type is used? 19:48:09 Just imagine a type called a foo_t. You're looking for all assignments in C where the computed type of the left hand size from the compiler is a foo_t. 19:48:35 Whether someone has a global, a local, or access it through a struct or union member. 19:49:34 Hmmmm, is that very C specific? Other languages that would be either usage of contructor or when you build the variable of that type. Which IIRC is part of a usage search of the type itself 19:50:31 it's kinda C specific, but clang has to know, so I was hoping something that consumed libclang for these purposes exposed it 19:50:37 and also that someone had used one and knew which was good. 19:51:23 i think most lsp or very c specific things are hidden deep beneath the surface and the abstracted editor functions 20:02:37 That's not that C specific. A similar question is often asked in rust, java, etc. 20:13:06 richlowe: uh, maybe coccinelle/spatch?! 20:14:44 possibly, but also aaaargh 20:14:54 jlevon:i-believe-i-did-bob.jpg 20:15:35 I don't think it's a query you can make in LSP at least. 21:42:57 In Rust I think if you pick a type you can at least ask all the places that type is used in your software to define a variable or whatever. I'm not sure about assignments like that though 21:44:27 Rust's ownership model would make this far easier, because there would be a concrete place the data _is_ and someone who owns that. 21:44:48 if all your pointers are into the heap, you're just going to find "every possible use of this type", which is what I'm trying to avoid, there are lots and lots. 21:45:54 mmm 22:09:00 on the upside I found an excuse to C99-ize something. 22:09:02 which always makes me happy 22:09:15 please forget I said "excuse" when it comes to code review though. 22:19:57 clearly you meant to say "a strong and valid need"