[PATCH] D74395: [clangd] Add tracer to the rename workflow, NFC
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 13 03:56:15 PST 2020
hokein added inline comments.
================
Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:345
+
+ SPAN_ATTACH(Tracer, FileAndOccurrences.first(),
+ static_cast<int64_t>(Ranges.size()));
----------------
kbobyrev wrote:
> A tracer message here would be helpful!
the message now would be the <filename, num_of_ranges> and under the `FindOccurrencesOutsideFile` span, I think it is clear enough?
================
Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:627
if (Indexed.size() > Lexed.size()) {
vlog("The number of lexed occurrences is less than indexed occurrences");
----------------
kbobyrev wrote:
> Maybe add the tracer here, too?
ah, good point. I missed this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74395/new/
https://reviews.llvm.org/D74395
More information about the cfe-commits
mailing list