3 ms·
That's really interesting, do you have any examples handy of search queries you used?
by neuronexmachina 3y ago
That's really interesting, do you have any examples handy of search queries you used?
- Kuinox 3y agoI'm not the one you asked to, but here my usages: Searching how an API is used. Searching how people configured something. Searching accidental uses of an attribute: https://github.com/dotnet/csharplang/discussions/5657#discussioncomment-4415454 https://github.com/dotnet/csharplang/discussions/5657#discus...
- MaxLeiter 3y agoIt's amazing for searching examples of rarely used / non-public APIs
- csnover 3y agoFor CMake stuff I would search like `<function name> path:/CMakeLists\.txt$|cmake/`. For translations I would search a phrase using `<phrase> lang:"Gettext Catalog" path:/<language iso code>/`. For reviewing library consumers I would just search for `<my library name> (<function name> OR <other function name> OR <third function name>) NOT path:<my library name>/**`. There may be better queries for some of these, but I really didn’t have to do any magic or weird tricks. Everything more or less just works.