For 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.
For 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.
I'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#discus...
It's amazing for searching examples of rarely used / non-public APIs