And implemented a helper function to dump an AST of a file for
testing/debugging purposes.
Details
Diff Detail
- Build Status
Buildable 6652 Build 6652: arc lint + arc unit
Event Timeline
clangd/ClangdServer.cpp | ||
---|---|---|
85 | Why are we taking it from the front and not from the back? Maybe at least add a comment about this behavior. | |
102 | Why did this get out? | |
230 | Maybe an explicit flush and no block? | |
clangd/ClangdUnitStore.h | ||
56 | Maybe make it less generic and put the implementation in the source file? It uses std::function anyways. |
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 | "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" |
Why are we taking it from the front and not from the back? Maybe at least add a comment about this behavior.