Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/IncludeCleaner.cpp | ||
---|---|---|
151 | if we made it here, we already know definition wasn't visible in the current TU. maybe just something like: // Special case RecordDecls, as it is common for them to be forward declared multiple times. // The most common two cases are: // - definition available in TU, only mark that one as usage. rest is likely to be unnecessary. this might result in false positives when an internal definition is visible. // - there's a forward declaration in the main file, no need for other redecls. if (auto *RD = ...) { if (auto *Def) { insert that; return; } if (mostRecentInMainFile) { return; } } If we really want to keep a note around nested decls, we might say something like: But I don't think all the additional information provides much value, rather creates confusion and forces one to think more about the details. | |
clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp | ||
67 | you mind changing these into functions as well? |
thanks!
clang-tools-extra/clangd/IncludeCleaner.cpp | ||
---|---|---|
127 | i know it was me who didn't capitalize, but can you capitalize the first words :D |
i know it was me who didn't capitalize, but can you capitalize the first words :D
s/rest/Rest
s/this/This (line below)