LLVM Programmer’s Manual strongly discourages the use of std::vector<bool> and suggests llvm::BitVector as a possible replacement.
This patch does just that for clangd and clang-tidy.
Paths
| Differential D117119
[clangd][clang-tidy] Remove uses of `std::vector<bool>` ClosedPublic Authored by jansvoboda11 on Jan 12 2022, 7:42 AM.
Details Summary LLVM Programmer’s Manual strongly discourages the use of std::vector<bool> and suggests llvm::BitVector as a possible replacement. This patch does just that for clangd and clang-tidy.
Diff Detail
Event TimelineHerald added subscribers: carlosgalvezp, usaxena95, kadircet, arphaman. · View Herald TranscriptJan 12 2022, 7:42 AM Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 12 2022, 7:42 AM jansvoboda11 retitled this revision from [clang] Remove uses of `std::vector<bool>` to [clangd][clang-tidy] Remove uses of `std::vector<bool>`.Jan 13 2022, 1:35 AM Herald added subscribers: MaskRay, ilya-biryukov, xazax.hun. · View Herald TranscriptJan 13 2022, 1:35 AM jansvoboda11 removed a parent revision: D117116: [llvm][ADT] Enable range-based for loops for `BitVector`.Jan 13 2022, 1:35 AM This revision is now accepted and ready to land.Jan 13 2022, 1:03 PM Closed by commit rGc6fb636667b8: [clangd][clang-tidy] Remove uses of `std::vector<bool>` (authored by jansvoboda11). · Explain WhyJan 18 2022, 8:59 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 399328 clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tools-extra/clang-tidy/readability/FunctionSizeCheck.cpp
clang-tools-extra/clangd/Selection.cpp
clang-tools-extra/clangd/SourceCode.cpp
clang/include/clang/Lex/HeaderSearch.h
clang/lib/Format/UnwrappedLineParser.h
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Lex/HeaderSearch.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/lib/Tooling/Syntax/Tree.cpp
clang/unittests/Lex/HeaderSearchTest.cpp
|