TIL to never, ever trust GitHub's code search. Like, I dunno what they'll have to do before I trust it again.

https://github.com/search?q=repo%3Allvm%2Fllvm-project+cc_library_wrapper&type=code
"0 files" No indication of an error. Other searches _do_ return files in LLVM.

https://github.com/llvm/llvm-project/blob/main/utils/bazel/llvm-project-overlay/third-party/cc_library_wrapper.bzl
A file with that string as its filename, and that string repeatedly in the file body. It's all over the place. Adjacent files also use that string.

Maybe I'm holding it wrong? But even if I'm holding it wrong, how would I ever know if I trust its results? 🤬

Build software better, together

GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.

GitHub

@chandlerc I've also learned to distrust it. I only use it if I know that it exists. If it still cannot find it, then I press "." to start the in-browser VSCode thing and use the search there.

But this is quite resource heavy, especially if you don't close your tabs. So one might as well clone it directly.

Not sure if https://sourcegraph.com/search is better at this.

Search Public Code

Search across 2 million+ open source repositories for free. Powered by Sourcegraph Code Search.