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 | ||
---|---|---|
143 | nit: const auto &[SID, Refs] | |
145 | 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? | |
150 | nit: early exit instead | |
156 | we should use Macro->NameLoc, not the definition loc inside macro-info | |
162 | 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 | ||
---|---|---|
145 |
| |
145 | thanks, it makes sense, sent out https://reviews.llvm.org/D153259. | |
156 | oh, right. NameLoc takes the preamble patch into account. |
nit: const auto &[SID, Refs]