mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Fix clang-tidy modernize-loop-convert findings
This commit is contained in:
parent
49b803c0a8
commit
f3588657bf
56 changed files with 452 additions and 542 deletions
|
@ -271,8 +271,8 @@ void Specific_RE_Matcher::Dump(FILE* f) { dfa->Dump(f); }
|
|||
inline void RE_Match_State::AddMatches(const AcceptingSet& as, MatchPos position) {
|
||||
using am_idx = std::pair<AcceptIdx, MatchPos>;
|
||||
|
||||
for ( AcceptingSet::const_iterator it = as.begin(); it != as.end(); ++it )
|
||||
accepted_matches.insert(am_idx(*it, position));
|
||||
for ( const auto& entry : as )
|
||||
accepted_matches.insert(am_idx(entry, position));
|
||||
}
|
||||
|
||||
bool RE_Match_State::Match(const u_char* bv, int n, bool bol, bool eol, bool clear) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue