Rename names that Flawfinder takes for the file function open()

The comparison cursors' open() is now enter(), and a test's open and
close strings are head and tail.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann committed 2026-10-22 13:27:54 +02:00
1 parent 3fb7d9c710
commit 89bd5d63e1
3 files changed
+15 -15

No files matched your search

+4 -4
View File
@@ -357,7 +357,7 @@ class view_side
}
/// start at the first element of this array
void open(cursor& c) const noexcept
void enter(cursor& c) const noexcept
{
c.pos = nav::first(*m_view.m_doc, m_view.m_node);
}
@@ -466,7 +466,7 @@ class json_side
return *m_json;
}
void open(cursor& c) const
void enter(cursor& c) const
{
c.it = m_json->cbegin();
}
@@ -967,8 +967,8 @@ bool equal(const A& a0, const B& b0)
{
f.array_a = a;
f.array_b = b;
a.open(f.cursor_a);
b.open(f.cursor_b);
a.enter(f.cursor_a);
b.enter(f.cursor_b);
f.count = a.size();
resume_array(path, a, b, f.cursor_a, f.cursor_b, f.next);
}