And implemented a helper function to dump an AST of a file for
testing/debugging purposes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clangd/ClangdServer.cpp | ||
---|---|---|
85 ↗ | (On Diff #99773) | Why are we taking it from the front and not from the back? Maybe at least add a comment about this behavior. |
102 ↗ | (On Diff #99773) | Why did this get out? |
230 ↗ | (On Diff #99773) | Maybe an explicit flush and no block? |
clangd/ClangdUnitStore.h | ||
56 ↗ | (On Diff #99773) | Maybe make it less generic and put the implementation in the source file? It uses std::function anyways. |
Comment Actions
Added more comments to addToEnd/addToFront, added explicit flush instead of relying on raw_ostream's destructor to do it implicitly.
clangd/ClangdServer.cpp | ||
---|---|---|
102 ↗ | (On Diff #99773) | "The notifying thread does not need to hold the lock on the same mutex as the one held by the waiting thread(s); in fact doing so is a pessimization, since the notified thread would immediately block again, waiting for the notifying thread to release the lock" |