Now MainFileMacros preserves enough information, we perform a just-in-time
convertion to interop with include-cleaner::Macro for include-cleaer features.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
thanks!
clang-tools-extra/clangd/IncludeCleaner.cpp | ||
---|---|---|
128 | nit: const auto &[SID, Refs] | |
130 | it's unfortunate that we're scanning the file for every occurrence of a macro just to get an offset. this might get problematic in big test files, what about introducing an offset to MacroOccurence? | |
135 | nit: early exit instead | |
141 | we should use Macro->NameLoc, not the definition loc inside macro-info | |
147 | i believe you meant Ambigious here. the reference is "explicitly" in the code, but we can't say for sure if it's intended. |
thanks for the comments.
clang-tools-extra/clangd/IncludeCleaner.cpp | ||
---|---|---|
130 |
| |
130 | thanks, it makes sense, sent out https://reviews.llvm.org/D153259. | |
141 | oh, right. NameLoc takes the preamble patch into account. |
nit: const auto &[SID, Refs]