This patch improves readability by migrating std::function(ForwardIt start, ForwardIt end, ...) to LLVM's STLExtras range-based equivalent llvm::function(RangeT &&Range, ...).
Similar change in Clang: D52576.
Paths
| Differential D52650
[clangd] NFC: Migrate to LLVM STLExtras API where possible ClosedPublic Authored by kbobyrev on Sep 28 2018, 7:22 AM.
Details Summary This patch improves readability by migrating std::function(ForwardIt start, ForwardIt end, ...) to LLVM's STLExtras range-based equivalent llvm::function(RangeT &&Range, ...). Similar change in Clang: D52576.
Diff Detail
Event TimelineHerald added subscribers: kadircet, arphaman, dexonsmith and 5 others. · View Herald TranscriptSep 28 2018, 7:22 AM Comment Actions Also, I'm not sure whether I should update Clang-Tidy and other tools in the scope of this patch. It makes sense to me, but I don't know whether the maintainers of these projects are happy with the change. WDYT? This revision is now accepted and ready to land.Sep 28 2018, 7:35 AM Comment Actions I think it's fine to update others too, this is a trivially-safe change and Comment Actions
Great, thanks! I'll submit the patch once I'm home and I will make modifications in the other parts of clang-tools-extra. Also, this making these transformations automatically might be a great idea for Clang-Tidy llvm-check (and a separate check with std::ranges later on). Closed by commit rL343937: [clangd] NFC: Migrate to LLVM STLExtras API where possible (authored by omtcyfz). · Explain WhyOct 7 2018, 7:52 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 168590 clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
clang-tools-extra/trunk/clangd/ClangdServer.cpp
clang-tools-extra/trunk/clangd/CodeComplete.cpp
clang-tools-extra/trunk/clangd/TUScheduler.cpp
clang-tools-extra/trunk/clangd/XRefs.cpp
clang-tools-extra/trunk/clangd/index/CanonicalIncludes.cpp
clang-tools-extra/trunk/clangd/index/FileIndex.cpp
clang-tools-extra/trunk/clangd/index/Index.cpp
clang-tools-extra/trunk/clangd/index/Serialization.cpp
clang-tools-extra/trunk/clangd/index/SymbolCollector.cpp
clang-tools-extra/trunk/clangd/index/dex/Dex.cpp
clang-tools-extra/trunk/clangd/index/dex/Iterator.cpp
llvm/trunk/include/llvm/ADT/STLExtras.h
|