Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions faiss/index_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ namespace {
*/

bool re_match(const std::string& s, const std::string& pat, std::smatch& sm) {
return std::regex_match(s, sm, std::regex(pat)); // NO-LINT : regex_match
// @lint-ignore CLANGTIDY
return std::regex_match(s, sm, std::regex(pat));
}

// find first pair of matching parentheses
Expand Down Expand Up @@ -176,8 +177,8 @@ AdditiveQuantizer::Search_type_t aq_parse_search_type(
std::vector<size_t> aq_parse_nbits(std::string stok) {
std::vector<size_t> nbits;
std::smatch sm;
while (std::regex_search(
stok, sm, std::regex("[^q]([0-9]+)x([0-9]+)"))) { // NO-LINT
// @lint-ignore CLANGTIDY
while (std::regex_search(stok, sm, std::regex("[^q]([0-9]+)x([0-9]+)"))) {
int M = std::stoi(sm[1].str());
int nbit = std::stoi(sm[2].str());
nbits.resize(nbits.size() + M, nbit);
Expand Down
Loading