[PATCH] D87450: [clangd] Implement hot index reloading for clangd-index-server
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 16 02:02:54 PDT 2020
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
Thanks, LGTM!
================
Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:342
+ HotReloadThread.join();
}
----------------
kbobyrev wrote:
> kadircet wrote:
> > kbobyrev wrote:
> > > kadircet wrote:
> > > > nit: `return 0;` ?
> > > No need for that in C++.
> > >
> > > https://en.cppreference.com/w/cpp/language/main_function
> > >
> > > > 4) The body of the main function does not need to contain the return statement: if control reaches the end of main without encountering a return statement, the effect is that of executing `return 0;`
> > right, hence the `nit`
> Hm, why do you think it is better then? I'm not sure if adding no-op lines of code will increase readability/clarity.
>
> I'm curious now, is there any reason you prefer explicit `return 0;`?
I suppose, mostly aesthetics and being used to it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87450/new/
https://reviews.llvm.org/D87450
More information about the cfe-commits
mailing list