This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

jansvoboda11 created this revision.Jan 12 2022, 7:42 AM
jansvoboda11 requested review of this revision.Jan 12 2022, 7:42 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 12 2022, 7:42 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Split patches

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
jansvoboda11 edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Jan 13 2022, 1:03 PM