The tracer is now expected to allocate+free the args itself.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/support/Trace.cpp | ||
---|---|---|
91 | move this near other fileds? | |
clang-tools-extra/clangd/support/Trace.h | ||
86 | nit: at first i parsed request in RequestArgs as a verb (e.g. i request arguments), which was confusing a little bit. Hence the comment also didn't make much sense, I only managed to error correct after seeing the usage :D Maybe something like SetRequestArgs to emphasize that one provides request arguments using this lambda rather than receiving them? |
clang-tools-extra/clangd/support/Trace.cpp | ||
---|---|---|
91 | It's public unlike the other fields, but moved it to the bottom of the public section | |
303 | added assertions here (nonnull and empty) to guard against any API confusion | |
clang-tools-extra/clangd/support/Trace.h | ||
86 | This *is* actually the intention. Changed to AttachDetails to avoid ambiguity, and rewrote the comment. |
nit: at first i parsed request in RequestArgs as a verb (e.g. i request arguments), which was confusing a little bit. Hence the comment also didn't make much sense, I only managed to error correct after seeing the usage :D
Maybe something like SetRequestArgs to emphasize that one provides request arguments using this lambda rather than receiving them?