llvm-project/clang/lib/Tooling/Syntax
Jan Svoboda 600c6714ac [clang][syntax] Replace `std::vector<bool>` use
LLVM Programmer’s Manual strongly discourages the use of `std::vector<bool>` and suggests `llvm::BitVector` as a possible replacement.

This patch replaces `std::vector<bool>` with `llvm::BitVector` in the Syntax library and replaces range-based for loop with regular for loop. This is necessary due to `llvm::BitVector` not having `begin()` and `end()` (D117116).

Reviewed By: dexonsmith, dblaikie

Differential Revision: https://reviews.llvm.org/D118109
2022-01-26 11:20:18 +01:00
..
BuildTree.cpp [clang] Use llvm::{count,count_if,find_if,all_of,none_of} (NFC) 2021-10-25 09:14:45 -07:00
CMakeLists.txt [openmp] Base of tablegen generated OpenMP common declaration 2020-06-23 10:32:32 -04:00
ComputeReplacements.cpp [SyntaxTree] Add const qualifiers, from [llvm-qualified-auto] 2020-09-11 18:39:02 +00:00
Mutations.cpp [SyntaxTree] Add reverse links to syntax Nodes. 2020-11-05 09:33:53 +00:00
Nodes.cpp [Syntax] Tablegen literal expressions. 2020-11-12 01:26:02 +01:00
Synthesis.cpp [SyntaxTree] Add reverse links to syntax Nodes. 2020-11-05 09:33:53 +00:00
Tokens.cpp [NFC][tools] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
Tree.cpp [clang][syntax] Replace `std::vector<bool>` use 2022-01-26 11:20:18 +01:00