This patch introduces cosmetic changes while making ClangD code slightly more LLVM Coding Standards-compliant by
- Convert names of struct fields in Protocol.h from camelCase to CamelCase
- Enclose code in .cpp implementation files in appropriate namespaces instead of doing using namespace clang; using namespace clangd;
- Putting few consts and references where appropriate
Testing:
$ ninja check-clang-tools
All ClangD-related tests are green.
Why do you feel pass-by-const-ref here is better than pass-by-value?
We're storing functions inside a vector there, so we would need a copy anyway.
Using pass-by-value allows to std::move into the function, pass-by-const-ref doesn't allow that.